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
ConstructorDescriptionGFCommandStack
(IConfigurationProvider configurationProvider, org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canRedo()
boolean
canUndo()
void
commandStackChanged
(EventObject event) void
dispose()
void
execute
(org.eclipse.gef.commands.Command gefCommand) void
flush()
Object[]
org.eclipse.gef.commands.Command
org.eclipse.gef.commands.Command
boolean
isDirty()
void
redo()
void
undo()
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:
canRedo
in classorg.eclipse.gef.commands.CommandStack
-
canUndo
public boolean canUndo()- Overrides:
canUndo
in classorg.eclipse.gef.commands.CommandStack
-
dispose
public void dispose()- Overrides:
dispose
in classorg.eclipse.gef.commands.CommandStack
-
execute
public void execute(org.eclipse.gef.commands.Command gefCommand) - Overrides:
execute
in classorg.eclipse.gef.commands.CommandStack
-
flush
public void flush()- Overrides:
flush
in classorg.eclipse.gef.commands.CommandStack
-
getCommands
- Overrides:
getCommands
in classorg.eclipse.gef.commands.CommandStack
-
getRedoCommand
public org.eclipse.gef.commands.Command getRedoCommand()- Overrides:
getRedoCommand
in classorg.eclipse.gef.commands.CommandStack
-
getUndoCommand
public org.eclipse.gef.commands.Command getUndoCommand()- Overrides:
getUndoCommand
in classorg.eclipse.gef.commands.CommandStack
-
isDirty
public boolean isDirty()- Overrides:
isDirty
in classorg.eclipse.gef.commands.CommandStack
-
redo
public void redo()- Overrides:
redo
in classorg.eclipse.gef.commands.CommandStack
-
undo
public void undo()- Overrides:
undo
in classorg.eclipse.gef.commands.CommandStack
-
commandStackChanged
- Specified by:
commandStackChanged
in interfaceorg.eclipse.emf.common.command.CommandStackListener
-