XYLayout and FlowLayout [message #245409] |
Tue, 09 September 2008 14:53 |
Eclipse User |
|
|
|
Originally posted by: michael.jurke.justinmind.com
Hello,
as we have some kind of ui designer, we are benefitting from draw2d's
XYLayout and FlowLayout and the possibility to change them. Every model
itself contains its position and size, the boxes its layout, too.
The problem is to actualize the model's position after choosing some
FlowLayout - because without doing it, after changing back to XYLayout
old positions are loaded from the model.
Actually we wanted to do it in the command or with the events in the
editpart, but the containing figures always return 0,0 as position after
the layout has taken place (why actually? It seems it is some
reordering, EditPart-Figure-recreating issue found in
AbstractEditPart::refreshChildren()).
We resolved this less satisfying by letting the FlowLayout actualize the
model, too.
Is there some better, recommended resolution to keep the MVC structure
and the edit parts as logic cleaner?
Thanks
MJ
|
|
|
Powered by
FUDForum. Page generated in 0.03651 seconds