Java 类org.eclipse.core.resources.ISavedState 实例源码

项目:VariantSync    文件:ChangeListener.java   
/**
 * 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);
}
项目:subclipse    文件:FileModificationManager.java   
/**
 * 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());
}
项目:subclipse    文件:TeamPrivateListener.java   
/**
 * 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());
}
项目:APICloud-Studio    文件:FileModificationManager.java   
/**
 * 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());
}
项目:APICloud-Studio    文件:TeamPrivateListener.java   
/**
 * 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());
}
项目:che    文件:Workspace.java   
@Override
public ISavedState addSaveParticipant(Plugin plugin, ISaveParticipant iSaveParticipant)
    throws CoreException {
  throw new UnsupportedOperationException();
}
项目:che    文件:Workspace.java   
@Override
public ISavedState addSaveParticipant(String s, ISaveParticipant iSaveParticipant)
    throws CoreException {
  throw new UnsupportedOperationException();
}