Modelers

org.topcased.modeler.commands
Class AdvancedCommandStack

java.lang.Object
  extended by org.eclipse.gef.commands.CommandStack
      extended by org.topcased.modeler.commands.CommandStack
          extended by org.topcased.modeler.commands.AdvancedCommandStack

public class AdvancedCommandStack
extends CommandStack

This command stack adds specific behavior for the modelers


Field Summary
 
Fields inherited from class org.topcased.modeler.commands.CommandStack
listeners, POST_EXECUTE, POST_REDO, POST_UNDO, PRE_EXECUTE, PRE_REDO, PRE_UNDO
 
Constructor Summary
AdvancedCommandStack()
           
 
Method Summary
 boolean isDirty()
          Returns true if the stack is dirty.
 
Methods inherited from class org.topcased.modeler.commands.CommandStack
addCommandStackEventListener, addCommandStackListener, canRedo, canUndo, dispose, execute, flush, getCommands, getRedoable, getRedoCommand, getSaveLocation, getUndoable, getUndoCommand, getUndoLimit, markSaveLocation, notifyListeners, notifyListeners, redo, removeCommandStackEventListener, removeCommandStackListener, setUndoLimit, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdvancedCommandStack

public AdvancedCommandStack()
Method Detail

isDirty

public boolean isDirty()
Description copied from class: CommandStack
Returns true if the stack is dirty. The stack is dirty whenever the last executed or redone command is different than the command that was at the top of the undo stack when CommandStack.markSaveLocation() was last called.

Overrides:
isDirty in class CommandStack
Returns:
true if the stack is dirty
See Also:
CommandStack.isDirty()

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.