예제 #1
0
 @Override
 public void updateActionBars(IActionBars bars) {
   if (bars != null) {
     treeViewer.setActionBars(bars);
   }
   super.updateActionBars(bars);
 }
예제 #2
0
 /**
  * Sets the input to this editor.
  *
  * <p><b>Note:</b> Clients must fire the {@link IEditorPart#PROP_INPUT } property change within
  * their implementation of <code>setInput()</code>.
  *
  * <p>
  *
  * @param input the editor input
  */
 @Override
 public void setInput(IEditorInput input) {
   super.setInput(input);
   if (treeViewer != null) {
     PlanEditorModel model = PlanEditorModelRegistry.getPlanEditorModel(input);
     treeViewer.setInput(model.getEPlan());
     treeViewer.setEditorModel(model);
   }
   firePropertyChange(IWorkbenchPartConstants.PROP_INPUT);
 }
예제 #3
0
 @Override
 public void dispose() {
   if (treeViewer != null) {
     EnsembleSelectionProvider selectionProvider =
         (EnsembleSelectionProvider) getSelectionProvider();
     if (selectionProvider != null) {
       selectionProvider.detachSelectionProvider(treeViewer);
     }
     treeViewer = null;
   }
   /*
   if (mergeTreeFont != null) {
   	mergeTreeFont.dispose();
   }*/
   if (treeComposite != null) {
     treeComposite.dispose();
   }
   if (editorComposite != null) {
     editorComposite.dispose();
   }
   totalViewer = null;
   super.dispose();
 }
예제 #4
0
 @Override
 protected void setSite(IWorkbenchPartSite newSite) {
   newSite.setSelectionProvider(new EnsembleSelectionProvider(this.toString()));
   super.setSite(newSite);
 }