org.argouml.model
Class DummyModelMemento

java.lang.Object
  extended by org.argouml.model.ModelMemento
      extended by org.argouml.model.DummyModelMemento

public class DummyModelMemento
extends ModelMemento

Dummy mementos are created where we haven't yet designed the correct memento for undoing an operation. It acts as a marker of work to be done to complete the Undo implementation. It also allows the save action to enable at the correct time. If there is no memento generated and fired back to the main application then the save action will not enable.


Constructor Summary
DummyModelMemento()
           
 
Method Summary
 void redo()
          The method to redo this memento once undone.
 void undo()
          The method to undo this memento.
 
Methods inherited from class org.argouml.model.ModelMemento
dispose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyModelMemento

public DummyModelMemento()
Method Detail

undo

public void undo()
Description copied from class: ModelMemento
The method to undo this memento.

Specified by:
undo in class ModelMemento

redo

public void redo()
Description copied from class: ModelMemento
The method to redo this memento once undone.

Specified by:
redo in class ModelMemento


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Cookbook