public class SyntaxUndoManager
extends javax.swing.undo.UndoManager
| Constructor and Description |
|---|
SyntaxUndoManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addEdit(javax.swing.undo.UndoableEdit anEdit) |
void |
addUndoManagerListener(SyntaxUndoManagerListener listener)
Add an UndoManager listener.
|
boolean |
canUndo() |
int |
getCountEdit()
Return the edit count of the undo manager.
|
boolean |
isSilent()
Return true if the document updates are silent.
|
void |
redo() |
void |
setSilent(boolean isSilent)
Set if the document updates are silent.
|
void |
undo() |
canRedo, canUndoOrRedo, discardAllEdits, editToBeRedone, editToBeUndone, end, getLimit, getRedoPresentationName, getUndoOrRedoPresentationName, getUndoPresentationName, redoTo, setLimit, toString, trimEdits, trimForLimit, undoableEditHappened, undoOrRedo, undoTopublic void setSilent(boolean isSilent)
isSilent - true if the document is editablepublic boolean isSilent()
public boolean addEdit(javax.swing.undo.UndoableEdit anEdit)
addEdit in interface javax.swing.undo.UndoableEditaddEdit in class javax.swing.undo.UndoManagerpublic void addUndoManagerListener(SyntaxUndoManagerListener listener)
listener - the listenerpublic void undo()
undo in interface javax.swing.undo.UndoableEditundo in class javax.swing.undo.UndoManagerpublic void redo()
redo in interface javax.swing.undo.UndoableEditredo in class javax.swing.undo.UndoManagerpublic int getCountEdit()
public boolean canUndo()
canUndo in interface javax.swing.undo.UndoableEditcanUndo in class javax.swing.undo.UndoManagerCopyright © 2016, 2017, 2018, 2019, 2023, 2025 Herve Girod. All Rights Reserved. Documentation and source under the MIT licence