Undoable property entry and stack actions [message #135828] |
Wed, 02 June 2004 19:52 |
Eclipse User |
|
|
|
Originally posted by: cwhite.ic.net
Has anyone come up with a clever way of enabling the Undo/Redo targetable
actions when changes are made to a GEF model object using the property sheet
without needing to make the editor part active?
I noticed that undo/redo actions are enabled with the correct commands when
I make my editor the active workbench part after editing with the property
sheet. I noticed that the GEF examples exhibit this same behavior.
I have tried a number of approaches including subclassing PropertySheet and
adding some retargetable actions. I just can't figure out how to make the
PropertySheet listen for changes to the edtor's command stack (even though
the property entires are) so that I can update the actions when the stack
changes.
|
|
|
Powered by
FUDForum. Page generated in 0.02963 seconds