org.argouml.model
Class DummyModelCommand

java.lang.Object
  extended by org.argouml.model.ModelCommand
      extended by org.argouml.model.DummyModelCommand

public class DummyModelCommand
extends ModelCommand

Dummy commands are created where we haven't yet designed the correct command 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 command generated and fired back to the main application then the save action will not enable.


Constructor Summary
DummyModelCommand()
           
 
Method Summary
 java.lang.Object execute()
          Execute this command.
 boolean isRedoable()
          Determine whether the command can be redone once undone.
 boolean isUndoable()
          Determine whether the command can be undone.
 void undo()
          Undo this command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyModelCommand

public DummyModelCommand()
Method Detail

undo

public void undo()
Description copied from class: ModelCommand
Undo this command.

Specified by:
undo in class ModelCommand

execute

public java.lang.Object execute()
Description copied from class: ModelCommand
Execute this command.

Specified by:
execute in class ModelCommand
Returns:
any result generated by this command

isUndoable

public boolean isUndoable()
Description copied from class: ModelCommand
Determine whether the command can be undone.

Specified by:
isUndoable in class ModelCommand
Returns:
true if the command can be undone

isRedoable

public boolean isRedoable()
Description copied from class: ModelCommand
Determine whether the command can be redone once undone.

Specified by:
isRedoable in class ModelCommand
Returns:
true if the command can be redone


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Cookbook