| java.lang.Object org.netbeans.modules.visualweb.insync.UndoManager
UndoManager | public class UndoManager implements UndoRedo(Code) | | Undo manager: maintains a list of undoable events, and performs undo/redo as requested by the
user. This class implements the UndoRedo interface from NetBeans, which is used by the
UndoAction. This manager plugs into the IDE via the designer: when a designer form receives
focus, it will set this undo manager as the active undo-redo object for the undo action.
author: Tor Norbye |
UndoManager | public UndoManager()(Code) | | |
canRedo | public boolean canRedo()(Code) | | |
canUndo | public boolean canUndo()(Code) | | |
finishUndoableTask | public void finishUndoableTask(UndoEvent event)(Code) | | Inform the undo manager that the given event is done.
|
getCurrentEvent | public UndoEvent getCurrentEvent()(Code) | | Return event that is in progress. After a finishUndoableTask this will return null.
|
getRedoPresentationName | public String getRedoPresentationName()(Code) | | |
getUndoPresentationName | public String getUndoPresentationName()(Code) | | |
notifyBufferEdited | public void notifyBufferEdited(SourceUnit unit)(Code) | | This method is called when one of the buffers this undo manager cares about has been edited.
If we detect that this is a user-initiated editing operation of the buffer itself, we flush
the undo queues. Otherwise, the user can go into say the backing file, undo three editing
operations, and type 5 characters, then go back to the design view and try to user our undo
queue, and the undo events are totally unsynchronized.
|
notifyUndoableEditEvent | public void notifyUndoableEditEvent(SourceUnit unit)(Code) | | |
startUndoableTask | public UndoEvent startUndoableTask(String description, Model model)(Code) | | Inform the undo manager that a new undoable task is beginning.
Parameters: description - A short user visible description of the task - may for example appear inthe tooltip over the undo/redo buttons. Parameters: model - The Model associated with the task; when the task is undone/redone, the model issynced. |
|
|