// 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);