Class GFCommandStack

java.lang.Object
org.eclipse.gef.commands.CommandStack
org.eclipse.graphiti.ui.internal.editor.GFCommandStack
All Implemented Interfaces:
org.eclipse.emf.common.command.CommandStackListener

public class GFCommandStack extends org.eclipse.gef.commands.CommandStack implements org.eclipse.emf.common.command.CommandStackListener
The Class GFCommandStack.
  • Field Summary

    Fields inherited from class org.eclipse.gef.commands.CommandStack

    listeners, POST_EXECUTE, POST_FLUSH, POST_MARK_SAVE, POST_MASK, POST_REDO, POST_UNDO, PRE_EXECUTE, PRE_FLUSH, PRE_MARK_SAVE, PRE_MASK, PRE_REDO, PRE_UNDO
  • Constructor Summary

    Constructors
    Constructor
    Description
    GFCommandStack(IConfigurationProvider configurationProvider, org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
     
    void
     
    void
     
    void
    execute(org.eclipse.gef.commands.Command gefCommand)
     
    void
     
     
    org.eclipse.gef.commands.Command
     
    org.eclipse.gef.commands.Command
     
    boolean
     
    void
     
    void
     

    Methods inherited from class org.eclipse.gef.commands.CommandStack

    addCommandStackEventListener, addCommandStackListener, getUndoLimit, markSaveLocation, notifyListeners, notifyListeners, removeCommandStackEventListener, removeCommandStackListener, setUndoLimit

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GFCommandStack

      public GFCommandStack(IConfigurationProvider configurationProvider, org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
  • Method Details

    • canRedo

      public boolean canRedo()
      Overrides:
      canRedo in class org.eclipse.gef.commands.CommandStack
    • canUndo

      public boolean canUndo()
      Overrides:
      canUndo in class org.eclipse.gef.commands.CommandStack
    • dispose

      public void dispose()
      Overrides:
      dispose in class org.eclipse.gef.commands.CommandStack
    • execute

      public void execute(org.eclipse.gef.commands.Command gefCommand)
      Overrides:
      execute in class org.eclipse.gef.commands.CommandStack
    • flush

      public void flush()
      Overrides:
      flush in class org.eclipse.gef.commands.CommandStack
    • getCommands

      public Object[] getCommands()
      Overrides:
      getCommands in class org.eclipse.gef.commands.CommandStack
    • getRedoCommand

      public org.eclipse.gef.commands.Command getRedoCommand()
      Overrides:
      getRedoCommand in class org.eclipse.gef.commands.CommandStack
    • getUndoCommand

      public org.eclipse.gef.commands.Command getUndoCommand()
      Overrides:
      getUndoCommand in class org.eclipse.gef.commands.CommandStack
    • isDirty

      public boolean isDirty()
      Overrides:
      isDirty in class org.eclipse.gef.commands.CommandStack
    • redo

      public void redo()
      Overrides:
      redo in class org.eclipse.gef.commands.CommandStack
    • undo

      public void undo()
      Overrides:
      undo in class org.eclipse.gef.commands.CommandStack
    • commandStackChanged

      public void commandStackChanged(EventObject event)
      Specified by:
      commandStackChanged in interface org.eclipse.emf.common.command.CommandStackListener