The description of this group.
The editor for which this undo group is created.
The list which will hold this group.
The maximum number of undo operations that this group should record.
The maximum number of undo operations that this group should record.
The list which will hold this group.
Get the current data caret position as a path.
A caret.
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
Grouping of text operations should be limited in size. For instance, if the user hits backspace to delete a whole sentence and then wants to undo this operation. It is better to undo it in chunks instead of reinserting the whole sentence. This class allows for limiting the length of such chunks.