Package org.languagetool.gui
Class UndoRedoSupport
java.lang.Object
org.languagetool.gui.UndoRedoSupport
Provides Undo/Redo support and actions for JTextComponent
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class
(package private) class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CompoundEdit
private boolean
private final ResourceBundle
(package private) final UndoRedoSupport.RedoAction
(package private) final UndoRedoSupport.UndoAction
private final UndoManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
Notify manager to stop merging undoable edits.(package private) void
Notify manager to start merging undoable edits.
-
Field Details
-
undoAction
-
redoAction
-
undoManager
-
messages
-
compoundMode
private boolean compoundMode -
ce
-
-
Constructor Details
-
UndoRedoSupport
UndoRedoSupport(JTextComponent textComponent, ResourceBundle messages)
-
-
Method Details
-
startCompoundEdit
void startCompoundEdit()Notify manager to start merging undoable edits. Calling startCompoundEdit when already in compound mode is an error and will throw a RuntimeException.- Since:
- 2.7
-
endCompoundEdit
void endCompoundEdit()Notify manager to stop merging undoable edits. Calling endCompoundEdit when not in compound mode is an error and will throw a RuntimeException.- Since:
- 2.7
-