public class GFCommandStack
extends org.eclipse.gef.commands.CommandStack
implements org.eclipse.emf.common.command.CommandStackListener
Constructor and Description |
---|
GFCommandStack(IConfigurationProvider configurationProvider,
org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain) |
Modifier and Type | Method and 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() |
public GFCommandStack(IConfigurationProvider configurationProvider, org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
public boolean canRedo()
canRedo
in class org.eclipse.gef.commands.CommandStack
public boolean canUndo()
canUndo
in class org.eclipse.gef.commands.CommandStack
public void dispose()
dispose
in class org.eclipse.gef.commands.CommandStack
public void execute(org.eclipse.gef.commands.Command gefCommand)
execute
in class org.eclipse.gef.commands.CommandStack
public void flush()
flush
in class org.eclipse.gef.commands.CommandStack
public java.lang.Object[] getCommands()
getCommands
in class org.eclipse.gef.commands.CommandStack
public org.eclipse.gef.commands.Command getRedoCommand()
getRedoCommand
in class org.eclipse.gef.commands.CommandStack
public org.eclipse.gef.commands.Command getUndoCommand()
getUndoCommand
in class org.eclipse.gef.commands.CommandStack
public boolean isDirty()
isDirty
in class org.eclipse.gef.commands.CommandStack
public void redo()
redo
in class org.eclipse.gef.commands.CommandStack
public void undo()
undo
in class org.eclipse.gef.commands.CommandStack
public void commandStackChanged(java.util.EventObject event)
commandStackChanged
in interface org.eclipse.emf.common.command.CommandStackListener