@Override public void start(BundleContext context) throws Exception { try { super.start(context); Hashtable<String, String> props = new Hashtable<>(2); props.put(org.eclipse.osgi.service.debug.DebugOptions.LISTENER_SYMBOLICNAME, PLUGIN_ID); context.registerService(DebugOptionsListener.class.getName(), this, props); } finally { ResourcesPlugin.getWorkspace().addSaveParticipant(PLUGIN_ID, this); fBundleContext = context; deltaProcessor = new WorkspaceDeltaProcessor(); JavaCore.addElementChangedListener(deltaProcessor, ElementChangedEvent.POST_CHANGE); ResourcesPlugin.getWorkspace().addResourceChangeListener(deltaProcessor, IResourceChangeEvent.PRE_DELETE | IResourceChangeEvent.PRE_CLOSE | IResourceChangeEvent.PRE_BUILD); checkForEEDescriptionChanges(); } }
public SearchablePluginsManager getSearchablePluginsManager() { if (fSearchablePluginsManager == null) { fSearchablePluginsManager = new SearchablePluginsManager(); try { getWorkspace().addSaveParticipant(inst, fSearchablePluginsManager); } catch (CoreException e) { log(e); } } return fSearchablePluginsManager; }
ResourcesPlugin.getWorkspace().addSaveParticipant(PLUGIN_ID, new ISaveParticipant() { @Override public void saving(ISaveContext saveContext) throws CoreException {
props.put(org.eclipse.osgi.service.debug.DebugOptions.LISTENER_SYMBOLICNAME, getUniqueIdentifier()); context.registerService(DebugOptionsListener.class.getName(), this, props); ResourcesPlugin.getWorkspace().addSaveParticipant(ID_PLUGIN, new ISaveParticipant() { @Override public void doneSaving(ISaveContext context1) {}
props.put(org.eclipse.osgi.service.debug.DebugOptions.LISTENER_SYMBOLICNAME, getUniqueIdentifier()); context.registerService(DebugOptionsListener.class.getName(), this, props); ResourcesPlugin.getWorkspace().addSaveParticipant(ID_PLUGIN, new ISaveParticipant() { @Override public void doneSaving(ISaveContext context1) {}
try { if (workspace != null) { workspace.addSaveParticipant(Activator.getDefault(), new ISaveParticipant() {
@Override public void start(BundleContext bundleContext) throws Exception { super.start(bundleContext); try { Platform.getBundle(ResourcesPlugin.PI_RESOURCES).start(Bundle.START_TRANSIENT); } catch (BundleException e) { logException(e.getMessage(), e); } try { redirectStandardStreams(); } catch (FileNotFoundException e) { logException(e.getMessage(), e); } JavaLanguageServerPlugin.context = bundleContext; JavaLanguageServerPlugin.pluginInstance = this; setPreferenceNodeId(); preferenceManager = new PreferenceManager(); digestStore = new DigestStore(getStateLocation().toFile()); projectsManager = new ProjectsManager(preferenceManager); try { ResourcesPlugin.getWorkspace().addSaveParticipant(IConstants.PLUGIN_ID, projectsManager); } catch (CoreException e) { logException(e.getMessage(), e); } contentProviderManager = new ContentProviderManager(preferenceManager); logInfo(getClass() + " is started"); configureProxy(); }
props.put(org.eclipse.osgi.service.debug.DebugOptions.LISTENER_SYMBOLICNAME, getUniqueIdentifier()); context.registerService(DebugOptionsListener.class.getName(), this, props); ResourcesPlugin.getWorkspace().addSaveParticipant(getUniqueIdentifier(), new ISaveParticipant() { @Override
super.start(context); new DebugOptions(context); ResourcesPlugin.getWorkspace().addSaveParticipant(getUniqueIdentifier(), new ISaveParticipant() { @Override
public void start(BundleContext context) throws Exception { super.start(context); JavaDebugOptionsManager.getDefault().startup(); ResourcesPlugin.getWorkspace().addSaveParticipant(this, new ISaveParticipant() { public void doneSaving(ISaveContext context) {} public void prepareToSave(ISaveContext context) throws CoreException {}