/** * The <code>AbstractTextEditor</code> implementation of this <code>IWorkbenchPart</code> method * may be extended by subclasses. Subclasses must call <code>super.dispose()</code>. * * <p>Note that many methods may return <code>null</code> after the editor is disposed. */ @Override public void dispose() { if (fTitleImage != null) { fTitleImage.dispose(); fTitleImage = null; } disposeDocumentProvider(); if (fSourceViewer != null) { fSourceViewer = null; } if (fConfiguration != null) fConfiguration = null; IOperationHistory history = OperationHistoryFactory.getOperationHistory(); if (history != null) { if (fNonLocalOperationApprover != null) history.removeOperationApprover(fNonLocalOperationApprover); if (fLinearUndoViolationApprover != null) history.removeOperationApprover(fLinearUndoViolationApprover); } fNonLocalOperationApprover = null; fLinearUndoViolationApprover = null; super.dispose(); }
@Override public void dispose() { super.dispose(); if (fWaveMgr != null) { fWaveMgr.dispose(); } }
@Override public void dispose() { getEditorSite().getWorkbenchWindow().getPartService().removePartListener(fActivationListener); fEditorHandlers.dispose(); disposeTableInput(); super.dispose(); }
@Override public void dispose() { if (editorImage != null) { editorImage.dispose(); editorImage = null; } listener.dispose(); super.dispose(); }
@Override public void dispose() { IEditorInput editorInput = getEditorInput(); if (editorInput instanceof NoteEditorInput) { EditorRegistry.getInstance() .closeEditor(String.valueOf(((NoteEditorInput) editorInput).getId())); } if (editorInput instanceof AttachmentEditorInput) { EditorRegistry.getInstance() .closeEditor(String.valueOf(((AttachmentEditorInput) editorInput).getId())); } super.dispose(); }
@Override public void dispose() { Logging.log(this, "Destroyed relay client"); if (mRelayClient != null) { // delete as observer for corresponding stream client application mRelayClient.deleteObserver(this); // terminate application mRelayClient.exit(); } super.dispose(); }
/** We have to dispose the windows shown on our Editor */ @Override public void dispose() { super.dispose(); EventQueue.invokeLater( new Runnable() { @Override public void run() { if (window != null) { window.dispose(); } } }); Display.getDefault() .asyncExec( new Runnable() { @Override public void run() { if (wndFind != null) { wndFind.close(); } } }); IWorkbenchWindow wind = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); if (wind == null) { return; } IEditorReference[] editors = wind.getActivePage().findEditors(null, GraphEditor.ID, IWorkbenchPage.MATCH_ID); if (editors != null && editors.length == 0 && satView != null) { satView.setEditor(null); satView.clear(); } for (AbstractHandler hnd : handlers) { hnd.dispose(); } }
@Override public void dispose() { super.dispose(); }
@Override public void dispose() { ResourcesPlugin.getWorkspace().removeResourceChangeListener(this); super.dispose(); }
@Override public void dispose() { intervalReport.removePropertyChangeListener(changeListener); intervalReport.dispose(); super.dispose(); }