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
ConstructorsConstructorDescriptionGFCommandStack(IConfigurationProvider configurationProvider, org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRedo()booleancanUndo()voidcommandStackChanged(EventObject event) voiddispose()voidexecute(org.eclipse.gef.commands.Command gefCommand) voidflush()Object[]org.eclipse.gef.commands.Commandorg.eclipse.gef.commands.CommandbooleanisDirty()voidredo()voidundo()Methods inherited from class org.eclipse.gef.commands.CommandStack
addCommandStackEventListener, addCommandStackListener, getUndoLimit, markSaveLocation, notifyListeners, notifyListeners, removeCommandStackEventListener, removeCommandStackListener, setUndoLimit
-
Constructor Details
-
GFCommandStack
public GFCommandStack(IConfigurationProvider configurationProvider, org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
-
-
Method Details
-
canRedo
public boolean canRedo()- Overrides:
canRedoin classorg.eclipse.gef.commands.CommandStack
-
canUndo
public boolean canUndo()- Overrides:
canUndoin classorg.eclipse.gef.commands.CommandStack
-
dispose
public void dispose()- Overrides:
disposein classorg.eclipse.gef.commands.CommandStack
-
execute
public void execute(org.eclipse.gef.commands.Command gefCommand) - Overrides:
executein classorg.eclipse.gef.commands.CommandStack
-
flush
public void flush()- Overrides:
flushin classorg.eclipse.gef.commands.CommandStack
-
getCommands
- Overrides:
getCommandsin classorg.eclipse.gef.commands.CommandStack
-
getRedoCommand
public org.eclipse.gef.commands.Command getRedoCommand()- Overrides:
getRedoCommandin classorg.eclipse.gef.commands.CommandStack
-
getUndoCommand
public org.eclipse.gef.commands.Command getUndoCommand()- Overrides:
getUndoCommandin classorg.eclipse.gef.commands.CommandStack
-
isDirty
public boolean isDirty()- Overrides:
isDirtyin classorg.eclipse.gef.commands.CommandStack
-
redo
public void redo()- Overrides:
redoin classorg.eclipse.gef.commands.CommandStack
-
undo
public void undo()- Overrides:
undoin classorg.eclipse.gef.commands.CommandStack
-
commandStackChanged
- Specified by:
commandStackChangedin interfaceorg.eclipse.emf.common.command.CommandStackListener
-