|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.text.DefaultUndoManager
Standard implementation of IUndoManager.
It registers with the connected text viewer as text input listener and document listener and logs all changes. It also monitors mouse and keyboard activities in order to partition the stream of text changes into undo-able edit commands.
This class is not intended to be subclassed.
Constructor Summary | |
DefaultUndoManager(int undoLevel)
Creates a new undo manager who remembers the specified number of edit commands. |
Method Summary | |
void | beginCompoundChange()
Signals the undo manager that all subsequent changes until endCompoundChange is called are to be undone in one piece. |
void | connect(ITextViewer textViewer)
Connects this undo manager to the given text viewer. |
void | disconnect()
Disconnects this undo manager from its text viewer. |
void | endCompoundChange()
Signals the undo manager that the sequence of changes which started with beginCompoundChange has been finished. |
void | redo()
Repeats the most recently rolled back text change. |
boolean | redoable()
Returns whether at least one text change can be repeated. |
void | reset()
Resets the history of the undo manager. |
protected void | selectAndReveal(int offset,
int length)
Selects and reveals the specified range. |
void | setMaximalUndoLevel(int undoLevel)
The given parameter determines the maximal length of the history remembered by the undo manager. |
void | undo()
Rolls back the most recently executed text change. |
boolean | undoable()
Returns whether at least one text change can be rolled back. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultUndoManager(int undoLevel)
Method Detail |
public void beginCompoundChange()
public void endCompoundChange()
public void setMaximalUndoLevel(int undoLevel)
public void connect(ITextViewer textViewer)
public void disconnect()
public void reset()
public boolean redoable()
public boolean undoable()
public void redo()
public void undo()
protected void selectAndReveal(int offset, int length)
|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.