|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.internal.resources.SaveManager
public class SaveManager
Constructor Summary | |
---|---|
SaveManager(Workspace workspace)
|
Method Summary | |
---|---|
ISavedState |
addParticipant(org.eclipse.core.runtime.Plugin plugin,
ISaveParticipant participant)
|
void |
forgetSavedTree(java.lang.String pluginId)
|
int |
getSaveNumber(java.lang.String pluginId)
|
java.lang.Object |
readElement(org.eclipse.core.runtime.IPath path,
java.io.DataInput input)
Reads an element info from the given input stream. |
void |
removeParticipant(org.eclipse.core.runtime.Plugin plugin)
|
void |
requestSnapshot()
|
org.eclipse.core.runtime.IStatus |
save(int kind,
boolean keepConsistencyWhenCanceled,
Project project,
org.eclipse.core.runtime.IProgressMonitor parentMonitor)
|
org.eclipse.core.runtime.IStatus |
save(int kind,
Project project,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
void |
shareStrings(StringPool pool)
Instructs this participant to share its strings in the provided pool. |
void |
shutdown(org.eclipse.core.runtime.IProgressMonitor monitor)
|
void |
snapshotIfNeeded(boolean hasTreeChanges)
Performs a snapshot if one is deemed necessary. |
void |
startup(org.eclipse.core.runtime.IProgressMonitor monitor)
|
void |
visitAndSave(IResource root)
Visit the given resource (to depth infinite) and write out extra information like markers and sync info. |
void |
visitAndSnap(IResource root)
Visit the given resource (to depth infinite) and write out extra information like markers and sync info. |
void |
writeElement(org.eclipse.core.runtime.IPath path,
java.lang.Object element,
java.io.DataOutput output)
Writes the given element to the output stream. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SaveManager(Workspace workspace)
Method Detail |
---|
public ISavedState addParticipant(org.eclipse.core.runtime.Plugin plugin, ISaveParticipant participant) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void forgetSavedTree(java.lang.String pluginId)
public int getSaveNumber(java.lang.String pluginId)
public java.lang.Object readElement(org.eclipse.core.runtime.IPath path, java.io.DataInput input) throws java.io.IOException
IElementInfoFlattener
readElement
in interface IElementInfoFlattener
path
- the path of the element to be readinput
- the stream from which the element info should be read.
null
.
java.io.IOException
IElementInfoFlattener.readElement(IPath, DataInput)
public void removeParticipant(org.eclipse.core.runtime.Plugin plugin)
public void requestSnapshot()
public org.eclipse.core.runtime.IStatus save(int kind, Project project, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public org.eclipse.core.runtime.IStatus save(int kind, boolean keepConsistencyWhenCanceled, Project project, org.eclipse.core.runtime.IProgressMonitor parentMonitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void shareStrings(StringPool pool)
IStringPoolParticipant
shareStrings
in interface IStringPoolParticipant
public void shutdown(org.eclipse.core.runtime.IProgressMonitor monitor)
shutdown
in interface IManager
public void snapshotIfNeeded(boolean hasTreeChanges)
public void startup(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
startup
in interface IManager
org.eclipse.core.runtime.CoreException
public void visitAndSave(IResource root) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void visitAndSnap(IResource root) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void writeElement(org.eclipse.core.runtime.IPath path, java.lang.Object element, java.io.DataOutput output) throws java.io.IOException
IElementInfoFlattener
N.B. The bytes written must be sufficient for the purposes of reading the object back in.
writeElement
in interface IElementInfoFlattener
path
- the element's path in the treeelement
- the object associated with the given path,
which may be null
.
java.io.IOException
IElementInfoFlattener.writeElement(IPath, Object, DataOutput)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |