public void removePartListener(IPartService partService) { if (partService == null || partListeners == null) return; IPartListener2 oldListener = partListeners.remove(partService); if (oldListener != null) partService.removePartListener(oldListener); }
@Override public void dispose() { if (fPartService != null) { fPartService.removePartListener(fPartListener); fPartService= null; } setMenu(null); }
/** * {@inheritDoc} */ public void dispose() { if (fPartService != null) { fPartService.removePartListener(fPartListener); fPartService= null; } setMenu(null); }
@Override public void dispose() { if (workbenchWindow == null) { // action has already been disposed return; } workbenchWindow.getPartService().removePartListener(this); workbenchWindow = null; } }
private void disposeSubmenuActions() { if (fPartService != null && fRetargetActions != null) { for (int i= 0; i < fRetargetActions.length; i++) { fPartService.removePartListener(fRetargetActions[i]); fRetargetActions[i].dispose(); } } fRetargetActions= null; fPartService= null; }
@Override public void dispose() { for (Object listener : listeners.getListeners()) { if (listener instanceof IPartListener) { parent.removePartListener((IPartListener) listener); } if (listener instanceof IPartListener2) { parent.removePartListener((IPartListener2) listener); } } listeners.clear(); }
@Override public void dispose() { if (fPartService != null) { fPartService.removePartListener(fPartListener); fPartService= null; } setMenu(null); }
private void disposeSubmenuActions() { if (fPartService != null && fRetargetActions != null) { for (int i= 0; i < fRetargetActions.length; i++) { fPartService.removePartListener(fRetargetActions[i]); fRetargetActions[i].dispose(); } } fRetargetActions= null; fPartService= null; }
public void setPartListener(IPartService partService, IPartListener2 listener) { if (partService == null) return; if (partListeners == null) partListeners = new HashMap<IPartService, IPartListener2>(); IPartListener2 oldListener = partListeners.get(partService); if (oldListener != null) partService.removePartListener(oldListener); partService.addPartListener(listener); partListeners.put(partService, listener); }
void dispose() { fWindow.getPartService().removePartListener(fPartListener); for (Iterator mgrs = fAnnotationManagers.values().iterator(); mgrs.hasNext();) { EditorAnnotationManager mgr = (EditorAnnotationManager) mgrs.next(); mgr.dispose(); } fAnnotationManagers= null; }
/** * Disposes this activation listener. * * @since 3.1 */ public void dispose() { fPartService.removePartListener(this); PlatformUI.getWorkbench().removeWindowListener(this); fPartService = null; }
public void dispose() { if (fSourceProvider != null) { fSourceProvider.dispose(); } fWindow.getPartService().removePartListener(this); fWindow = null; }
/** * Disposes this activation listener. * * @since 3.1 */ public void dispose() { fPartService.removePartListener(this); PlatformUI.getWorkbench().removeWindowListener(this); fPartService= null; }
@Override public final void windowClosed(final IWorkbenchWindow window) { if (window != null) { window.getPartService().removePartListener(partListener); } checkActivePart(); }
/** * Disposes this activation listener. * * @since 3.1 */ public void dispose() { fPartService.removePartListener(this); PlatformUI.getWorkbench().removeWindowListener(this); fPartService= null; }
/** * @see IPartListener#partClosed(IWorkbenchPart) */ public void partClosed(IWorkbenchPart part) { if (part == _fEditor) { _fEditor.getSite().getWorkbenchWindow().getPartService().removePartListener(_fPartListener); _fPartListener = null; } }
/** * @see IPartListener#partClosed(IWorkbenchPart) */ public void partClosed(IWorkbenchPart part) { if (part == fEditor) { fEditor.getSite().getWorkbenchWindow().getPartService().removePartListener(fPartListener); fPartListener= null; } }
/** * @see IWorkbenchWindowActionDelegate#dispose() */ public void dispose() { disposeDebugModelPresentation(); IWorkbenchWindow win = getWindow(); if (win != null) { win.getPartService().removePartListener(this); } }
public void windowClosed(IWorkbenchWindow window) { if (fActiveEditor != null && fActiveEditor.getSite() != null && window == fActiveEditor.getSite().getWorkbenchWindow()) { if (DEBUG) System.out.println(getThreadName() + " - " + DEBUG_PREFIX + "closed active editor: " + fActiveEditor.getTitle()); //$NON-NLS-1$ //$NON-NLS-2$ activeJavaEditorChanged(null); } window.getPartService().removePartListener(this); }
public void dispose() { shutDownVM(); fPresentation.dispose(); fSnippetStateListeners= null; ((JDISourceViewer) getSourceViewer()).dispose(); getSite().getWorkbenchWindow().getPartService().removePartListener(fActivationListener); super.dispose(); }