public class UndoManagerImpl extends UndoManager implements Disposable
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
static boolean |
ourNeverAskUser |
ORIGINAL_DOCUMENT
getGlobalInstance, getInstance, isUndoOrRedoInProgress
public static boolean isRefresh()
public static int getGlobalUndoLimit()
public static int getDocumentUndoLimit()
public Project getProject()
public void dispose()
Disposable
dispose
in interface Disposable
public boolean isActive()
public void addDocumentAsAffected(Document document)
public void nonundoableActionPerformed(DocumentReference ref, boolean isGlobal)
nonundoableActionPerformed
in class UndoManager
public void undoableActionPerformed(UndoableAction action)
undoableActionPerformed
in class UndoManager
public void markCurrentCommandAsGlobal()
public void addAffectedFiles(VirtualFile... files)
public void invalidateActionsFor(DocumentReference ref)
public void undo(FileEditor editor)
undo
in class UndoManager
public void redo(FileEditor editor)
redo
in class UndoManager
public boolean isUndoInProgress()
isUndoInProgress
in class UndoManager
public boolean isRedoInProgress()
isRedoInProgress
in class UndoManager
public boolean isUndoAvailable(FileEditor editor)
isUndoAvailable
in class UndoManager
public boolean isRedoAvailable(FileEditor editor)
isRedoAvailable
in class UndoManager
public Pair<java.lang.String,java.lang.String> getUndoActionNameAndDescription(FileEditor editor)
getUndoActionNameAndDescription
in class UndoManager
public Pair<java.lang.String,java.lang.String> getRedoActionNameAndDescription(FileEditor editor)
getRedoActionNameAndDescription
in class UndoManager
protected void compact()
public void setEditorProvider(CurrentEditorProvider p)
public CurrentEditorProvider getEditorProvider()
public void dropHistoryInTests()
public void flushCurrentCommandMerger()
public void clearUndoRedoQueueInTests(VirtualFile file)
public void clearUndoRedoQueueInTests(Document document)
public java.lang.String toString()
toString
in class java.lang.Object