Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Arrange All
Arrange All [message #219530] Fri, 20 February 2009 08:39 Go to next message
Eclipse UserFriend
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 08:55 Go to previous message
Eclipse UserFriend
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: Mon Jul 07 15:00:36 EDT 2025

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

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

Back to the top