Adding a compartment to my node [message #671213] |
Tue, 17 May 2011 07:11 |
nicolas h Messages: 60 Registered: February 2011 Location: Grenoble, France |
Member |
|
|
Hi all,
I'm following this tutorial in order to add SubSystems into my node System.
My ecore model is actually :
RootElement <>---->[1] System <>---->[*] SubSystem
I managed to add a compartment to my System and add SubSystems into, but I can't drag and drop my new SubSystem into. I can't resize it either. If I add a second SubSystem, it will be placed below the first one. Can't move neither.
How can I modify this behaviour please ?
My GMFgraph :
<?xml version="1.0" encoding="UTF-8"?>
<gmfgraph:Canvas xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:gmfgraph="http://www.eclipse.org/gmf/2006/GraphicalDefinition" name="systemModel">
<figures
name="Default">
<descriptors
name="SystemFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="SystemFigure">
<foregroundColor
xsi:type="gmfgraph:RGBColor"
red="220"
green="220"
blue="250"/>
<children
xsi:type="gmfgraph:Label"
name="SystemNameFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.0/@actualFigure/@children.0"/>
</descriptors>
<descriptors
name="SubSystemFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="SubSystemFigure"
outline="false">
<layout
xsi:type="gmfgraph:FlowLayout"
vertical="true"
matchMinorSize="true"
forceSingleLine="true"
minorAlignment="CENTER"
majorSpacing="0"
minorSpacing="0"/>
<backgroundColor
xsi:type="gmfgraph:RGBColor"
red="250"
green="250"
blue="190"/>
</actualFigure>
</descriptors>
</figures>
<nodes
name="System"
figure="SystemFigure"/>
<nodes
name="SubSystem (SubSystemFigure)"
figure="SubSystemFigure"/>
<compartments
name="SubSystemCompartment"
figure="SystemFigure"
collapsible="true"/>
<labels
name="SystemName"
figure="SystemFigure"
accessor="//@figures.0/@descriptors.0/@accessors.0"/>
</gmfgraph:Canvas>
Best regards,
--
Nicolas
[Updated on: Tue, 17 May 2011 07:12] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03812 seconds