Get the current data caret position as a path.
A caret.
Records an operation as part of this group.
The operation to record.
This method can be used to record the caret position after the acts recorded by this undo are performed. If the caret is recorded by means of this method, then end will not record the caret position again. This can be useful in cases for which it is not clear when an UndoGroup might end. TextUndoGroup is a case in point. This method can be called any number of times to update the caret position at the end of the group.
Called when the operation must be redone.
Set the data caret.
A caret.
Called when the operation must be undone.
Generated using TypeDoc
This class extends the vanilla UndoGroup class by recording the location of the caret when the group is created and when group recording ends. This allows restoring the caret to sensible positions before and after undoing or redoing.