problems with undo/redo [message #92980] |
Mon, 08 September 2003 11:06  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03613 seconds