|
Eclipse PDE Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Models that implement this interface indicate that they can be changed. When a model is changed, it becomes 'dirty'. This state can either be reset (in case of a 'false alarm' or naturally set to false as a result of saving the changes. Models that implement this interface are expected to be able to save in ASCII file format (e.g. XML).
Method Summary | |
---|---|
boolean |
isDirty()
Tests whether the model has been changed from the last clean state. |
boolean |
isEditable()
Tests whether the model marked as editable can be edited. |
void |
save(PrintWriter writer)
Saves the model into the provided writer. |
void |
setDirty(boolean dirty)
Sets the dirty flag of the model. |
Method Detail |
public boolean isEditable()
true
if model can be modified, false
otherwise.public boolean isDirty()
true
if the model has been changed and need savingpublic void save(PrintWriter writer)
writer
- an object that should be used to
write ASCII representation of the modelpublic void setDirty(boolean dirty)
dirty
- a new value for the 'dirty' flag
|
Eclipse PDE Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |