Esempio 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();
 }
Esempio 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);
  }
Esempio n. 3
0
 @Override
 protected void setNewOrientation(int orientation) {
   viewer.setNewOrientation(orientation);
 }
Esempio n. 4
0
 @Override
 public void setFocus() {
   viewer.setFocus();
 }
Esempio n. 5
0
 public void setHierarchy(HierarchyNodeModel model) {
   viewer.setHierarchy(model);
 }