Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to add undo/redo of my actions to GEF CommandStack?
How to add undo/redo of my actions to GEF CommandStack? [message #206307] Wed, 28 December 2005 19:12 Go to next message
Eclipse UserFriend
Originally posted by: ngocdannytn.sbcglobal.net

I have a GEF editor with several actions in the ContextMenu. Please show me
how to support undo/redo for those actions. Thanks.
Dan
Re: How to add undo/redo of my actions to GEF CommandStack? [message #206367 is a reply to message #206307] Thu, 29 December 2005 16:16 Go to previous message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
1. In your action, create a Request that is sent to the relevant EditParts.
2. On the EditPart, install an EditPolicy which handles the Request by
creating a Command.
3. Execute the Command on the CommandStack. Do not call Cammand.execute()
directly.

"Danny Nguyen" <ngocdannytn@sbcglobal.net> wrote in message
news:dounvr$6p1$1@utils.eclipse.org...
>I have a GEF editor with several actions in the ContextMenu. Please show me
> how to support undo/redo for those actions. Thanks.
> Dan
>
>
Previous Topic:Generic "ghost" figure for ResizableEditPolicy.createDragSourceFeedbackFigure()
Next Topic:Change cursor for DND
Goto Forum:
  


Current Time: Fri Apr 26 14:57:49 GMT 2024

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

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

Back to the top