@Override public void updateActionBars(IActionBars bars) { if (bars != null) { treeViewer.setActionBars(bars); } super.updateActionBars(bars); }
/** * 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); }
@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(); }
@Override protected void setSite(IWorkbenchPartSite newSite) { newSite.setSelectionProvider(new EnsembleSelectionProvider(this.toString())); super.setSite(newSite); }