public abstract class UndoManager
extends java.lang.Object
UndoProvider
Modifier and Type | Field and Description |
---|---|
static Key<Document> |
ORIGINAL_DOCUMENT |
Constructor and Description |
---|
UndoManager() |
Modifier and Type | Method and Description |
---|---|
static UndoManager |
getGlobalInstance() |
static UndoManager |
getInstance(Project project) |
abstract Pair<java.lang.String,java.lang.String> |
getRedoActionNameAndDescription(FileEditor editor) |
abstract Pair<java.lang.String,java.lang.String> |
getUndoActionNameAndDescription(FileEditor editor) |
abstract boolean |
isRedoAvailable(FileEditor editor) |
abstract boolean |
isRedoInProgress() |
abstract boolean |
isUndoAvailable(FileEditor editor) |
abstract boolean |
isUndoInProgress() |
boolean |
isUndoOrRedoInProgress() |
abstract void |
nonundoableActionPerformed(DocumentReference ref,
boolean isGlobal) |
abstract void |
redo(FileEditor editor) |
abstract void |
undo(FileEditor editor) |
abstract void |
undoableActionPerformed(UndoableAction action) |
public static UndoManager getInstance(Project project)
public static UndoManager getGlobalInstance()
public abstract void undoableActionPerformed(UndoableAction action)
public abstract void nonundoableActionPerformed(DocumentReference ref, boolean isGlobal)
public abstract boolean isUndoInProgress()
public abstract boolean isRedoInProgress()
public boolean isUndoOrRedoInProgress()
public abstract void undo(FileEditor editor)
public abstract void redo(FileEditor editor)
public abstract boolean isUndoAvailable(FileEditor editor)
public abstract boolean isRedoAvailable(FileEditor editor)
public abstract Pair<java.lang.String,java.lang.String> getUndoActionNameAndDescription(FileEditor editor)
public abstract Pair<java.lang.String,java.lang.String> getRedoActionNameAndDescription(FileEditor editor)