| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Class IdeUndoManager allows to track the changes in the model and to discard
almost any change.
A "change in model" means modification of the model structure or in any of its elements.
The current state of the model can be obtained using the markState method.
Having obtained the state of the model, one can return to that state using the resetChange method.
| Method Summary | |
boolean | canResetState(Object state)Checks whether is is possible to reset the current state of the model and to set it to the specified state. |
Object | markState()Returns an Object that stores the current state of the model. |
void | resetState(Object state)Resets the current state of the model and sets it to the specified state, obtained at some earlier moment by markState method. |
boolean | wasEssentialChange(Object state)Checks if any significant changes in the model occurred since the specified state. |
| Method Detail |
public boolean canResetState(Object state)
true.
Otherwise returns false, for example, if the project has been closed.Object that stores the required state of the modeltrue if the model can be reset to the specified state,
false otherwise.public Object markState()
Object that stores the current state of the model.Object with the current model statepublic void resetState(Object state)
markState method.Object that stores the previous model statepublic boolean wasEssentialChange(Object state)
Object that stores the reference statetrue if the model has undergone essential modification since
the specified state; false otherwise
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||