/** * Clean up when the plug-in is shutdown */ public void shutdown() { if (fSynchronizeInfo != null) { Enumeration<SynchronizeInfo> enumeration = fSynchronizeInfo.elements(); // clean up all synchronize info objects while (enumeration.hasMoreElements()) { SynchronizeInfo info = enumeration.nextElement(); info.delete(); } fSynchronizeInfo.clear(); fSynchronizeInfo = null; } MemoryViewUtil.getMemoryBlockManager().removeListener(this); }
@Override public synchronized void dispose() { super.dispose(); DebugPlugin.getDefault().getMemoryBlockManager().removeListener(this); }
public void dispose() { fDisposed = true; DebugPlugin.getDefault().getMemoryBlockManager().removeListener(this); DebugPlugin.getDefault().removeDebugEventListener(this); }
@Override public void dispose() { fAction = null; DebugPlugin.getDefault().getMemoryBlockManager().removeListener(fListener); DebugUITools.getDebugContextManager().getContextService(fView.getViewSite().getWorkbenchWindow()).removeDebugContextListener(fDebugContextListener); if (fMenuCreator != null) { fMenuCreator.dispose(); } }
@Override public boolean close() { fViewer.removeSelectionChangedListener(fSelectionChangedListener); memoryBlock.removeSelectionListener(fSelectionListener); addNew.removeSelectionListener(fAddNewSelectionAdapter); DebugPlugin.getDefault().getMemoryBlockManager().removeListener(fMemoryBlockListener); DebugUITools.getMemoryRenderingManager().removeListener(fBindingListener); return super.close(); }
protected void removeListeners() { MemoryViewUtil.getMemoryBlockManager().removeListener(this); fParent.getViewSite().getPage().removeSelectionListener(this); DebugUITools.removePartDebugContextListener(fParent.getSite(), this); if (fStackLayout.topControl != null) { CTabFolder old = (CTabFolder) fStackLayout.topControl; if (!old.isDisposed()) { old.removeSelectionListener(this); old.removeSelectionListener(fViewTabEnablementManager); } } DebugPlugin.getDefault().removeDebugEventListener(this); }