/** * Disposes the tracker. */ public void dispose() { if (window != null) { window.removePageListener(this); window.removePerspectiveListener(this); window = null; } }
/** * Dispose this action */ public void dispose() { if (fStore != null) { fStore.removePropertyChangeListener(this); fStore= null; } if (fPage != null) { fPage.getWorkbenchWindow().removePerspectiveListener(this); fPage= null; } }
/** * Dispose this action */ public void dispose() { if (fStore != null) { fStore.removePropertyChangeListener(this); fStore= null; } if (fPage != null) { fPage.getWorkbenchWindow().removePerspectiveListener(this); fPage= null; } }
@Override public void dispose() { if (getWindow() != null) { getWindow().removePerspectiveListener(this); } super.dispose(); }
public void dispose() { fWindow.removePerspectiveListener(this); fWindow = null; // avoid leaking a window reference (bug 321658). getDebugContextService().removeDebugContextListener(this); IEclipsePreferences node = InstanceScope.INSTANCE.getNode(DebugUIPlugin.getUniqueIdentifier()); if (node != null) { node.removePreferenceChangeListener(this); } fContextService.removeContextManagerListener(this); fActivePerspective = null; }
/** * Disposes this selection provider - removes all listeners * currently registered. */ @Override public void dispose() { IWorkbenchPage page = getPage(); page.getWorkbenchWindow().removePerspectiveListener(this); page.removePartListener(this); setPart(null, false); setPage(null); super.dispose(); }
public void dispose() { getSite().getWorkbenchWindow().removePerspectiveListener(this); if (fSourceViewer != null) { fSourceViewer.dispose(); fSourceViewer = null; } IHandlerService handlerService = (IHandlerService) getSite().getService(IHandlerService.class); handlerService.deactivateHandler(fHandlerActivation); super.dispose(); }
page.removePartListener((IPartListener2) this); IWorkbenchWindow window = getSite().getWorkbenchWindow(); window.removePerspectiveListener(this); window.removePageListener(this); for (IHandler2 handler : fHandlers.values()) {
/** * Remove myself as a selection listener * and preference change listener. * * @see IWorkbenchPart#dispose() */ @Override public void dispose() { DebugUITools.removePartDebugContextListener(getSite(), this); getSite().getWorkbenchWindow().removePerspectiveListener(this); DebugUIPlugin.getDefault().getPreferenceStore().removePropertyChangeListener(this); JFaceResources.getFontRegistry().removeListener(this); TreeModelViewer viewer = getVariablesViewer(); if (viewer != null) { viewer.removeModelChangedListener(this); viewer.removeViewerUpdateListener(this); } if (fPresentationContext != null) { fPresentationContext.dispose(); fPresentationContext = null; } if (fDetailPane != null) { fDetailPane.dispose(); } fInputService.dispose(); fSelectionProvider.dispose(); super.dispose(); }