/** * The <code>MultiPageEditorPart</code> implementation of this * <code>IWorkbenchPart</code> method disposes all nested editors. * Subclasses may extend. */ public void dispose() { ResourcesPlugin.getWorkspace().removeResourceChangeListener(this); super.dispose(); }
/** * The <code>MultiPageEditorPart</code> implementation of this * <code>IWorkbenchPart</code> method disposes all nested editors. * Subclasses may extend. */ public void dispose() { ResourcesPlugin.getWorkspace().removeResourceChangeListener(this); super.dispose(); }
/** * Disposes the pages and the toolkit after disposing the editor itself. * Subclasses must call 'super' when reimplementing the method. */ @Override public void dispose() { super.dispose(); for (int i = 0; i < pages.size(); i++) { Object page = pages.get(i); if (page instanceof IFormPage) { IFormPage fpage = (IFormPage) page; // don't dispose source pages because they will // be disposed as nested editors by the superclass if (!fpage.isEditor()) fpage.dispose(); } } pages = null; // toolkit may be null if editor has been instantiated // but never created - see defect #62190 if (toolkit != null) { toolkit.dispose(); toolkit = null; } }
/** * Disposes the pages and the toolkit after disposing the editor itself. * Subclasses must call 'super' when reimplementing the method. */ @Override public void dispose() { super.dispose(); for (int i = 0; i < pages.size(); i++) { Object page = pages.get(i); if (page instanceof IFormPage) { IFormPage fpage = (IFormPage) page; // don't dispose source pages because they will // be disposed as nested editors by the superclass if (!fpage.isEditor()) fpage.dispose(); } } pages = null; // toolkit may be null if editor has been instantiated // but never created - see defect #62190 if (toolkit != null) { toolkit.dispose(); toolkit = null; } }
public void dispose() { Logger.trace("Source Editor", "XMLMultiPageEditorPart::dispose entry"); //$NON-NLS-1$ //$NON-NLS-2$ disconnectDesignPage(); if (fActivationListener != null) { fActivationListener.dispose(); fActivationListener = null; } if ((fTextEditor != null) && (fPropertyListener != null)) { fTextEditor.removePropertyListener(fPropertyListener); } // moved to last when added window ... seems like // we'd be in danger of losing some data, like site, // or something. super.dispose(); Logger.trace("Source Editor", "StructuredTextMultiPageEditorPart::dispose exit"); //$NON-NLS-1$ //$NON-NLS-2$ }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void dispose() { updateProblemIndication = false; ResourcesPlugin.getWorkspace().removeResourceChangeListener(resourceChangeListener); getSite().getPage().removePartListener(partListener); adapterFactory.dispose(); if (getActionBarContributor().getActiveEditor() == this) { getActionBarContributor().setActiveEditor(null); } if (propertySheetPage != null) { propertySheetPage.dispose(); } if (contentOutlinePage != null) { contentOutlinePage.dispose(); } super.dispose(); }
super.dispose(); if (commandManager != null) { commandManager.removePropertyChangeListener(listener);