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.
-
-
Constructor Summary
Constructors Constructor Description GFCommandStack(IConfigurationProvider configurationProvider, org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canRedo()
boolean
canUndo()
void
commandStackChanged(java.util.EventObject event)
void
dispose()
void
execute(org.eclipse.gef.commands.Command gefCommand)
void
flush()
java.lang.Object[]
getCommands()
org.eclipse.gef.commands.Command
getRedoCommand()
org.eclipse.gef.commands.Command
getUndoCommand()
boolean
isDirty()
void
redo()
void
undo()
-
-
-
Constructor Detail
-
GFCommandStack
public GFCommandStack(IConfigurationProvider configurationProvider, org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
-
-
Method Detail
-
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
public java.lang.Object[] 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
public void commandStackChanged(java.util.EventObject event)
- Specified by:
commandStackChanged
in interfaceorg.eclipse.emf.common.command.CommandStackListener
-
-