public void dispose () { Platform.getExtensionRegistry ().removeListener ( this ); }
public void dispose () { Platform.getExtensionRegistry ().removeListener ( this ); }
public void shutdown() { for (final String k : listenerMap.keySet()) { extensionRegistry.removeListener(listenerMap.remove(k)); } }
void stop() { // stop all applications stopAllApps(); context.removeBundleListener(this); extensionRegistry.removeListener(this); // flush the apps apps.clear(); branding = null; missingProductReported = false; launcherTracker.close(); }
static public void stop() { if (instance != null) { IExtensionRegistry registry = RegistryFactory.getRegistry(); registry.removeListener(instance); instance = null; } }
static public void stop() { if (instance != null) { IExtensionRegistry registry = RegistryFactory.getRegistry(); registry.removeListener(instance); instance = null; } }
public synchronized void stop() { RegistryFactory.getRegistry().removeListener(this); } }
void stop() { // stop all applications stopAllApps(); context.removeBundleListener(this); extensionRegistry.removeListener(this); // flush the apps apps.clear(); branding = null; missingProductReported = false; launcherTracker.close(); }
void stop() { // stop all applications stopAllApps(); context.removeBundleListener(this); extensionRegistry.removeListener(this); // flush the apps apps.clear(); branding = null; missingProductReported = false; launcherTracker.close(); }
public synchronized void stop() { RegistryFactory.getRegistry().removeListener(this); } }
public synchronized void stop() { RegistryFactory.getRegistry().removeListener(this); } }
public synchronized void stop() { RegistryFactory.getRegistry().removeListener(this); } }
@Override public void stop ( final BundleContext context ) throws Exception { Platform.getExtensionRegistry ().removeListener ( this.listener ); plugin = null; clearCache (); super.stop ( context ); }
@Override public void disconnect() { Platform.getExtensionRegistry().removeListener(this); PDERuntimePlugin.getDefault().getBundleContext().removeBundleListener(this); PDERuntimePlugin.getDefault().getBundleContext().removeServiceListener(this); }
@Override public void dispose() { // run super. super.dispose(); // remove ourselves as a selection and registry listener getSite().getPage().removePostSelectionListener(this); RegistryFactory.getRegistry().removeListener(this); currentPart = null; currentSelection = null; pinPropertySheetAction = null; }
/** * {@inheritDoc} * * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext) */ @Override public void stop(final BundleContext bundleContext) throws Exception { try { final IExtensionRegistry registry = Platform.getExtensionRegistry(); registry.removeListener(librariesConnectorListener); registry.removeListener(librariesListener); Bundle pdeCoreBundle = Platform.getBundle("org.eclipse.pde.core"); //$NON-NLS-1$ if (pdeCoreBundle != null) { ResourcesPlugin.getWorkspace().removeResourceChangeListener(workspaceEcoreListener); } AcceleoServicesEclipseUtil.clearRegistry(); AcceleoLibraryConnectorsRegistry.INSTANCE.clearRegistry(); AcceleoLibrariesEclipseUtil.clearRegistry(); AcceleoWorkspaceUtil.INSTANCE.dispose(); AcceleoPreferences.save(); plugin = null; context = null; AcceleoModelManager.getManager().shutdown(); } finally { super.stop(bundleContext); } }
@Override public void dispose() { IWorkbenchPartSite site = getSite(); IWorkbenchPage page = site.getPage(); ISaveablesLifecycleListener saveables = site.getService(ISaveablesLifecycleListener.class); // remove ourselves as a selection and registry listener page.removePostSelectionListener(this); RegistryFactory.getRegistry().removeListener(this); if (saveables instanceof SaveablesList) { ((SaveablesList) saveables).removeModelLifecycleListener(saveablesTracker); } currentPart = null; currentSelection = null; pinPropertySheetAction = null; super.dispose(); }