Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.ISavedState.lookup()


        ISaveParticipant saveParticipant = new BBQSaveParticipant( this);
        ISavedState lastState =
           ResourcesPlugin.getWorkspace().addSaveParticipant(this, saveParticipant);
        if (lastState == null)
           return;
        IPath location = lastState.lookup(new Path(ENVIRONMENT_FILE_KEY));
        if (location == null)
           return;
        // the plugin instance should read any important state from the file.
        File f = getStateLocation().append(location).toFile();
        if ( f.canRead())
View Full Code Here


    // remove target buildstates if the project is removed
    ResourcesPlugin.getWorkspace().addResourceChangeListener(persistenceStore, IResourceChangeEvent.PRE_DELETE);

    if (lastState == null)
      return;
    IPath location = lastState.lookup(new Path("save"));
    if (location == null)
      return;
    // the plugin instance should read any important state from the file.
    File f = getStateLocation().append(location).toFile();
    persistenceStore.readStateFrom(f);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.