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.ForwardingObject
public void execute(Command command)
execute
in interface CommandStack
CommandStack.execute(org.eclipse.emf.common.command.Command)
public boolean canUndo()
canUndo
in interface CommandStack
CommandStack.canUndo()
public void undo()
undo
in interface CommandStack
CommandStack.undo()
public boolean canRedo()
canRedo
in interface CommandStack
CommandStack.canRedo()
public Command getUndoCommand()
getUndoCommand
in interface CommandStack
CommandStack.getUndoCommand()
public Command getRedoCommand()
getRedoCommand
in interface CommandStack
CommandStack.getRedoCommand()
public Command getMostRecentCommand()
getMostRecentCommand
in interface CommandStack
CommandStack.getMostRecentCommand()
public void redo()
redo
in interface CommandStack
CommandStack.redo()
public void flush()
flush
in interface CommandStack
CommandStack.flush()
public void addCommandStackListener(CommandStackListener listener)
addCommandStackListener
in interface CommandStack
CommandStack.addCommandStackListener(org.eclipse.emf.common.command.CommandStackListener)
public void removeCommandStackListener(CommandStackListener listener)
removeCommandStackListener
in interface CommandStack
CommandStack.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.