Skip to main content



      Home
Home » Eclipse Projects » GEF » problems with undo/redo
problems with undo/redo [message #92980] Mon, 08 September 2003 11:06 Go to next message
Eclipse UserFriend
Hi

I'm trying to connect my GEF app to the workbench undo/redo mechanism, so
CTRL+Z and CTRL+Y would work as the user expects. I created an action
contributor class and "wired" it in it the plugin.xml, the same way as it is
done in the logic example, but still something is missing and there is no
response to CTRL+Z and CTRL+Y in my app (it works fine in other apps),
moreover, the undo/redo entries under the edit menu are disabled. Another
problem is when i use the undo from the context menu, even if the undo stack
is empty, there is still an enabled menu item in the context menu with the
label "Undo <last undone command name>", and the redo item is disabled, if i
change to another editor and change back, this problem is fixed, does anyone
have any idea what to do with these problems?

thanks

yoav
Re: problems with undo/redo [message #93600 is a reply to message #92980] Wed, 10 September 2003 18:40 Go to previous message
Eclipse UserFriend
Originally posted by: felix.mayer.cingular.com

Yoav Rubin wrote:

> Hi

> I'm trying to connect my GEF app to the workbench undo/redo mechanism, so
> CTRL+Z and CTRL+Y would work as the user expects. I created an action
> contributor class and "wired" it in it the plugin.xml, the same way as it is
> done in the logic example, but still something is missing and there is no
> response to CTRL+Z and CTRL+Y in my app (it works fine in other apps),
> moreover, the undo/redo entries under the edit menu are disabled. Another
> problem is when i use the undo from the context menu, even if the undo stack
> is empty, there is still an enabled menu item in the context menu with the
> label "Undo <last undone command name>", and the redo item is disabled, if i
> change to another editor and change back, this problem is fixed, does anyone
> have any idea what to do with these problems?

> thanks

> yoav

Did you create the RetargetActions in an ActionBarContributor?
Are you checking CommandStack.isDirty() in you editor?
Please look closely at the Logic Example.
Previous Topic:Visual Debuger?
Next Topic:how to configure GEF 2.1 on Eclispe 3.0 M3?
Goto Forum:
  


Current Time: Mon May 12 14:36:38 EDT 2025

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

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

Back to the top