public abstract class DelegatingCommandStack extends com.google.common.collect.ForwardingObject implements CommandStack
delegatating
CommandStack.| Constructor and Description |
|---|
DelegatingCommandStack()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCommandStackListener(CommandStackListener listener) |
boolean |
canRedo() |
boolean |
canUndo() |
protected abstract CommandStack |
delegate()
Returns the backing delegate instance that methods are forwarded to.
|
void |
execute(Command command) |
void |
flush() |
Command |
getMostRecentCommand() |
Command |
getRedoCommand() |
Command |
getUndoCommand() |
protected void |
notifyListeners(Object source)
This is called to ensure that
CommandStackListener.commandStackChanged(java.util.EventObject) is called for each
listener. |
void |
redo() |
void |
removeCommandStackListener(CommandStackListener listener) |
void |
undo() |
protected abstract CommandStack delegate()
delegate in class com.google.common.collect.ForwardingObjectpublic void execute(Command command)
execute in interface CommandStackCommandStack.execute(org.eclipse.emf.common.command.Command)public boolean canUndo()
canUndo in interface CommandStackCommandStack.canUndo()public void undo()
undo in interface CommandStackCommandStack.undo()public boolean canRedo()
canRedo in interface CommandStackCommandStack.canRedo()public Command getUndoCommand()
getUndoCommand in interface CommandStackCommandStack.getUndoCommand()public Command getRedoCommand()
getRedoCommand in interface CommandStackCommandStack.getRedoCommand()public Command getMostRecentCommand()
getMostRecentCommand in interface CommandStackCommandStack.getMostRecentCommand()public void redo()
redo in interface CommandStackCommandStack.redo()public void flush()
flush in interface CommandStackCommandStack.flush()public void addCommandStackListener(CommandStackListener listener)
addCommandStackListener in interface CommandStackCommandStack.addCommandStackListener(org.eclipse.emf.common.command.CommandStackListener)public void removeCommandStackListener(CommandStackListener listener)
removeCommandStackListener in interface CommandStackCommandStack.removeCommandStackListener(org.eclipse.emf.common.command.CommandStackListener)protected void notifyListeners(Object source)
CommandStackListener.commandStackChanged(java.util.EventObject) is called for each
listener.source - the source of the notification
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.