abbot.editor.actions
Class CommandHistory
java.lang.Object
abbot.editor.actions.CommandHistory
public class CommandHistory
- extends Object
Keep a history of commands, enabling potentially unlimited undo.
This class is not synchronized.
Note that undo is itself an undoable action.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandHistory
public CommandHistory()
canUndo
public boolean canUndo()
undo
public void undo()
throws NoUndoException
- Throws:
NoUndoException
add
public void add(Command command)
- Add the given command to the command history.
clear
public void clear()
Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on