[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
|
Alex Shatalin wrote:
> Hello Pierre,
>
> You have to modify .gmfgen model in this case. Try openning this file,
> locating GenCompartment instance representing compartment inside a pool
> and setting "isListLayout" property to true for this compartment. Note:
> due to the current GMF limitation this property will always be re-set to
> "false" on upcomming .gmfmap->.gmfgen model transformations, so you should
> take care on setting this property to true in the end of each
> transformation.
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).
By the way, using a ListLayout make my process to be of half the heigth of
its compartment making Task additions rather strange.
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?
1. Is this possible without coding?
2. If code is required, which class should be changed? I looked into
PoolCompartmentFD, and ProcessFD (to find its parent size and to make it of
the same size but without success).
Thanks & Regards.