Custom Figure not showing in generated editor [message #1270128] |
Wed, 12 March 2014 10:23  |
Eclipse User |
|
|
|
Hello
My first GMF project and I have the default editor working OK for a simple domain model. Then started on customising the Figures by changing the shape in a Figure Descriptor to an Ellipse instead of Rectangle (i.e. deleted Rectangle & added Ellipse). Re-generated the .gmfgen & launched the .diagram project as an eclipse app; however it's still using the rectangle figure - not the ellipse. Tried cleaning projects & re-generating; no difference.
Any pointers appreciated; gmfgraph below for reference. Platform is Kepler SR1 on OSX 10.7.5, GMF SDK 3.1.0.201306121424.
Thanks.
<?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="subtypes">
<figures
name="Default">
<figures
xsi:type="gmfgraph:PolylineDecoration"
name="GenSpecSupertypeTargetDecoration"/>
<figures
xsi:type="gmfgraph:PolylineDecoration"
name="GenSpecSubtypesTargetDecoration"
lineKind="LINE_DASH"/>
<descriptors
name="ClassFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="ClassFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="ClassNameFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.0/@actualFigure/@children.0"/>
</descriptors>
<descriptors
name="GenSpecFigure">
<actualFigure
xsi:type="gmfgraph:Ellipse"
name="GenSpecFigure">
<children
xsi:type="gmfgraph:Label"
name="GenSpecRelnameLabel"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.1/@actualFigure/@children.0"/>
</descriptors>
<descriptors
name="GenSpecSupertypeFigure">
<actualFigure
xsi:type="gmfgraph:PolylineConnection"
name="GenSpecSupertypeFigure"
targetDecoration="//@figures.0/@figures.0"/>
</descriptors>
<descriptors
name="GenSpecSubtypesFigure">
<actualFigure
xsi:type="gmfgraph:PolylineConnection"
name="GenSpecSubtypesFigure"
targetDecoration="//@figures.0/@figures.1"/>
</descriptors>
</figures>
<nodes
name="Class"
figure="ClassFigure"/>
<nodes
name="GenSpec"
figure="GenSpecFigure"/>
<connections
name="GenSpecSupertype"
figure="GenSpecSupertypeFigure"/>
<connections
name="GenSpecSubtypes"
figure="GenSpecSubtypesFigure"/>
<labels
name="ClassName"
figure="ClassFigure"
accessor="//@figures.0/@descriptors.0/@accessors.0"/>
<labels
name="GenSpecName"
figure="GenSpecFigure"
accessor="//@figures.0/@descriptors.1/@accessors.0"/>
</gmfgraph:Canvas>
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04575 seconds