Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » XYLayout and FlowLayout
XYLayout and FlowLayout [message #245409] Tue, 09 September 2008 14:53
Eclipse UserFriend
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
Previous Topic:Selection Behavior like Marquee behavior
Next Topic:[Announce] GEF 3.5.0 I200809091900 is available
Goto Forum:
  


Current Time: Tue Sep 24 14:42:53 GMT 2024

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

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

Back to the top