Exemplo n.º 1
0
 @Override
 public void dispose() {
   super.dispose();
   if (viewer.treeClassesViewer != null && !viewer.treeClassesViewer.getTree().isDisposed()) {
     onControlDisposed.call(viewer.treeClassesViewer);
   }
   if (viewer.treeMembers != null && !viewer.treeMembers.isDisposed()) {
     onControlDisposed.call(viewer.treeMembers);
   }
   viewer.dispose();
 }
Exemplo n.º 2
0
  @Override
  public void createPartControl(Composite parent) {
    viewer.createPartControl(parent);

    IActionBars actionBars = getViewSite().getActionBars();
    IMenuManager menuManager = actionBars.getMenuManager();
    addOrientationPreferences(menuManager);

    onControlCreated.call(viewer.treeClassesViewer);
    onControlCreated.call(viewer.treeMembers);
  }
Exemplo n.º 3
0
 @Override
 protected void setNewOrientation(int orientation) {
   viewer.setNewOrientation(orientation);
 }
Exemplo n.º 4
0
 @Override
 public void setFocus() {
   viewer.setFocus();
 }
Exemplo n.º 5
0
 public void setHierarchy(HierarchyNodeModel model) {
   viewer.setHierarchy(model);
 }