/** * This operation is called before the shutdown of the platform. */ public void shutdown() { final IWorkspace workspace = ResourcesPlugin.getWorkspace(); workspace.removeSaveParticipant(AcceleoCommonPlugin.PLUGIN_ID); }
@Override public void stop(BundleContext bundleContext) throws Exception { logInfo(getClass() + " is stopping:"); JavaLanguageServerPlugin.pluginInstance = null; JavaLanguageServerPlugin.context = null; ResourcesPlugin.getWorkspace().removeSaveParticipant(IConstants.PLUGIN_ID); projectsManager = null; contentProviderManager = null; languageServer = null; }
/** Shutdown the singleton instance. */ public static void shutdown() { // Bail if we're not started. if (listener == null) return; // Deregister as save participant. ResourcesPlugin.getWorkspace().removeSaveParticipant(FacesConfigPlugin.getPlugin()); // Deregister as resource change listener. ResourcesPlugin.getWorkspace().removeResourceChangeListener(listener); // Dereference the singleton instance. listener = null; }
@Override public void stop(BundleContext context) throws Exception { try { ApiDescriptionManager.shutdown(); ApiBaselineManager.getManager().stop(); ResourcesPlugin.getWorkspace().removeSaveParticipant(PLUGIN_ID); FileManager.getManager().deleteFiles(); fBundleContext = null; if (deltaProcessor != null) { JavaCore.removeElementChangedListener(deltaProcessor); ResourcesPlugin.getWorkspace().removeResourceChangeListener(deltaProcessor); } } finally { super.stop(context); } }
ResourcesPlugin.getWorkspace().removeSaveParticipant(PLUGIN_ID);
/** * Clears zip file cache. * Shutdown the launch configuration helper. * * @see Plugin#stop(BundleContext) */ @Override public void stop(BundleContext context) throws Exception { try { DebugPlugin.getDefault().getLaunchManager().removeLaunchListener(this); DebugPlugin.getDefault().removeDebugEventListener(this); ResourcesPlugin.getWorkspace().removeResourceChangeListener(this); ArchiveSourceLocation.closeArchives(); InstanceScope.INSTANCE.getNode(ID_PLUGIN).removePreferenceChangeListener(this); JavaRuntime.removeVMInstallChangedListener(this); JavaRuntime.saveVMConfiguration(); fgXMLParser = null; ResourcesPlugin.getWorkspace().removeSaveParticipant(ID_PLUGIN); } finally { super.stop(context); } }
public void stop(BundleContext context) throws Exception { try { setShuttingDown(true); JDIDebugModel.removeHotCodeReplaceListener(fHCRListener); JavaDebugOptionsManager.getDefault().shutdown(); if (fImageDescriptorRegistry != null) { fImageDescriptorRegistry.dispose(); } IAdapterManager manager= Platform.getAdapterManager(); manager.unregisterAdapters(fActionFilterAdapterFactory); manager.unregisterAdapters(fSourceLocationAdapterFactory); manager.unregisterAdapters(fBreakpointAdapterFactory); if (fUtilPresentation != null) { fUtilPresentation.dispose(); } if (fTextTools != null) { fTextTools.dispose(); } ResourcesPlugin.getWorkspace().removeSaveParticipant(this); } finally { super.stop(context); } }
/** * Clears zip file cache. * Shutdown the launch configuration helper. * * @see Plugin#stop(BundleContext) */ @Override public void stop(BundleContext context) throws Exception { try { AdvancedSourceLookupSupport.stop(); DebugPlugin.getDefault().getLaunchManager().removeLaunchListener(this); DebugPlugin.getDefault().removeDebugEventListener(this); ResourcesPlugin.getWorkspace().removeResourceChangeListener(this); ArchiveSourceLocation.closeArchives(); InstanceScope.INSTANCE.getNode(ID_PLUGIN).removePreferenceChangeListener(this); JavaRuntime.removeVMInstallChangedListener(this); JavaRuntime.saveVMConfiguration(); fgXMLParser = null; ResourcesPlugin.getWorkspace().removeSaveParticipant(ID_PLUGIN); } finally { super.stop(context); } }
@Override public void stop(BundleContext context) throws Exception { try { setShuttingDown(true); if (fLaunchManager != null) { fLaunchManager.shutdown(); } if (fBreakpointManager != null) { fBreakpointManager.shutdown(); } if (fMemoryBlockManager != null) { fMemoryBlockManager.shutdown(); } fEventListeners.clear(); fEventFilters.clear(); SourceLookupUtils.shutdown(); Preferences.savePreferences(DebugPlugin.getUniqueIdentifier()); ResourcesPlugin.getWorkspace().removeSaveParticipant(getUniqueIdentifier()); } finally { super.stop(context); setDefault(null); } }
ResourcesPlugin.getWorkspace().removeSaveParticipant(getUniqueIdentifier());
workspace.removeSaveParticipant(JavaCore.PLUGIN_ID);
workspace.removeSaveParticipant(JavaCore.PLUGIN_ID);
workspace.removeSaveParticipant(JavaCore.PLUGIN_ID);
workspace.removeSaveParticipant(JavaCore.PLUGIN_ID);
public void stop(BundleContext context) throws CoreException { PDECore.getDefault().savePluginPreferences(); fJavaElementChangeListener.shutdown(); fPluginRebuilder.stop(); fFeatureRebuilder.stop(); if (fSchemaRegistry != null) { fSchemaRegistry.shutdown(); fSchemaRegistry = null; } if (fTargetProfileManager != null) { fTargetProfileManager.shutdown(); fTargetProfileManager = null; } if (fSearchablePluginsManager != null) { getWorkspace().removeSaveParticipant(inst); fSearchablePluginsManager.shutdown(); fSearchablePluginsManager = null; } if (fFeatureModelManager != null) { fFeatureModelManager.shutdown(); fFeatureModelManager = null; } if (fModelManager != null) { fModelManager.shutdown(); fModelManager = null; } } }
workspace.removeSaveParticipant(JavaCore.PLUGIN_ID);
workspace.removeSaveParticipant(JavaCore.PLUGIN_ID);