Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Undo in RCP app
Undo in RCP app [message #437144] Thu, 22 September 2005 16:21 Go to next message
Martin Umgeher is currently offline Martin UmgeherFriend
Messages: 3
Registered: July 2009
Junior Member
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 13: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: Fri Dec 06 14:24:07 GMT 2024

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

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

Back to the top