Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Automatic Layout issues
Automatic Layout issues [message #201648] Wed, 02 November 2005 15:16 Go to next message
Eclipse UserFriend
Originally posted by: harsh.ti.com

All,

Any idea of what I might be doing wrong...

So I changed my code to execute the layout changes on the command stack so
I can undo/redo them. However, when I am in manual mode, my edit parts
are all over the editor and then when I switch to automatic, they get
moved around. I thought now if I undo the command (CompoundCommand that
is), everything should go back to the way it was. This is not the case
even though now manual mode is enabled.

Any ideas?
Thank You,
Harsh
Re: Automatic Layout issues [message #201663 is a reply to message #201648] Wed, 02 November 2005 15:45 Go to previous message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
I am not sure switching between automatic and manual modes makes sense when
you use commands. I just have a user-invoced action which does that layout,
and because the layout changes are done as part of a CompoundCommand they
can be undone. So my diagram is always in manual mode.

"Harsh" <harsh@ti.com> wrote in message
news:7ef32da4e1db28fce3288d674efc076c$1@www.eclipse.org...
> All,
>
> Any idea of what I might be doing wrong...
>
> So I changed my code to execute the layout changes on the command stack so
> I can undo/redo them. However, when I am in manual mode, my edit parts
> are all over the editor and then when I switch to automatic, they get
> moved around. I thought now if I undo the command (CompoundCommand that
> is), everything should go back to the way it was. This is not the case
> even though now manual mode is enabled.
>
> Any ideas?
> Thank You,
> Harsh
>
Previous Topic:checkBox and event handling
Next Topic:ConnectionAnchor feedback
Goto Forum:
  


Current Time: Sat Dec 07 06:30:55 GMT 2024

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

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

Back to the top