java.lang.Object
org.gjt.sp.jedit.buffer.UndoManager
A class internal to jEdit's document model. You should not use it
directly. To improve performance, none of the methods in this class
check for out of bounds access, nor are they thread-safe. The
Buffer
class, through which these methods must be
called through, implements such protection.- Since:
- jEdit 4.0pre1
- Version:
- $Id: UndoManager.java 25196 2020-04-11 17:08:33Z kpouer $
- Author:
- Slava Pestov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
canRedo()
boolean
canUndo()
void
clear()
void
contentInserted
(int offset, int length, String text, boolean clearDirty) void
contentRemoved
(int offset, int length, String text, boolean clearDirty) void
boolean
redo()
void
void
setLimit
(int limit) undo()
-
Constructor Details
-
UndoManager
-
-
Method Details
-
setLimit
public void setLimit(int limit) -
clear
public void clear() -
canUndo
public boolean canUndo() -
undo
-
canRedo
public boolean canRedo() -
redo
-
beginCompoundEdit
public void beginCompoundEdit() -
endCompoundEdit
public void endCompoundEdit() -
insideCompoundEdit
public boolean insideCompoundEdit() -
getUndoId
-
contentInserted
-
contentRemoved
-
resetClearDirty
public void resetClearDirty()
-