Skip to main content



      Home
Home » Eclipse Projects » GEF » redo and undo menu items are disabled after a command is executed
redo and undo menu items are disabled after a command is executed [message #165826] Wed, 26 January 2005 19:50 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:Fixed areas when horizontally scroll
Next Topic:Bug in SWTEventDispatcher?
Goto Forum:
  


Current Time: Sat May 10 05:21:15 EDT 2025

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

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

Back to the top