|
Re: GMF Ecore Model Problem [message #507661 is a reply to message #507401] |
Thu, 14 January 2010 09:55 |
Thomas Messages: 79 Registered: October 2009 |
Member |
|
|
ok, i am able to add LineHandles to my RootDiagram but i cannot add it to my Line figure.
Are there some Sites, which explain Compartments?
Maybe there is a hint creating 2 diffenent Elements with 1 paletteCreationTool? or somehow?
my gmfgraph:
<descriptors
name="LineShapeFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="LineShapeFigure">
<layout
xsi:type="gmfgraph:BorderLayout"/>
<children
xsi:type="gmfgraph:Rectangle"
name="LineHandleCompartmentFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
</children>
</actualFigure>
<accessors
accessor="getFigureLineHandleCompartment"
figure="//@figures.0/@descriptors.0/@actualFigure/@children.0 "/>
</descriptors>
<descriptors
name="RectangleFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="RectangleFigure"/>
</descriptors>
</figures>
<nodes
name="LineShape"
figure="LineShapeFigure"/>
<compartments
name="LineLineHandleCompartment"
figure="LineShapeFigure"
accessor="//@figures.0/@descriptors.0/@accessors.0"/>
gmfmap:
<?xml version="1.0" encoding="UTF-8"?>
<gmfmap:Mapping xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:gmfmap="http://www.eclipse.org/gmf/2008/mappings"
xmlns:gmftool="http://www.eclipse.org/gmf/2005/ToolDefinition">
<nodes>
<containmentFeature
href="lineModel.ecore#//Diagram/shapes"/>
<ownedChild>
<domainMetaElement
href="lineModel.ecore#//LineShape"/>
<tool
xsi:type="gmftool:CreationTool"
href="lineModel.gmftool#//@palette/@tools.0/@tools.0"/>
<diagramNode
href="lineModel.gmfgraph#LineShape"/>
<children
compartment="//@nodes.0/@ownedChild/@compartments.0">
<containmentFeature
href="lineModel.ecore#//LineShape/linehandles"/>
<ownedChild>
<domainMetaElement
href="lineModel.ecore#//LineShape"/>
<tool
xsi:type="gmftool:CreationTool"
href="lineModel.gmftool#//@palette/@tools.0/@tools.1"/>
<diagramNode
href="lineModel.gmfgraph#LineShape"/>
</ownedChild>
</children>
<compartments
children="//@nodes.0/@ownedChild/@children.0">
<compartment
href="lineModel.gmfgraph#LineLineHandleCompartment"/>
</compartments>
</ownedChild>
</nodes>
Maybe this helps
Thanks
[Updated on: Thu, 14 January 2010 12:13] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03583 seconds