Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Layout of diagram without connections
Layout of diagram without connections [message #209188] Sun, 12 February 2006 12:07 Go to next message
Eclipse UserFriend
Originally posted by: dutz.c-ware.de

Hi.

I have developed a small GEF editor. Everything is finally working as it
should. Unfortunately I have noticed a strange behaviour. The elements in
the editor are layouted by my own layout-manager and are not selectable,
drageble or resizeable. The only thing a user can do is create connections
between the elements. This works realy great. All elements are layouted as
they should except if no connections exist. Then I can not see a single
element. I have to click in the editor area an drag the mouse a little and
as if it were magic, everything appears.

Why is the initial layouting only done if a connection exists? Did I miss
any special behavieour of GEF?

Chris
Re: Layout of diagram without connections [message #209196 is a reply to message #209188] Sun, 12 February 2006 22:38 Go to previous message
Eclipse UserFriend
Originally posted by: dutz.c-ware.de

I managed to narrow down the problem a little more.

In the case of connections existing, the layout-method is called twice. The
first time the bounds of the Figure the layout is to be done for (my Editors
FreeFormLayer) is equal to zero. The second time the bounds are set
correctly. Now when opening the editor without any connections only the
first call to layout is done.

Hope you can help me, I am sort of runing out of ideas of where to look :(

Chris


"Christofer Dutz" <dutz@c-ware.de> schrieb im Newsbeitrag
news:dso4vn$fev$2@utils.eclipse.org...
> Hi.
>
> I have developed a small GEF editor. Everything is finally working as it
> should. Unfortunately I have noticed a strange behaviour. The elements in
> the editor are layouted by my own layout-manager and are not selectable,
> drageble or resizeable. The only thing a user can do is create connections
> between the elements. This works realy great. All elements are layouted as
> they should except if no connections exist. Then I can not see a single
> element. I have to click in the editor area an drag the mouse a little and
> as if it were magic, everything appears.
>
> Why is the initial layouting only done if a connection exists? Did I miss
> any special behavieour of GEF?
>
> Chris
>
Previous Topic:relocating connection labels.
Next Topic:Singleton EditPart
Goto Forum:
  


Current Time: Tue Apr 16 23:19:03 GMT 2024

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

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

Back to the top