[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Auto arrange elements when added to a Compartment

Hi,

When the user create elements (children) into a compartment (parent), I would like to automatically arrange children (the new one and the old ones) so that they are all horizontally aligned.

I guess I have to add a FlowLayout (vertical=false, forceSingleLine=true) to my Compartment figure (do I have to use a FlowLayoutData too ???).
But I don't know how to force the layout calculation to be processed when a child is added.


I tried some "revalidate" things on the Figure compartment but it does not seem to work.

Any idea ?
Thx