|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A data structure returned by addSaveParticipant
containing a save number and an optional resource delta.
This interface is not intended to be implemented by clients.
IWorkspace.addSaveParticipant(org.eclipse.core.runtime.Plugin, org.eclipse.core.resources.ISaveParticipant)
Method Summary | |
IPath[] |
getFiles()
Returns the files mapped with the ISaveContext.map
facility. |
int |
getSaveNumber()
Returns the save number for the save participant. |
IPath |
lookup(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. |
Method Detail |
public IPath[] getFiles()
ISaveContext.map
facility. Returns an empty array if there are no mapped files.
lookup(org.eclipse.core.runtime.IPath)
,
ISaveContext.map(org.eclipse.core.runtime.IPath, org.eclipse.core.runtime.IPath)
public int getSaveNumber()
0
if the plug-in has
never actively participated in a successful save.
public IPath lookup(IPath file)
null
if none.
getFiles()
,
ISaveContext.map(org.eclipse.core.runtime.IPath, org.eclipse.core.runtime.IPath)
public void processResourceChangeEvents(IResourceChangeListener listener)
No notification is received in the following cases:
ISaveContext.needDelta
was not called) IWorkspace.forgetSavedTree
) 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_AUTO_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.
listener
- the listenerISaveContext.needDelta()
,
IResourceChangeListener
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |