Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 344104

Summary: DefaultSizeAttribute via gmfgraph
Product: [Modeling] GMF-Tooling Reporter: Ralph Gerbig <ralphgerbig>
Component: CoreAssignee: Project Inbox <gmp.gmf-tooling-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 2.3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Ralph Gerbig CLA 2011-04-28 06:32:57 EDT
I need to add the DefaultSizeAttribute to the inner class of an edipart. Currently I am doing this with a QVTo transformation as this is not supported by the gmfgraph model. Please add support to gmfgraph. To get a DefaultSizeAttribute generated via gmfgraph one needs to do the following:

1) Add prefered size to figure
2) Generate generator model
3) Remove prefered size from figure
4) Generate generator model

I need this attribute to set the size and use the automatic resizing of nodes containing compartments.

The transformation code I use is:

var defaultSize := new DefaultSizeAttributes();
defaultSize.height := 22;
defaultSize.width := 0;
node.viewmap.attributes := Sequence{defaultSize};