|Lost Undo/Redo Operation [message #593502]
||Wed, 16 May 2007 08:10
Registered: July 2009
I found another strange behavior to me.
Tell me what you think of it.
When performing a change on a diagram,
(any change will do so let's choose "Set Location or Size" for example)
the undo command is accessible on the edit menu.
So far, all is right.
But if I shift to another editor and then come back to my diagram editor
(still dirty from the previous change)
The "Set Location or Size" has disappear from the undo stack.
(Undo is disabled if we haven't done anything but editor shifting)
I believe that comes from the fact that gmf diagram editor uses its own
Command stack, and it is not so simple to integrate it well with the
Eclipse Command stack.
With further tries, I found that the stack isn't really lost because if
I make a second change, it appears on the edit Undo menu. and after
calling undo, the undo for the first change is reachable again.
So it seems that the gmf and the eclipse command stack are excluding
each others for getting access to the menu bar.
Any idea to merge them correctly or at least give back the menu when the
stack become empty ?
Powered by FUDForum
. Page generated in 0.01972 seconds