redo and undo menu items are disabled after a command is executed [message #165826] |
Wed, 26 January 2005 19:50  |
Eclipse User |
|
|
|
Originally posted by: kevinlouisnospam.hotmail.com
Hi,
I have implemented my MoveObjectCommand. But after it is executed, the
Undo/Redo menu items are disabled and the menu text are not changed. I
debug it, and the CommandStack is changed, the UndoAction.refresh is called
and new text is set.
Is there anything I have to implement to turn on the redo/undo menu? Any
clues what's wrong and where I should debug it?
Thanks in advance.
Kevin
|
|
|
Re: redo and undo menu items are disabled after a command is executed [message #165952 is a reply to message #165826] |
Thu, 27 January 2005 11:08  |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
The menuitems do not correspond to your actions unless you specifically
register your actions as the handlers for the global undo/redo action.
See setActiveEditor in GEF's EditorActionBarContributor
"Kevin" <kevinlouisnospam@hotmail.com> wrote in message
news:ct9dsu$ntg$1@www.eclipse.org...
> Hi,
>
> I have implemented my MoveObjectCommand. But after it is executed, the
> Undo/Redo menu items are disabled and the menu text are not changed. I
> debug it, and the CommandStack is changed, the UndoAction.refresh is
> called
> and new text is set.
>
> Is there anything I have to implement to turn on the redo/undo menu? Any
> clues what's wrong and where I should debug it?
>
> Thanks in advance.
>
> Kevin
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.15014 seconds