public void stop(BundleContext context) throws Exception { // dispose composite images for (Iterator iter= fCompositeImages.values().iterator(); iter.hasNext(); ) { Image image= (Image)iter.next(); image.dispose(); } fCompositeImages.clear(); ApiPlugin.getDefault().getSessionManager().removeSessionListener(this.sessionListener); Platform.getAdapterManager().unregisterAdapters(fActionFilterAdapterFactory, IJavaElement.class); super.stop(context); } }
@Override public void stop(BundleContext context) throws Exception { // dispose composite images for (Image image : fCompositeImages.values()) { image.dispose(); } fCompositeImages.clear(); ApiPlugin.getDefault().getSessionManager().removeSessionListener(this.sessionListener); Platform.getAdapterManager().unregisterAdapters(fActionFilterAdapterFactory, IJavaElement.class); super.stop(context); } }
@Override public void stop ( final BundleContext context ) throws Exception { for ( final Map.Entry<Class<?>, IAdapterFactory> entry : this.adaperFactories.entrySet () ) { Platform.getAdapterManager ().unregisterAdapters ( entry.getValue (), entry.getKey () ); } if ( this.connectionManager != null ) { this.connectionManager.dispose (); this.connectionManager = null; } this.treeRootManager.dispose (); this.treeRoot.dispose (); this.discoverers.dispose (); plugin = null; super.stop ( context ); }
@Override public void stop ( final BundleContext context ) throws Exception { for ( final Map.Entry<Class<?>, IAdapterFactory> entry : this.adaperFactories.entrySet () ) { Platform.getAdapterManager ().unregisterAdapters ( entry.getValue (), entry.getKey () ); } if ( this.connectionManager != null ) { this.connectionManager.dispose (); this.connectionManager = null; } this.treeRootManager.dispose (); this.treeRoot.dispose (); this.discoverers.dispose (); plugin = null; 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); } }
@Override public void dispose() { super.dispose(); // call dispose on both parts. if (presentation != null) presentation.dispose(); if (standbyPart != null) standbyPart.dispose(); // clear all loaded models since we are disposing of the Intro Part. IntroPlugin.getDefault().getExtensionPointManager().clear(); ContentProviderManager.getInst().clear(); // clean platform adapter. Platform.getAdapterManager().unregisterAdapters(factory, CustomizableIntroPart.class); if (model != null && model.hasValidConfig()) Platform.getExtensionRegistry().removeRegistryChangeListener(this); }