/** * {@inheritDoc} */ public void dispose() { fDelegateHandler.dispose(); super.dispose(); }
@Override public void dispose() { for (Entry<IWorkbenchWindow, EventHandler> w : eventHandlers.entrySet()) { IEventBroker eventBroker = eventBrokers.get(w.getKey()); EventHandler eventHandler = w.getValue(); if (eventBroker != null && eventHandler != null) { eventBroker.unsubscribe(eventHandler); } } super.dispose(); }
public void dispose() { super.dispose(); if(window != null) { window.getSelectionService().removePostSelectionListener(selectionListener); } // Don't hold on to anything when we are disposed to prevent memory leaks (see bug 195521) selection = null; window = null; targetPart = null; shell = null; }
@Override public void dispose() { getSite().getPage().removePartListener(fPartListener); Enumeration<IMemoryViewPane> enumeration = fViewPanes.elements(); while (enumeration.hasMoreElements()) { Object element = enumeration.nextElement(); if (element instanceof IMemoryViewPane) { ((IMemoryViewPane) element).dispose(); } } fViewPaneControls.clear(); IViewSite viewSite = getViewSite(); String secondaryId = viewSite.getSecondaryId(); if (secondaryId != null) MemoryViewIdRegistry.deregisterView(secondaryId); fSyncService.shutdown(); if (fAddHandler != null) fAddHandler.dispose(); if (fToggleMonitorsHandler != null) fToggleMonitorsHandler.dispose(); if (fNextMemoryBlockHandler != null) fNextMemoryBlockHandler.dispose(); super.dispose(); }
@Override public void dispose() { super.dispose(); if(window != null) { window.getSelectionService().removePostSelectionListener(selectionListener); if (window.getActivePage() != null) { window.getActivePage().removePartListener(targetPartListener); } targetPartListener = null; } // Don't hold on to anything when we are disposed to prevent memory leaks (see bug 195521) selection = null; window = null; targetPart = null; shell = null; }