@Override public void run() throws Exception { handler.dispose(); }
@Override public void dispose() { handler.dispose(); }
public void dispose() { if (defaultHandler != null) defaultHandler.dispose(); }
public void dispose() { if (defaultHandler != null) defaultHandler.dispose(); }
public void dispose() { handler.dispose(); }
public void dispose() { handler.dispose(); }
/** * {@inheritDoc} */ public void dispose() { fDelegateHandler.dispose(); super.dispose(); }
((IHandlerActivation) activation).getHandler().dispose();
/** * Deactivates all of the activations made by this class, and then clears * the collection. This should be called before every read. */ private void clearActivations() { final IHandlerService service = window .getService(IHandlerService.class); if (service == null) { handlerActivations.clear(); return; } service.deactivateHandlers(handlerActivations); final Iterator activationItr = handlerActivations.iterator(); while (activationItr.hasNext()) { final IHandlerActivation activation = (IHandlerActivation) activationItr .next(); final IHandler handler = activation.getHandler(); if (handler != null) { handler.dispose(); } } handlerActivations.clear(); }
/** * Passes the dipose on to the proxied handler, if it has been loaded. */ @Override public void dispose() { if (handler != null) { if (handlerListener != null) { handler.removeHandlerListener(handlerListener); handlerListener = null; } handler.dispose(); handler = null; } if (enablementListener != null) { evaluationService.removeEvaluationListener(enablementRef); enablementRef = null; enablementListener = null; } }
/** * Deactivates all of the activations made by this class, and then clears * the collection. This should be called before every read. * * @param handlerService * The service handling the activations; must not be * <code>null</code>. */ private void clearActivations(final IHandlerService handlerService) { handlerService.deactivateHandlers(handlerActivations); Iterator i = handlerActivations.iterator(); while (i.hasNext()) { IHandlerActivation activation = (IHandlerActivation) i.next(); if (activation.getHandler() != null) { try { activation.getHandler().dispose(); } catch (Exception e) { WorkbenchPlugin.log("Failed to dispose handler for " //$NON-NLS-1$ + activation.getCommandId(), e); } catch (LinkageError e) { WorkbenchPlugin.log("Failed to dispose handler for " //$NON-NLS-1$ + activation.getCommandId(), e); } } } handlerActivations.clear(); }
private void disposeAction() { if (appContext != null) { if (localHandler) { partHandler.dispose(); } if (partListener != null) { IWorkbenchPartSite site = (IWorkbenchPartSite) appContext .getVariable(ISources.ACTIVE_SITE_NAME); site.getPage().removePartListener(partListener); partListener = null; } appContext = null; partHandler = null; } dispose(); } }
@Override public boolean close() { if (showViewHandler != null) { IHandlerService service = PlatformUI .getWorkbench().getService(IHandlerService.class); service.deactivateHandler(showViewHandler); showViewHandler.getHandler().dispose(); showViewHandler = null; } removeKeyScrolling(); history.dispose(); if (importImage != null) importImage.dispose(); if (exportImage != null) exportImage.dispose(); return super.close(); }
while (activationItr.hasNext()) { final IHandlerActivation activation = activationItr.next(); activation.getHandler().dispose();
@Override public boolean close() { this.filterJob.cancel(); this.refreshCacheJob.cancel(); this.refreshProgressMessageJob.cancel(); if (showViewHandler != null) { IHandlerService service = PlatformUI .getWorkbench().getService(IHandlerService.class); service.deactivateHandler(showViewHandler); showViewHandler.getHandler().dispose(); showViewHandler = null; } if (menuManager != null) menuManager.dispose(); if (contextMenuManager != null) contextMenuManager.dispose(); storeDialog(getDialogSettings()); return super.close(); }