/** * Ensures that resource monitoring is active even if variantsync plugin is * not active in eclipse. * * @throws CoreException * resources could not be monitored */ public void registerSaveParticipant() throws CoreException { IWorkspace ws = ResourcesPlugin.getWorkspace(); // Registers the given plug-in's workspace save participant, and returns // an object describing the workspace state at the time of the last save // in which the bundle participated. ISavedState ss = ws.addSaveParticipant(VariantSyncConstants.PLUGIN_ID, this); if (ss != null) { // used to receive notification of changes that might have happened // while VariantSyncPlugin was not active. ss.processResourceChangeEvents(this); } ws.removeSaveParticipant(VariantSyncConstants.PLUGIN_ID); }
/** * We register a save participant so we can get the delta from workbench * startup to plugin startup. * @throws CoreException */ public void registerSaveParticipant() throws CoreException { IWorkspace ws = ResourcesPlugin.getWorkspace(); ISavedState ss = ws.addSaveParticipant(SVNProviderPlugin.getPlugin(), this); if (ss != null) { ss.processResourceChangeEvents(this); } ws.removeSaveParticipant(SVNProviderPlugin.getPlugin()); }
@Override public ISavedState addSaveParticipant(Plugin plugin, ISaveParticipant iSaveParticipant) throws CoreException { throw new UnsupportedOperationException(); }
@Override public ISavedState addSaveParticipant(String s, ISaveParticipant iSaveParticipant) throws CoreException { throw new UnsupportedOperationException(); }