@Override public void dispose() { super.dispose(); fPartState.dispose(); fPartState = null; }
@Override public void dispose() { for (Map.Entry<ICasEditor, ICasEditorInputListener> entry : editorListenerMap.entrySet()) { entry.getKey().removeCasEditorInputListener(entry.getValue()); } editorListenerMap.clear(); for (Map.Entry<ICasEditor, ICasDocumentListener> entry : documentListenerMap.entrySet()) { ICasDocument document = entry.getKey().getDocument(); if (document != null) document.removeChangeListener(entry.getValue()); } documentListenerMap.clear(); super.dispose(); } }
public void dispose() { // run super. super.dispose(); // remove ourselves as a selection listener getSite().getPage().removeSelectionListener(this); }
@Override public void dispose() { super.dispose(); fPartCalleesList.dispose(); fPartCalleesTree.dispose(); fPartCallersList.dispose(); fPartCallersTree.dispose(); }
public void dispose() { super.dispose(); TeamUI.getSynchronizeManager().removeSynchronizeParticipantListener(this); // Pin action is hooked up to listeners, must call dispose to un-register. fPinAction.dispose(); // Remember the last active participant if(activeParticipantRef != null) { rememberCurrentParticipant(); } fParticipantToPart = null; fPartToParticipant = null; }
@Override public void dispose() { // run super. super.dispose(); // remove ourselves as a selection and registry listener getSite().getPage().removePostSelectionListener(this); RegistryFactory.getRegistry().removeListener(this); currentPart = null; currentSelection = null; pinPropertySheetAction = null; }
@Override public void dispose() { //Remove the drop listener if (dropTarget != null && !dropTarget.isDisposed()) dropTarget.removeDropListener(dropAdapter); //Remove the selection listener getSite().getPage().removePostSelectionListener(selectionListener); navigateAction.dispose(); super.dispose(); }
public void dispose() { InternalSearchUI.getInstance().getSearchViewManager().searchViewClosed(this); InternalSearchUI.getInstance().getSearchManager().removeQueryListener(this); super.dispose(); }
/** * @see IWorkbenchPart#dispose() */ @Override public void dispose() { saveAllCheckedActionStates(); deregisterPartListener(); if (getViewer() instanceof StructuredViewer) { ((StructuredViewer)getViewer()).removeDoubleClickListener(this); } setViewer(null); fActionMap.clear(); if (fMessagePage != null) { fMessagePage.dispose(); fMessagePage = null; } super.dispose(); }
@Override public void dispose() { if (fUndoRedoActionGroup != null) { fUndoRedoActionGroup.dispose(); } InternalSearchUI.getInstance().getSearchViewManager().searchViewClosed(this); InternalSearchUI.getInstance().getSearchManager().removeQueryListener(this); super.dispose(); }
public void dispose() { super.dispose(); getViewSite().getPage().removePartListener((IPartListener2)this); ConsoleManager consoleManager = (ConsoleManager) ConsolePlugin.getDefault().getConsoleManager(); consoleManager.removeConsoleListener(this); consoleManager.unregisterConsoleView(this); }
@Override public void dispose() { IWorkbenchPartSite site = getSite(); IWorkbenchPage page = site.getPage(); ISaveablesLifecycleListener saveables = site.getService(ISaveablesLifecycleListener.class); // remove ourselves as a selection and registry listener page.removePostSelectionListener(this); RegistryFactory.getRegistry().removeListener(this); if (saveables instanceof SaveablesList) { ((SaveablesList) saveables).removeModelLifecycleListener(saveablesTracker); } currentPart = null; currentSelection = null; pinPropertySheetAction = null; super.dispose(); }
@Override public void dispose() { IViewSite site = getViewSite(); if(site != null) { site.getPage().removePartListener((IPartListener2)this); } super.dispose(); ConsoleManager consoleManager = (ConsoleManager) ConsolePlugin.getDefault().getConsoleManager(); consoleManager.removeConsoleListener(this); consoleManager.unregisterConsoleView(this); if (fDisplayConsoleAction != null) { fDisplayConsoleAction.dispose(); fDisplayConsoleAction = null; } }
@Override public void dispose() { super.dispose(); TeamUI.getSynchronizeManager().removeSynchronizeParticipantListener(this); // Pin action is hooked up to listeners, must call dispose to un-register. fPinAction.dispose(); fPastePatchAction.dispose(); // Remember the last active participant if(activeParticipantRef != null) { rememberCurrentParticipant(); } fParticipantToPart = null; fPartToParticipant = null; // Remove 'Link with Editor' listener when closing the view getSite().getPage().removePartListener(fLinkWithEditorListener); }