IUndoRedoListener
public class UndoRedoListenerAdapter extends java.lang.Object implements IUndoRedoListener
IUndoRedoListener
.Constructor | Description |
---|---|
UndoRedoListenerAdapter() |
Modifier and Type | Method | Description |
---|---|---|
void |
canRedoChanged(boolean canRedo) |
Notified when the undo/redo state has changed.
|
void |
canUndoChanged(boolean canUndo) |
Notified when the undo/redo state has changed.
|
void |
commandRedone(IUndoRedoCommand command) |
Notified when a redo has taken place.
|
void |
commandUndone(IUndoRedoCommand command) |
Notified when an undo has taken place.
|
void |
undoableCommandAdded(IUndoRedoCommand command) |
When a command is added to the stack that can be undone this is called.
|
public void canRedoChanged(boolean canRedo)
IUndoRedoListener
canRedoChanged
in interface IUndoRedoListener
canRedo
- Whether it is possible to redo or notpublic void canUndoChanged(boolean canUndo)
IUndoRedoListener
canUndoChanged
in interface IUndoRedoListener
public void commandRedone(IUndoRedoCommand command)
IUndoRedoListener
commandRedone
in interface IUndoRedoListener
command
- Command that was redonepublic void commandUndone(IUndoRedoCommand command)
IUndoRedoListener
commandUndone
in interface IUndoRedoListener
command
- Command that was undonepublic void undoableCommandAdded(IUndoRedoCommand command)
IUndoRedoListener
GanttUndoRedoManager
.undoableCommandAdded
in interface IUndoRedoListener
command
- Command added to stackGanttChart.getUndoRedoManager()