[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Creating a child of the same size as its compartment

Hello Pierre,

Well this is not exactly what I would like (I tried your suggestion).
Actually, using a ListLayout make my Process having (approximately)
the same width of its compartment. I would like my process to be of
exactly the same size (width + height) as its containing compartment
(i.e. the pool).
I think the rest is borders/insets and you have to set it for the Process figure or compartment figure itself.
Unfortunately compartment is visualized by predefined figure (not by the generated one from .gmfgraph) so you have to modify generated code to tune it.


The question is the following: with a compartment C having only one
children node N, how can I make N the exact size of C?
Do not know exact answer for this question â looks like you have to modify generated code and change some Compartment figure/layout manager properties.

1. Is this possible without coding?
I doubt it is. I think you have to modify generated PoolCompartmentEditPart and modify compartment figure created there.

-----------------
Alex Shatalin