/** Stop listening & clean up. */ static void shutdown(IWorkspace workspace) { if (singleton != null) { workspace.removeResourceChangeListener(singleton); singleton.tree.children = null; } }
@Override public void stop(BundleContext context) throws Exception { super.stop(context); IWorkspace workspace = ResourcesPlugin.getWorkspace(); workspace.removeResourceChangeListener(this.mavenUpdateConfigurationChangeListener); this.mavenUpdateConfigurationChangeListener = null; }
/** * @see AbstractMarkerAnnotationModel#listenToMarkerChanges(boolean) */ protected void listenToMarkerChanges(boolean listen) { if (listen) fWorkspace.addResourceChangeListener(this); else fWorkspace.removeResourceChangeListener(this); }
public void dispose() { ISelectionProvider provider= fSite.getSelectionProvider(); provider.removeSelectionChangedListener(fSelectionChangedListener); IWorkspace workspace = ResourcesPlugin.getWorkspace(); workspace.removeResourceChangeListener(fOpenAction); workspace.removeResourceChangeListener(fCloseAction); workspace.removeResourceChangeListener(fCloseUnrelatedAction); super.dispose(); } }
/** * The visual part that is using this content provider is about * to be disposed. Deallocate all allocated SWT resources. */ @Override public void dispose() { if (input != null) { input.getWorkspace().removeResourceChangeListener(this); input = null; } }
/** * The <code>MultiPageEditorPart</code> implementation of this * <code>IWorkbenchPart</code> method disposes all nested editors. * Subclasses may extend. */ public void dispose() { ResourcesPlugin.getWorkspace().removeResourceChangeListener(this); super.dispose(); }
public void bundleChanged(BundleEvent event) { if( event.getType() == BundleEvent.STOPPING || event.getType() == BundleEvent.STOPPED ) { ResourcesPlugin.getWorkspace().removeResourceChangeListener(this); this.cancel(); if( event.getBundle() != null && event.getBundle().getBundleContext() != null ) event.getBundle().getBundleContext().removeBundleListener(this); } }
/** * @see AbstractMarkerAnnotationModel#listenToMarkerChanges(boolean) */ @Override protected void listenToMarkerChanges(boolean listen) { if (listen) fWorkspace.addResourceChangeListener(this); else fWorkspace.removeResourceChangeListener(this); }
public void queryRemoved(ISearchQuery query) { if (fResult.equals(query.getSearchResult())) { ResourcesPlugin.getWorkspace().removeResourceChangeListener(this); NewSearchUI.removeQueryListener(this); } }
/** * De-register the listeners for this collector. */ public void dispose() { getSubscriber().removeListener(this); ResourcesPlugin.getWorkspace().removeResourceChangeListener(this); }
/** * Removes listeners that the model manager attached on others, * as well as listeners attached on the model manager */ @Override protected void removeListeners() { PDECore.getWorkspace().removeResourceChangeListener(this); JavaCore.removePreProcessingResourceChangedListener(this); if (fExtensionListeners.size() > 0) fExtensionListeners.clear(); super.removeListeners(); }
@Override protected void removeListeners() { PDECore.getWorkspace().removeResourceChangeListener(this); super.removeListeners(); }
/** * Uninstalls the synchronizer from the input's file. */ public void uninstall() { getFile().getWorkspace().removeResourceChangeListener(this); fIsInstalled= false; }
public void removeListener(Listener l) { if (fListeners.size() == 0) { return; } fListeners.remove(l); if (fListeners.size() == 0) { ResourcesPlugin.getWorkspace().removeResourceChangeListener(fResourceListener); fResourceListener = null; } } }
public void removeListener(Listener l) { if (fListeners.size() == 0) return; fListeners.remove(l); if (fListeners.size() == 0) { ResourcesPlugin.getWorkspace().removeResourceChangeListener(fResourceListener); fResourceListener= null; } } }
public void dispose() { ResourcesPlugin.getWorkspace().removeResourceChangeListener(this); if (localImageManager != null) localImageManager.dispose(); if (provider != null) provider.dispose(); super.dispose(); }
public void dispose() { shutdown(); ResourcesPlugin.getWorkspace().removeResourceChangeListener(this); provider.getSyncInfoSet().removeSyncSetChangedListener(this); }
/** * @see org.eclipse.core.runtime.Plugin#stop(BundleContext context) */ public void stop(BundleContext context) throws Exception { super.stop(context); ResourcesPlugin.getWorkspace().removeResourceChangeListener( EventManager.getManager() ); EventManager.getManager().shutdown(); }
public void shutdown() { JptCorePlugin.getPlugin().getPluginPreferences().removePropertyChangeListener(preferencesListener); JavaCore.removeElementChangedListener(elementChangeListener); ResourcesPlugin.getWorkspace().removeResourceChangeListener(resourceChangeListener); model.dispose(); }
/** * Removes a <code>IProblemChangedListener</code>. * @param listener the listener to remove */ public void removeListener(IProblemChangedListener listener) { fListeners.remove(listener); if (fListeners.isEmpty()) { JavaPlugin.getWorkspace().removeResourceChangeListener(this); JavaPlugin.getDefault().getCompilationUnitDocumentProvider().removeGlobalAnnotationModelListener(this); } }