Skip to main content



      Home
Home » Eclipse Projects » GEF » Loading a file causes layout problems
Loading a file causes layout problems [message #237099] Fri, 20 July 2007 03:01 Go to next message
Eclipse UserFriend
Originally posted by: ralffrotscher.web.de

Hello.

I've the following problem:

I create an editpart with another editpart as its children and than save the file. Then load the file and everything is okay but if I move the first created editpart (the parent), the child doesn't move.
This child editpart rest in its position. It seems that after loading the child doesn't know that it has a parent because without loading the problem doesn't exist.

I hope you can help me.

Greetings,
Ralf
Re: Loading a file causes layout problems [message #237140 is a reply to message #237099] Mon, 23 July 2007 23:09 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

You need ensure that your parent editpart is still a parent editpart after
you loaded everything from the file. Also, ensure that proper edit
policies are installed on the editparts.
Hope this helps.

Cheers,
Alex
Re: Loading a file causes layout problems [message #237206 is a reply to message #237099] Thu, 26 July 2007 02:56 Go to previous message
Eclipse UserFriend
Originally posted by: ralffrotscher.web.de

Hi.

I solved the problem. I maintain the layout information(position and size) of all graphical objects in my model. And the problem was that if I moved a parent edit part the layout information of the children weren't set. Now I update the layout information of all children recursively. That works.

Thanks Alex for your answer.
Previous Topic:draw2d: label follows figure
Next Topic:Remove Run As, Debug As, Team, etc from the context menu within the GEF editor
Goto Forum:
  


Current Time: Tue Jul 08 04:55:18 EDT 2025

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

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

Back to the top