Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Undo in RCP app
Undo in RCP app [message #437144] Thu, 22 September 2005 12:21 Go to next message
Eclipse UserFriend
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
Re: Undo in RCP app [message #437475 is a reply to message #437144] Thu, 29 September 2005 09:08 Go to previous message
Eclipse UserFriend
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
Previous Topic:documentation on update manager
Next Topic:Size of a RCP application
Goto Forum:
  


Current Time: Sat Jul 12 13:21:14 EDT 2025

Powered by FUDForum. Page generated in 0.35860 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top