Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Arrange All
Arrange All [message #219530] Fri, 20 February 2009 13:39 Go to next message
Martin Jacob is currently offline Martin JacobFriend
Messages: 189
Registered: July 2009
Senior Member
Hi,

I wrote my own LayoutProvider for the "ArrangeAll" command. The provider is called when I select the
menu "arrange all". So far so good.
I can tune the layout by some properties in preferences. All works fine.

Now my problem:
After I change a property in preferences I select "arrange all" in the menu. The layout changed.
Than I select again "arrange all" and the nodes move again a little bit. They move one grid spacing.
The layout after the second call is the correct layout. I compared the Bounds values from the first
and the second "arrange all" command. All values in the second call are identical to the first call
but the displayed layout in the diagram are different.

Does any one experienced this problem before? How to solve it?

BR, Martin
Re: Arrange All [message #219543 is a reply to message #219530] Fri, 20 February 2009 13:55 Go to previous message
Martin Jacob is currently offline Martin JacobFriend
Messages: 189
Registered: July 2009
Senior Member
Hi,

I still looking for the reason of the below described behavior. I found out the problem exist only
when the diagram property "Snap to Grid" is selected. But I dont understand the behavior because my
own LayoutProvider place all nodes exactly at the grid.
Still no glue what is the reason for my problem :(.

As a workaround I may disable the "Snap to Grid" property. How can I do this?

BR, Martin


Martin Jacob wrote, On 20.02.2009 14:39:
> Hi,
>
> I wrote my own LayoutProvider for the "ArrangeAll" command. The provider
> is called when I select the menu "arrange all". So far so good.
> I can tune the layout by some properties in preferences. All works fine.
>
> Now my problem:
> After I change a property in preferences I select "arrange all" in the
> menu. The layout changed. Than I select again "arrange all" and the
> nodes move again a little bit. They move one grid spacing. The layout
> after the second call is the correct layout. I compared the Bounds
> values from the first and the second "arrange all" command. All values
> in the second call are identical to the first call but the displayed
> layout in the diagram are different.
>
> Does any one experienced this problem before? How to solve it?
>
> BR, Martin
Previous Topic:Practicalities of GMF
Next Topic:Model object created in wrong resource when using shortcuts
Goto Forum:
  


Current Time: Thu Mar 04 01:38:22 GMT 2021

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

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

Back to the top