@Override public void removePostSelectionListener(String partId, ISelectionListener listener) { postListenersToPartId.remove(listener); parentSelectionService.removePostSelectionListener(partId, listener); }
@Override public void removePostSelectionListener(ISelectionListener listener) { postListeners.remove(listener); parentSelectionService.removePostSelectionListener(listener); }
@Override protected void doRemoveFrom(Object source) { ISelectionService selectionService = (ISelectionService) source; if (post) { if (partId != null) { selectionService.removePostSelectionListener(partId, this); } else { selectionService.removePostSelectionListener(this); } } else { if (partId != null) { selectionService.removeSelectionListener(partId, this); } else { selectionService.removeSelectionListener(this); } } }
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() { for (Object listener : listeners.getListeners()) { parentSelectionService.removeSelectionListener((ISelectionListener) listener); } listeners.clear(); for (Object listener : postListeners.getListeners()) { parentSelectionService.removePostSelectionListener((ISelectionListener) listener); } postListeners.clear(); for (Entry<ISelectionListener, String> entry : listenersToPartId.entrySet()) { parentSelectionService.removeSelectionListener(entry.getValue(), entry.getKey()); } listenersToPartId.clear(); for (Entry<ISelectionListener, String> entry : postListenersToPartId.entrySet()) { parentSelectionService.removePostSelectionListener(entry.getValue(), entry.getKey()); } postListenersToPartId.clear(); } }
@Override public void dispose() { super.dispose(); ISelectionService service = (ISelectionService) getSite().getService( ISelectionService.class); service.removePostSelectionListener(selectionChangedListener); if (addRefsChangedListener != null) addRefsChangedListener.remove(); }
@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; }
@Override public void dispose() { // make sure to cancel the refresh job if (this.scheduledJob != null) { this.scheduledJob.cancel(); this.scheduledJob = null; } repositoryUtil.getPreferences().removePreferenceChangeListener( configurationListener); ISelectionService srv = (ISelectionService) getSite().getService( ISelectionService.class); srv.removePostSelectionListener(selectionChangedListener); // remove RepositoryChangedListener unregisterRepositoryListener(); repositories.clear(); super.dispose(); }
@Override public void dispose() { super.dispose(); ISelectionService srv = (ISelectionService) getSite().getService( ISelectionService.class); srv.removePostSelectionListener(selectionChangedListener); if(cacheEntry != null) cacheEntry.removeIndexDiffChangedListener(myIndexDiffListener); if (undoRedoActionGroup != null) undoRedoActionGroup.dispose(); InstanceScope.INSTANCE.getNode( org.eclipse.egit.core.Activator.getPluginId()) .removePreferenceChangeListener(prefListener); }