[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Issue with Layouts before in gmfgraph diagrams

This is a multi-part message in MIME format.
Hello Maxence,

> I had a look at an ecore_diagram model, and when I create a new
> EClass, the container (compartment) at the bottom is shrunk (same size
> as the other compartments in fact), instead of filling the whole
See attached image - as you can see last compartment in EClass figure is extended to fill whole space in the figure. If you have only one compartment - this is AFAIU what you are trying to achieve.

> rectangle (bottom of last compartment stuck to rectangle's bottom). Is
> this the normal behaviour ? Does this mean I have to specify the
Unless you have different implementation of Ecore diagram then I. ;-)

> layout in the generated code ?
You can specify any layouts in .gmfgraph model. Just in a same way as in generated code..

> to the rectangle stuck to the left (as in a ecore_diagram model). Is
> there a way to easily center the label ?
I've used grid layout for it - see second attached image.

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

Attachment: classCompartment.PNG
Description: PNG image

Attachment: CenteredLabel.PNG
Description: PNG image