@Override protected void stopListening() { workbench.removeWindowListener(listener); }
/** * Disposes this AST provider. */ public void dispose() { // Dispose activation listener PlatformUI.getWorkbench().removeWindowListener(fActivationListener); fActivationListener= null; disposeAST(); synchronized (fWaitLock) { fWaitLock.notifyAll(); } }
/** * Disposes this AST provider. */ public void dispose() { // Dispose activation listener PlatformUI.getWorkbench().removeWindowListener(fActivationListener); fActivationListener= null; disposeAST(); synchronized (fWaitLock) { fWaitLock.notifyAll(); } }
/** * Disposes this activation listener. * * @since 3.1 */ public void dispose() { fPartService.removePartListener(this); PlatformUI.getWorkbench().removeWindowListener(this); fPartService= null; }
/** * Disposes this activation listener. * * @since 3.1 */ public void dispose() { fPartService.removePartListener(this); PlatformUI.getWorkbench().removeWindowListener(this); fPartService = null; }
/** * Disposes this activation listener. * * @since 3.1 */ public void dispose() { fPartService.removePartListener(this); PlatformUI.getWorkbench().removeWindowListener(this); fPartService= null; }
/** * Disposes this activation listener. * * @since 3.1 */ public void dispose() { fPartService.removePartListener(this); PlatformUI.getWorkbench().removeWindowListener(this); fPartService= null; }
/** * Disposes this activation listener. * * @since 3.1 */ public void dispose() { fPartService.removePartListener(this); PlatformUI.getWorkbench().removeWindowListener(this); fPartService = null; }
/** * Clean up when removing */ @Override public void dispose() { PlatformUI.getWorkbench().removeWindowListener(fWindowListener); for(EnabledTarget target : fEnabledTargetsMap.values()) { if (!target.isDisposed()) { target.dispose(); } } fEnabledTargetsMap.clear(); fCurrentEnabledTarget = null; } }
/** * Disposes this AST provider. */ public void dispose() { // Dispose activation listener PlatformUI.getWorkbench().removeWindowListener(fActivationListener); fActivationListener= null; INSTANCE.disposeAST(); INSTANCE.waitLockNotifyAll(); }
@Override public final void stop(final BundleContext bundleContext) throws Exception { super.stop(bundleContext); Activator.context = null; DebugPlugin.getDefault().getLaunchManager().removeLaunchListener(launchListener); PlatformUI.getWorkbench().removeWindowListener(windowListener); }
@Override public void dispose() { if (lastWindow != null) lastWindow.getSelectionService().removeSelectionListener(this); workbench.removeWindowListener(windowListener); display.removeFilter(SWT.Activate, listener); hookListener(lastActiveWorkbenchWindow, null); lastActiveWorkbenchWindow = null; lastActiveWorkbenchWindowShell = null; lastActiveShell = null; lastWindow = null; }
/** * Shutdown and clean up the manager */ public void shutdown() { IWorkbench workbench = PlatformUI.getWorkbench(); if(workbench != null) { workbench.removeWindowListener(this); } DebugUIPlugin.getDefault().getPreferenceStore().removePropertyChangeListener(this); DebugUIPlugin.getDefault().getLaunchConfigurationManager().removeLaunchHistoryListener(this); DebugPlugin.getDefault().getLaunchManager().removeLaunchListener(this); for (IWorkbenchWindow window : fWindows) { window.getSelectionService().removeSelectionListener(this); } // set fUpdateLabel to false so that mouse track listener will do nothing if called // before the asynchronous execution disposes them fUpdateLabel = false; for (Entry<IWorkbenchWindow, ToolBar> entry : fToolbars.entrySet()) { final ToolBar bar = entry.getValue(); if(bar != null && !bar.isDisposed()) { final MouseTrackAdapter listener = fMouseListener; DebugUIPlugin.getStandardDisplay().asyncExec(() -> bar.removeMouseTrackListener(listener)); } } fWindows.clear(); fToolbars.clear(); fLabelListeners.clear(); fCurrentLabels.clear(); }
public void stop(final BundleContext context) throws Exception { if (refreshHandle != null) { refreshHandle.remove(); refreshHandle = null; } if (focusListener != null) { PlatformUI.getWorkbench().removeWindowListener(focusListener); focusListener = null; } if (GitTraceLocation.REPOSITORYCHANGESCANNER.isActive()) GitTraceLocation.getTrace().trace( GitTraceLocation.REPOSITORYCHANGESCANNER.getLocation(), "Trying to cancel " + rcs.getName() + " job"); //$NON-NLS-1$ //$NON-NLS-2$ rcs.setReschedule(false); rcs.cancel(); if (GitTraceLocation.REPOSITORYCHANGESCANNER.isActive()) GitTraceLocation.getTrace().trace( GitTraceLocation.REPOSITORYCHANGESCANNER.getLocation(), "Trying to cancel " + refreshJob.getName() + " job"); //$NON-NLS-1$ //$NON-NLS-2$ refreshJob.cancel(); rcs.join(); refreshJob.join(); if (GitTraceLocation.REPOSITORYCHANGESCANNER.isActive()) GitTraceLocation.getTrace().trace( GitTraceLocation.REPOSITORYCHANGESCANNER.getLocation(), "Jobs terminated"); //$NON-NLS-1$ super.stop(context); plugin = null; }
PlatformUI.getWorkbench().removeWindowListener(fActivationListener); fActivationListener= null;
PlatformUI.getWorkbench().removeWindowListener(fActivationListener); fActivationListener= null;
PlatformUI.getWorkbench().removeWindowListener(fActivationListener); fActivationListener= null;