|
Re: Undo in RCP app [message #437475 is a reply to message #437144] |
Thu, 29 September 2005 13:08 |
Eclipse User |
|
|
|
Originally posted by: Lamont_Gilbert.rigidsoftware.com
Martin Umgeher wrote:
> Hi,
>
> I implemented some IUndoableOperations which perform changes to my data
> model. This works fine; but I can't figure out how to make undo/redo
> available to the user. I registered undo/redo actions
> (ActionFactory.REDO/UNDO) into the RCP application's ActionBarAdvisor
> and added a menu containing them as menu items, but they never get
> enabled, even if an undoable operation has been executed.
>
> I guess this has something to do with IUndoContexts, but I can't figure
> out where I should create/add/reference/... which context. Could someone
> please give me a short explanation (or links to additional docs) for
> this subject?
>
> TIA
> Martin
i think those are retarget actions. you need to implement the local
(IAction) version of those actions in each view that is expected to
respond to them as well. IIRC.
CL
|
|
|
Powered by
FUDForum. Page generated in 0.02999 seconds