Class GraphicalEditorCompoundCommand

java.lang.Object
org.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.common.command.CompoundCommand
com.amalgamasimulation.graphicaleditor.commands.GraphicalEditorCompoundCommand
All Implemented Interfaces:
org.eclipse.emf.common.command.Command
Direct Known Subclasses:
OptimizeBendpointsCommand, SplitIntersectedGraphArcsCommand

public abstract class GraphicalEditorCompoundCommand extends org.eclipse.emf.common.command.CompoundCommand
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand

    org.eclipse.emf.common.command.AbstractCommand.NonDirtying
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     
     
    protected boolean
     

    Fields inherited from class org.eclipse.emf.common.command.CompoundCommand

    commandList, LAST_COMMAND_ALL, MERGE_COMMAND_ALL, resultIndex

    Fields inherited from class org.eclipse.emf.common.command.AbstractCommand

    description, isExecutable, isPrepared, label
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    GraphicalEditorCompoundCommand(RedrawRestrictionManager redrawRestrictionManager, boolean restrictRedraw)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
     
    void
     
    abstract void
     
    void
     
    void
     

    Methods inherited from class org.eclipse.emf.common.command.CompoundCommand

    append, appendAndExecute, appendIfCanExecute, dispose, getAffectedObjects, getCommandList, getDescription, getLabel, getMergedAffectedObjectsCollection, getMergedResultCollection, getResult, getResultIndex, isEmpty, prepare, toString, unwrap

    Methods inherited from class org.eclipse.emf.common.command.AbstractCommand

    chain, setDescription, setLabel

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • initialized

      protected boolean initialized
    • restrictRedraw

      protected boolean restrictRedraw
    • redrawRestrictionManager

      protected RedrawRestrictionManager redrawRestrictionManager
  • Constructor Details

    • GraphicalEditorCompoundCommand

      public GraphicalEditorCompoundCommand()
    • GraphicalEditorCompoundCommand

      public GraphicalEditorCompoundCommand(RedrawRestrictionManager redrawRestrictionManager, boolean restrictRedraw)
  • Method Details

    • initialize

      public abstract void initialize()
    • canExecute

      public boolean canExecute()
      Specified by:
      canExecute in interface org.eclipse.emf.common.command.Command
      Overrides:
      canExecute in class org.eclipse.emf.common.command.AbstractCommand
    • canUndo

      public boolean canUndo()
      Specified by:
      canUndo in interface org.eclipse.emf.common.command.Command
      Overrides:
      canUndo in class org.eclipse.emf.common.command.CompoundCommand
    • execute

      public void execute()
      Specified by:
      execute in interface org.eclipse.emf.common.command.Command
      Overrides:
      execute in class org.eclipse.emf.common.command.CompoundCommand
    • redo

      public void redo()
      Specified by:
      redo in interface org.eclipse.emf.common.command.Command
      Overrides:
      redo in class org.eclipse.emf.common.command.CompoundCommand
    • undo

      public void undo()
      Specified by:
      undo in interface org.eclipse.emf.common.command.Command
      Overrides:
      undo in class org.eclipse.emf.common.command.CompoundCommand