|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IWorkingCopy
Generic interface used to provide a way to edit an object in a "working copy" and commit all changes in a
| Method Summary | |
|---|---|
void |
addOriginalChangeListener(IOriginalChangeListener listener)
This call-back mechanism can be used by the client to be notified when the original object has changed. |
void |
commit(IProgressMonitor monitor)
Commits the changes in this "working copy" to the original. |
void |
dispose()
Disposes of this working copy. |
java.lang.Object |
getOriginal()
Returns the original object that was used to create this working copy Note that this is the original object in its current state, not in necessarily in the state it was at the time the working copy was created |
boolean |
isDirty()
|
boolean |
isWorkingCopy()
|
IWorkingCopy |
makeWorkingCopy(IProgressMonitor monitor)
Creates a deep-clone of the original object to return a "working copy" that can be used for editing. |
void |
removeOriginalChangeListener(IOriginalChangeListener listener)
Removes a listener from the list. |
| Method Detail |
|---|
boolean isWorkingCopy()
boolean isDirty()
IWorkingCopy makeWorkingCopy(IProgressMonitor monitor)
throws TigerstripeException
monitor -
TigerstripeException
java.lang.Object getOriginal()
throws TigerstripeException
TigerstripeExceptionvoid addOriginalChangeListener(IOriginalChangeListener listener)
listener - -
the listener to register, if already registered it will be
ignoredvoid removeOriginalChangeListener(IOriginalChangeListener listener)
listener -
void commit(IProgressMonitor monitor)
throws TigerstripeException
monitor -
TigerstripeExceptionvoid dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||