|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.internal.resources.SavedState
public class SavedState
Standard implementation of the ISavedState interface.
Method Summary | |
---|---|
org.eclipse.core.runtime.IPath[] |
getFiles()
Returns the files mapped with the ISaveContext.map(IPath, IPath)
facility. |
int |
getSaveNumber()
Returns the save number for the save participant. |
org.eclipse.core.runtime.IPath |
lookup(org.eclipse.core.runtime.IPath file)
Returns the mapped location associated with the given path or null if none. |
void |
processResourceChangeEvents(IResourceChangeListener listener)
Used to receive notification of changes that might have happened while this plug-in was not active. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getSaveNumber()
ISavedState
0
if the plug-in has
never actively participated in a successful save.
getSaveNumber
in interface ISavedState
public org.eclipse.core.runtime.IPath lookup(org.eclipse.core.runtime.IPath file)
ISavedState
null
if none.
lookup
in interface ISavedState
ISavedState.getFiles()
,
ISaveContext.map(IPath, IPath)
public org.eclipse.core.runtime.IPath[] getFiles()
ISavedState
ISaveContext.map(IPath, IPath)
facility. Returns an empty array if there are no mapped files.
getFiles
in interface ISavedState
ISavedState.lookup(IPath)
,
ISaveContext.map(IPath, IPath)
public void processResourceChangeEvents(IResourceChangeListener listener)
ISavedState
No notification is received in the following cases:
ISaveContext.needDelta()
was not called) IWorkspace.forgetSavedTree(String)
) All clients should have a contingency plan in place in case a changes are not available (the case should be very similar to the first time a plug-in is activated, and only has the current state of the workspace to work from).
The supplied event is of type IResourceChangeEvent.POST_BUILD
and contains the delta detailing changes since this plug-in last participated
in a save. This event object (and the resource delta within it) is valid only
for the duration of the invocation of this method.
processResourceChangeEvents
in interface ISavedState
listener
- the listenerISaveContext.needDelta()
,
IResourceChangeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |