Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344104 - DefaultSizeAttribute via gmfgraph
Summary: DefaultSizeAttribute via gmfgraph
Status: NEW
Alias: None
Product: GMF-Tooling
Classification: Modeling
Component: Core (show other bugs)
Version: 2.3.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-28 06:32 EDT by Ralph Gerbig CLA
Modified: 2011-04-28 06:33 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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};