apache /
pivot /
a518a93bcfe50d0837adb45bb835111ccbff36bc PIVOT-1021: Complete rearrangement of how undo in TextPane works:
* Save the removed characters all the time for undo purposes.
* Use the TextPane.insert() method to undo a delete.
* Reset the selection position after "undo".
* Change what is saved during undo to basically be the characters
and not the nodes themselves -- too much hassle to make that work.
* Also add an accessor method to set the flag saying whether or not
to save undo history. This is necessary so that node rearrangement
that doesn't change the text won't have to get saved for undo.
git-svn-id: https://svn.apache.org/repos/asf/pivot/trunk@1822149 13f79535-47bb-0310-9956-ffa450edef68
3 files changed