Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Lost Undo/Redo Operation
Lost Undo/Redo Operation [message #470740] Wed, 16 May 2007 08:10 Go to next message
Philippe is currently offline Philippe
Messages: 100
Registered: July 2009
Senior Member
Hi,

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 ?

Best Regards
Philippe
Re: Lost Undo/Redo Operation [message #470781 is a reply to message #470740] Wed, 16 May 2007 08:16 Go to previous message
Philippe is currently offline Philippe
Messages: 100
Registered: July 2009
Senior Member
I found an existing report about this on GMF bug list
https://bugs.eclipse.org/bugs/show_bug.cgi?id=173361


Philippe wrote:
> Hi,
>
> 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 ?
>
> Best Regards
> Philippe
>
Re: Lost Undo/Redo Operation [message #593517 is a reply to message #470740] Wed, 16 May 2007 08:16 Go to previous message
Philippe is currently offline Philippe
Messages: 100
Registered: July 2009
Senior Member
I found an existing report about this on GMF bug list
https://bugs.eclipse.org/bugs/show_bug.cgi?id=173361


Philippe wrote:
> Hi,
>
> 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 ?
>
> Best Regards
> Philippe
>
Previous Topic:Lost Undo/Redo Operation
Next Topic:Regarding bug 162570 ([ClassD] Basic profiles support for ClassD elements)
Goto Forum:
  


Current Time: Sat Sep 20 18:11:14 GMT 2014

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

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