[kepler-dev] text area undo/redo
leinfelder at nceas.ucsb.edu
Thu Mar 27 10:20:30 PDT 2008
There's been a request to add an "undo" feature when editing scripts
in the RExpression actor. See http://bugzilla.ecoinformatics.org/show_bug.cgi?id=3185
Locally, I have implemented an UndoableEditListener for the JTextArea
that is used in ptolemy.gui.Query along with some supporting inner
classes to facilitate the undoing and redoing of text edits. This
change would cascade to all actors when editing their parameters.
While it seems like a useful feature to provide, it is in a ptII class
and therefore should probably be reviewed by the larger community.
I've used the standard Ctrl+Z and Ctrl+Y shortcut mappings for undo
and redo respectively. And yes, "Ctrl" translates to "open apple/
command" key on the Mac.
Does anyone object to including this change?
More information about the Kepler-dev