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
FieldsModifier and TypeFieldDescriptionprotected booleanprotected RedrawRestrictionManagerprotected booleanFields inherited from class org.eclipse.emf.common.command.CompoundCommand
commandList, LAST_COMMAND_ALL, MERGE_COMMAND_ALL, resultIndexFields inherited from class org.eclipse.emf.common.command.AbstractCommand
description, isExecutable, isPrepared, label -
Constructor Summary
ConstructorsConstructorDescriptionGraphicalEditorCompoundCommand(RedrawRestrictionManager redrawRestrictionManager, boolean restrictRedraw) -
Method Summary
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, unwrapMethods inherited from class org.eclipse.emf.common.command.AbstractCommand
chain, setDescription, setLabel
-
Field Details
-
initialized
protected boolean initialized -
restrictRedraw
protected boolean restrictRedraw -
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:
canExecutein interfaceorg.eclipse.emf.common.command.Command- Overrides:
canExecutein classorg.eclipse.emf.common.command.AbstractCommand
-
canUndo
public boolean canUndo()- Specified by:
canUndoin interfaceorg.eclipse.emf.common.command.Command- Overrides:
canUndoin classorg.eclipse.emf.common.command.CompoundCommand
-
execute
public void execute()- Specified by:
executein interfaceorg.eclipse.emf.common.command.Command- Overrides:
executein classorg.eclipse.emf.common.command.CompoundCommand
-
redo
public void redo()- Specified by:
redoin interfaceorg.eclipse.emf.common.command.Command- Overrides:
redoin classorg.eclipse.emf.common.command.CompoundCommand
-
undo
public void undo()- Specified by:
undoin interfaceorg.eclipse.emf.common.command.Command- Overrides:
undoin classorg.eclipse.emf.common.command.CompoundCommand
-