Layout of diagram without connections [message #209188] |
Sun, 12 February 2006 12:07 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.03222 seconds