|
Re: Connection Label not appearing [message #135736 is a reply to message #91055] |
Wed, 13 June 2007 14:40 |
Eclipse User |
|
|
|
Originally posted by: r.c.ladan.tue.nl
This is a multi-part message in MIME format.
--------------060008010107040708030605
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sandip Sahoo wrote:
> Hi
>
> I m using the following ecore file. All the connection Label(Link1) not
> appearing after connecting between the elements. Only for one link I m
> getting the label not for the others.
>
I see the same problem with GMF 2.0rc3. Most connections are created,
displayed and stored in the .*_diagram file, except for (see the files):
- Dependency between Class/Class , Package/Package , or Class/Package
- Message
- Association
The strange thing is that Dependency connections between *Node/*Node,
Component/Component , and Component/*Node are drawn.
The .gmfgraph and .gmfmap files are attached (root element is "Meta").
All files and the generated Java code validate correctly.
Thanks,
Rene
--------------060008010107040708030605
Content-Type: text/xml;
name="meta.gmfgraph"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="meta.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="meta">
<figures
name="Default">
<figures
xsi:type="gmfgraph:PolylineDecoration"
name="SubDiagramInnerTargetDecoration"/>
<figures
xsi:type="gmfgraph:PolylineDecoration"
name="SubDiagramOuterTargetDecoration"/>
<figures
xsi:type="gmfgraph:PolylineDecoration"
name="DeviceNodeContainedNodesTargetDecoration"/>
<figures
xsi:type="gmfgraph:PolylineDecoration"
name="DeviceNodeParentNodeTargetDecoration"/>
<figures
xsi:type="gmfgraph:PolylineDecoration"
name="ProcessorNodeContainedNodesTargetDecoration"/>
<figures
xsi:type="gmfgraph:PolylineDecoration"
name="ProcessorNodeParentNodeTargetDecoration"/>
<figures
xsi:type="gmfgraph:PolylineDecoration"
name="MemoryNodeContainedNodesTargetDecoration"/>
<figures
xsi:type="gmfgraph:PolylineDecoration"
name="MemoryNodeParentNodeTargetDecoration"/>
<figures
xsi:type="gmfgraph:PolylineDecoration"
name="ProgramNodeContainedNodesTargetDecoration"/>
<figures
xsi:type="gmfgraph:PolylineDecoration"
name="ProgramNodeParentNodeTargetDecoration"/>
<descriptors
name="ClassInstanceFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="ClassInstanceFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="ClassInstanceNameFigure"
text="<...>"/>
<children
xsi:type="gmfgraph:Label"
name="ClassInstanceActorFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.0/@actualFigure/@children.0 "/>
<accessors
figure="//@figures.0/@descriptors.0/@actualFigure/@children.1 "/>
</descriptors>
<descriptors
name="SubDiagramFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="SubDiagramFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="SubDiagramNameFigure"
text="<...>"/>
<children
xsi:type="gmfgraph:Label"
name="SubDiagramKindFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.1/@actualFigure/@children.0 "/>
<accessors
figure="//@figures.0/@descriptors.1/@actualFigure/@children.1 "/>
</descriptors>
<descriptors
name="SubDiagramInnerFigure">
<actualFigure
xsi:type="gmfgraph:PolylineConnection"
name="SubDiagramInnerFigure"
targetDecoration="//@figures.0/@figures.0">
<layout
xsi:type="gmfgraph:FlowLayout"/>
</actualFigure>
</descriptors>
<descriptors
name="SubDiagramOuterFigure">
<actualFigure
xsi:type="gmfgraph:PolylineConnection"
name="SubDiagramOuterFigure"
targetDecoration="//@figures.0/@figures.1">
<layout
xsi:type="gmfgraph:FlowLayout"/>
</actualFigure>
</descriptors>
<descriptors
name="MessageFigure">
<actualFigure
xsi:type="gmfgraph:PolylineConnection"
name="MessageFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="MessageNameFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.4/@actualFigure/@children.0 "/>
</descriptors>
<descriptors
name="DependencyFigure">
<actualFigure
xsi:type="gmfgraph:PolylineConnection"
name="DependencyFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="DependencyLabelFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.5/@actualFigure/@children.0 "/>
</descriptors>
<descriptors
name="CommunicationLineFigure">
<actualFigure
xsi:type="gmfgraph:PolylineConnection"
name="CommunicationLineFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="CommunicationLineLabelFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.6/@actualFigure/@children.0 "/>
</descriptors>
<descriptors
name="DeviceNodeFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="DeviceNodeFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="DeviceNodeNameFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.7/@actualFigure/@children.0 "/>
</descriptors>
<descriptors
name="DeviceNodeContainedNodesFigure">
<actualFigure
xsi:type="gmfgraph:PolylineConnection"
name="DeviceNodeContainedNodesFigure"
targetDecoration="//@figures.0/@figures.2">
<layout
xsi:type="gmfgraph:FlowLayout"/>
</actualFigure>
</descriptors>
<descriptors
name="DeviceNodeParentNodeFigure">
<actualFigure
xsi:type="gmfgraph:PolylineConnection"
name="DeviceNodeParentNodeFigure"
targetDecoration="//@figures.0/@figures.3">
<layout
xsi:type="gmfgraph:FlowLayout"/>
</actualFigure>
</descriptors>
<descriptors
name="ProcessorNodeFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="ProcessorNodeFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="ProcessorNodeNameFigure"
text="<...>"/>
<children
xsi:type="gmfgraph:Label"
name="ProcessorNodeFrequencyFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.10/@actualFigure/@children.0 "/>
<accessors
figure="//@figures.0/@descriptors.10/@actualFigure/@children.1 "/>
</descriptors>
<descriptors
name="ProcessorNodeContainedNodesFigure">
<actualFigure
xsi:type="gmfgraph:PolylineConnection"
name="ProcessorNodeContainedNodesFigure"
targetDecoration="//@figures.0/@figures.4">
<layout
xsi:type="gmfgraph:FlowLayout"/>
</actualFigure>
</descriptors>
<descriptors
name="ProcessorNodeParentNodeFigure">
<actualFigure
xsi:type="gmfgraph:PolylineConnection"
name="ProcessorNodeParentNodeFigure"
targetDecoration="//@figures.0/@figures.5">
<layout
xsi:type="gmfgraph:FlowLayout"/>
</actualFigure>
</descriptors>
<descriptors
name="MemoryNodeFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="MemoryNodeFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="MemoryNodeNameFigure"
text="<...>"/>
<children
xsi:type="gmfgraph:Label"
name="MemoryNodeSizeFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.13/@actualFigure/@children.0 "/>
<accessors
figure="//@figures.0/@descriptors.13/@actualFigure/@children.1 "/>
</descriptors>
<descriptors
name="MemoryNodeContainedNodesFigure">
<actualFigure
xsi:type="gmfgraph:PolylineConnection"
name="MemoryNodeContainedNodesFigure"
targetDecoration="//@figures.0/@figures.6">
<layout
xsi:type="gmfgraph:FlowLayout"/>
</actualFigure>
</descriptors>
<descriptors
name="MemoryNodeParentNodeFigure">
<actualFigure
xsi:type="gmfgraph:PolylineConnection"
name="MemoryNodeParentNodeFigure"
targetDecoration="//@figures.0/@figures.7">
<layout
xsi:type="gmfgraph:FlowLayout"/>
</actualFigure>
</descriptors>
<descriptors
name="ProgramNodeFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="ProgramNodeFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="ProgramNodeNameFigure"
text="<...>"/>
<children
xsi:type="gmfgraph:Label"
name="ProgramNodeSampleRateFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.16/@actualFigure/@children.0 "/>
<accessors
figure="//@figures.0/@descriptors.16/@actualFigure/@children.1 "/>
</descriptors>
<descriptors
name="ProgramNodeContainedNodesFigure">
<actualFigure
xsi:type="gmfgraph:PolylineConnection"
name="ProgramNodeContainedNodesFigure"
targetDecoration="//@figures.0/@figures.8">
<layout
xsi:type="gmfgraph:FlowLayout"/>
</actualFigure>
</descriptors>
<descriptors
name="ProgramNodeParentNodeFigure">
<actualFigure
xsi:type="gmfgraph:PolylineConnection"
name="ProgramNodeParentNodeFigure"
targetDecoration="//@figures.0/@figures.9">
<layout
xsi:type="gmfgraph:FlowLayout"/>
</actualFigure>
</descriptors>
<descriptors
name="ComponentFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="ComponentFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="ComponentNameFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.19/@actualFigure/@children.0 "/>
</descriptors>
<descriptors
name="OperationFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="OperationFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="OperationNameFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.20/@actualFigure/@children.0 "/>
</descriptors>
<descriptors
name="EdgeFigure">
<actualFigure
xsi:type="gmfgraph:PolylineConnection"
name="EdgeFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="EdgeNameFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.21/@actualFigure/@children.0 "/>
</descriptors>
<descriptors
name="TriggerLinkFigure">
<actualFigure
xsi:type="gmfgraph:PolylineConnection"
name="TriggerLinkFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="TriggerLinkNameFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.22/@actualFigure/@children.0 "/>
</descriptors>
<descriptors
name="TriggerFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="TriggerFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="TriggerNameFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.23/@actualFigure/@children.0 "/>
</descriptors>
<descriptors
name="ProvidesPortFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="ProvidesPortFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="ProvidesPortNameFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.24/@actualFigure/@children.0 "/>
</descriptors>
<descriptors
name="RequiresPortFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="RequiresPortFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="RequiresPortNameFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.25/@actualFigure/@children.0 "/>
</descriptors>
<descriptors
name="ServiceInstanceFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="ServiceInstanceFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="ServiceInstanceNameFigure"
text="<...>"/>
<children
xsi:type="gmfgraph:Label"
name="ServiceInstanceIsStartFigure"
text="<...>"/>
<children
xsi:type="gmfgraph:Label"
name="ServiceInstanceIsFinishFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.26/@actualFigure/@children.0 "/>
<accessors
figure="//@figures.0/@descriptors.26/@actualFigure/@children.1 "/>
<accessors
figure="//@figures.0/@descriptors.26/@actualFigure/@children.2 "/>
</descriptors>
<descriptors
name="GeneralizationFigure">
<actualFigure
xsi:type="gmfgraph:PolylineConnection"
name="GeneralizationFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
</actualFigure>
</descriptors>
<descriptors
name="AssociationFigure">
<actualFigure
xsi:type="gmfgraph:PolylineConnection"
name="AssociationFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
</actualFigure>
</descriptors>
<descriptors
name="ClassFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="ClassFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="ClassNameFigure"
text="<...>"/>
<children
xsi:type="gmfgraph:Label"
name="ClassStereotypeFigure"
text="<...>"/>
<children
xsi:type="gmfgraph:Label"
name="ClassAbstractFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.29/@actualFigure/@children.0 "/>
<accessors
figure="//@figures.0/@descriptors.29/@actualFigure/@children.1 "/>
<accessors
figure="//@figures.0/@descriptors.29/@actualFigure/@children.2 "/>
</descriptors>
<descriptors
name="AttributeFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="AttributeFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="AttributeNameFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.30/@actualFigure/@children.0 "/>
</descriptors>
<descriptors
name="MethodFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="MethodFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="MethodNameFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.31/@actualFigure/@children.0 "/>
</descriptors>
<descriptors
name="PackageFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="PackageFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="PackageNameFigure"
text="<...>"/>
<children
xsi:type="gmfgraph:Label"
name="PackageStereotypeFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.32/@actualFigure/@children.0 "/>
<accessors
figure="//@figures.0/@descriptors.32/@actualFigure/@children.1 "/>
</descriptors>
<descriptors
name="AssociationEndFigure">
<actualFigure
xsi:type="gmfgraph:Rectangle"
name="AssociationEndFigure">
<layout
xsi:type="gmfgraph:FlowLayout"/>
<children
xsi:type="gmfgraph:Label"
name="AssociationEndLowerBoundFigure"
text="<...>"/>
<children
xsi:type="gmfgraph:Label"
name="AssociationEndNameFigure"
text="<...>"/>
<children
xsi:type="gmfgraph:Label"
name="AssociationEndNavigableFigure"
text="<...>"/>
<children
xsi:type="gmfgraph:Label"
name="AssociationEndTypeFigure"
text="<...>"/>
<children
xsi:type="gmfgraph:Label"
name="AssociationEndUpperBoundFigure"
text="<...>"/>
</actualFigure>
<accessors
figure="//@figures.0/@descriptors.33/@actualFigure/@children.0 "/>
<accessors
figure="//@figures.0/@descriptors.33/@actualFigure/@children.1 "/>
<accessors
figure="//@figures.0/@descriptors.33/@actualFigure/@children.2 "/>
<accessors
figure="//@figures.0/@descriptors.33/@actualFigure/@children.3 "/>
<accessors
figure="//@figures.0/@descriptors.33/@actualFigure/@children.4 "/>
</descriptors>
</figures>
<nodes
name="ClassInstance"
figure="ClassInstanceFigure"/>
<nodes
name="SubDiagram"
figure="SubDiagramFigure"/>
<nodes
name="DeviceNode"
figure="DeviceNodeFigure"/>
<nodes
name="ProcessorNode"
figure="ProcessorNodeFigure"/>
<nodes
name="MemoryNode"
figure="MemoryNodeFigure"/>
<nodes
name="ProgramNode"
figure="ProgramNodeFigure"/>
<nodes
name="Component"
figure="ComponentFigure"/>
<nodes
name="Operation"
figure="OperationFigure"/>
<nodes
name="Trigger"
figure="TriggerFigure"/>
<nodes
name="ProvidesPort"
figure="ProvidesPortFigure"/>
<nodes
name="RequiresPort"
figure="RequiresPortFigure"/>
<nodes
name="ServiceInstance"
figure="ServiceInstanceFigure"/>
<nodes
name="Class"
figure="ClassFigure"/>
<nodes
name="Attribute"
figure="AttributeFigure"/>
<nodes
name="Method"
figure="MethodFigure"/>
<nodes
name="Package"
figure="PackageFigure"/>
<nodes
name="AssociationEnd"
figure="AssociationEndFigure"/>
<connections
name="SubDiagramInner"
figure="SubDiagramInnerFigure"/>
<connections
name="SubDiagramOuter"
figure="SubDiagramOuterFigure"/>
<connections
name="Message"
figure="MessageFigure"/>
<connections
name="Dependency"
figure="DependencyFigure"/>
<connections
name="CommunicationLine"
figure="CommunicationLineFigure"/>
<connections
name="DeviceNodeContainedNodes"
figure="DeviceNodeContainedNodesFigure"/>
<connections
name="DeviceNodeParentNode"
figure="DeviceNodeParentNodeFigure"/>
<connections
name="ProcessorNodeContainedNodes"
figure="ProcessorNodeContainedNodesFigure"/>
<connections
name="ProcessorNodeParentNode"
figure="ProcessorNodeParentNodeFigure"/>
<connections
name="MemoryNodeContainedNodes"
figure="MemoryNodeContainedNodesFigure"/>
<connections
name="MemoryNodeParentNode"
figure="MemoryNodeParentNodeFigure"/>
<connections
name="ProgramNodeContainedNodes"
figure="ProgramNodeContainedNodesFigure"/>
<connections
name="ProgramNodeParentNode"
figure="ProgramNodeParentNodeFigure"/>
<connections
name="Edge"
figure="EdgeFigure"/>
<connections
name="TriggerLink"
figure="TriggerLinkFigure"/>
<connections
name="Generalization"
figure="GeneralizationFigure"/>
<connections
name="Association"
figure="AssociationFigure"/>
<labels
name="ClassInstanceName"
figure="ClassInstanceFigure"
accessor="//@figures.0/@descriptors.0/@accessors.0"/>
<labels
name="ClassInstanceActor"
figure="ClassInstanceFigure"
accessor="//@figures.0/@descriptors.0/@accessors.1"/>
<labels
name="SubDiagramName"
figure="SubDiagramFigure"
accessor="//@figures.0/@descriptors.1/@accessors.0"/>
<labels
name="SubDiagramKind"
figure="SubDiagramFigure"
accessor="//@figures.0/@descriptors.1/@accessors.1"/>
<labels
name="MessageName"
figure="MessageFigure"
accessor="//@figures.0/@descriptors.4/@accessors.0"/>
<labels
name="DependencyLabel"
figure="DependencyFigure"
accessor="//@figures.0/@descriptors.5/@accessors.0"/>
<labels
name="CommunicationLineLabel"
figure="CommunicationLineFigure"
accessor="//@figures.0/@descriptors.6/@accessors.0"/>
<labels
name="DeviceNodeName"
figure="DeviceNodeFigure"
accessor="//@figures.0/@descriptors.7/@accessors.0"/>
<labels
name="ProcessorNodeName"
figure="ProcessorNodeFigure"
accessor="//@figures.0/@descriptors.10/@accessors.0"/>
<labels
name="ProcessorNodeFrequency"
figure="ProcessorNodeFigure"
accessor="//@figures.0/@descriptors.10/@accessors.1"/>
<labels
name="MemoryNodeName"
figure="MemoryNodeFigure"
accessor="//@figures.0/@descriptors.13/@accessors.0"/>
<labels
name="MemoryNodeSize"
figure="MemoryNodeFigure"
accessor="//@figures.0/@descriptors.13/@accessors.1"/>
<labels
name="ProgramNodeName"
figure="ProgramNodeFigure"
accessor="//@figures.0/@descriptors.16/@accessors.0"/>
<labels
name="ProgramNodeSampleRate"
figure="ProgramNodeFigure"
accessor="//@figures.0/@descriptors.16/@accessors.1"/>
<labels
name="ComponentName"
figure="ComponentFigure"
accessor="//@figures.0/@descriptors.19/@accessors.0"/>
<labels
name="OperationName"
figure="OperationFigure"
accessor="//@figures.0/@descriptors.20/@accessors.0"/>
<labels
name="EdgeName"
figure="EdgeFigure"
accessor="//@figures.0/@descriptors.21/@accessors.0"/>
<labels
name="TriggerLinkName"
figure="TriggerLinkFigure"
accessor="//@figures.0/@descriptors.22/@accessors.0"/>
<labels
name="TriggerName"
figure="TriggerFigure"
accessor="//@figures.0/@descriptors.23/@accessors.0"/>
<labels
name="ProvidesPortName"
figure="ProvidesPortFigure"
accessor="//@figures.0/@descriptors.24/@accessors.0"/>
<labels
name="RequiresPortName"
figure="RequiresPortFigure"
accessor="//@figures.0/@descriptors.25/@accessors.0"/>
<labels
name="ServiceInstanceName"
figure="ServiceInstanceFigure"
accessor="//@figures.0/@descriptors.26/@accessors.0"/>
<labels
name="ServiceInstanceIsStart"
figure="ServiceInstanceFigure"
accessor="//@figures.0/@descriptors.26/@accessors.1"/>
<labels
name="ServiceInstanceIsFinish"
figure="ServiceInstanceFigure"
accessor="//@figures.0/@descriptors.26/@accessors.2"/>
<labels
name="ClassName"
figure="ClassFigure"
accessor="//@figures.0/@descriptors.29/@accessors.0"/>
<labels
name="ClassStereotype"
figure="ClassFigure"
accessor="//@figures.0/@descriptors.29/@accessors.1"/>
<labels
name="ClassAbstract"
figure="ClassFigure"
accessor="//@figures.0/@descriptors.29/@accessors.2"/>
<labels
name="AttributeName"
figure="AttributeFigure"
accessor="//@figures.0/@descriptors.30/@accessors.0"/>
<labels
name="MethodName"
figure="MethodFigure"
accessor="//@figures.0/@descriptors.31/@accessors.0"/>
<labels
name="PackageName"
figure="PackageFigure"
accessor="//@figures.0/@descriptors.32/@accessors.0"/>
<labels
name="PackageStereotype"
figure="PackageFigure"
accessor="//@figures.0/@descriptors.32/@accessors.1"/>
<labels
name="AssociationEndLowerBound"
figure="AssociationEndFigure"
accessor="//@figures.0/@descriptors.33/@accessors.0"/>
<labels
name="AssociationEndName"
figure="AssociationEndFigure"
accessor="//@figures.0/@descriptors.33/@accessors.1"/>
<labels
name="AssociationEndNavigable"
figure="AssociationEndFigure"
accessor="//@figures.0/@descriptors.33/@accessors.2"/>
<labels
name="AssociationEndType"
figure="AssociationEndFigure"
accessor="//@figures.0/@descriptors.33/@accessors.3"/>
<labels
name="AssociationEndUpperBound"
figure="AssociationEndFigure"
accessor="//@figures.0/@descriptors.33/@accessors.4"/>
</gmfgraph:Canvas>
--------------060008010107040708030605
Content-Type: text/xml;
name="meta.gmfmap"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="meta.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:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:gmfmap="http://www.eclipse.org/gmf/2006/mappings"
xmlns:gmftool="http://www.eclipse.org/gmf/2005/ToolDefinition">
<nodes>
<containmentFeature
href="meta.ecore#//MetaModel/structuralElements"/>
<ownedChild>
<domainMetaElement
href="meta.ecore#//Class"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping">
<diagramLabel
href="meta.gmfgraph#ClassName"/>
<features
href="meta.ecore#//StructuralNode/name"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.0"/>
<diagramNode
href="meta.gmfgraph#Class"/>
<children>
<containmentFeature
href="meta.ecore#//Class/attrib"/>
<ownedChild>
<domainMetaElement
href="meta.ecore#//Attribute"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping">
<diagramLabel
href="meta.gmfgraph#AttributeName"/>
<features
href="meta.ecore#//Attribute/name"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.4/@tools.1"/>
<diagramNode
href="meta.gmfgraph#Attribute"/>
</ownedChild>
</children>
<children>
<containmentFeature
href="meta.ecore#//Class/method"/>
<ownedChild>
<domainMetaElement
href="meta.ecore#//Method"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping">
<diagramLabel
href="meta.gmfgraph#MethodName"/>
<features
href="meta.ecore#//Method/name"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.4/@tools.2"/>
<diagramNode
href="meta.gmfgraph#Method"/>
</ownedChild>
</children>
<children>
<containmentFeature
href="meta.ecore#//Class/ae"/>
<ownedChild>
<domainMetaElement
href="meta.ecore#//AssociationEnd"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping">
<diagramLabel
href="meta.gmfgraph#AssociationEndName"/>
<features
href="meta.ecore#//StructuralNode/name"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.4/@tools.0"/>
<diagramNode
href="meta.gmfgraph#AssociationEnd"/>
</ownedChild>
</children>
</ownedChild>
</nodes>
<nodes>
<containmentFeature
href="meta.ecore#//MetaModel/deploymentElements"/>
<ownedChild>
<domainMetaElement
href="meta.ecore#//Component"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping">
<diagramLabel
href="meta.gmfgraph#ComponentName"/>
<features
href="meta.ecore#//DeploymentNode/name"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.2/@tools.0"/>
<diagramNode
href="meta.gmfgraph#Component"/>
</ownedChild>
</nodes>
<nodes>
<containmentFeature
href="meta.ecore#//MetaModel/scenarioElements"/>
<ownedChild>
<domainMetaElement
href="meta.ecore#//ServiceInstance"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping"
editorPattern="">
<diagramLabel
href="meta.gmfgraph#ServiceInstanceName"/>
<features
href="meta.ecore#//ScenarioElement/name"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.3/@tools.3"/>
<diagramNode
href="meta.gmfgraph#ServiceInstance"/>
<children>
<containmentFeature
href="meta.ecore#//ScenarioNode/outputs"/>
<ownedChild>
<domainMetaElement
href="meta.ecore#//RequiresPort"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping">
<diagramLabel
href="meta.gmfgraph#RequiresPortName"/>
<features
href="meta.ecore#//ScenarioElement/name"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.3/@tools.2"/>
<diagramNode
href="meta.gmfgraph#RequiresPort"/>
</ownedChild>
</children>
<children>
<containmentFeature
href="meta.ecore#//ScenarioNode/inputs"/>
<ownedChild>
<domainMetaElement
href="meta.ecore#//ProvidesPort"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping">
<diagramLabel
href="meta.gmfgraph#ProvidesPortName"/>
<features
href="meta.ecore#//ScenarioElement/name"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.3/@tools.1"/>
<diagramNode
href="meta.gmfgraph#ProvidesPort"/>
<children>
<containmentFeature
href="meta.ecore#//ProvidesPort/operations"/>
<ownedChild>
<domainMetaElement
href="meta.ecore#//Operation"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping">
<diagramLabel
href="meta.gmfgraph#OperationName"/>
<features
href="meta.ecore#//ScenarioElement/name"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.3/@tools.0"/>
<diagramNode
href="meta.gmfgraph#Operation"/>
</ownedChild>
</children>
</ownedChild>
</children>
</ownedChild>
</nodes>
<nodes>
<containmentFeature
href="meta.ecore#//MetaModel/structuralElements"/>
<ownedChild>
<domainMetaElement
href="meta.ecore#//Package"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping"
editPattern="">
<diagramLabel
href="meta.gmfgraph#PackageName"/>
<features
href="meta.ecore#//StructuralNode/name"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.4/@tools.3"/>
<diagramNode
href="meta.gmfgraph#Package"/>
<children>
<containmentFeature
href="meta.ecore#//Package/inner"/>
<ownedChild>
<domainMetaElement
href="meta.ecore#//Package"/>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.4/@tools.3"/>
<diagramNode
href="meta.gmfgraph#Package"/>
</ownedChild>
</children>
</ownedChild>
</nodes>
<nodes>
<containmentFeature
href="meta.ecore#//MetaModel/deploymentElements"/>
<ownedChild>
<domainMetaElement
href="meta.ecore#//MemoryNode"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping">
<diagramLabel
href="meta.gmfgraph#MemoryNodeName"/>
<features
href="meta.ecore#//DeploymentNode/name"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.2/@tools.2"/>
<diagramNode
href="meta.gmfgraph#MemoryNode"/>
</ownedChild>
</nodes>
<nodes>
<containmentFeature
href="meta.ecore#//MetaModel/behaviourElements"/>
<ownedChild>
<domainMetaElement
href="meta.ecore#//ClassInstance"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping">
<diagramLabel
href="meta.gmfgraph#ClassInstanceName"/>
<features
href="meta.ecore#//BehaviourElement/name"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.5/@tools.0"/>
<diagramNode
href="meta.gmfgraph#ClassInstance"/>
</ownedChild>
</nodes>
<nodes>
<containmentFeature
href="meta.ecore#//MetaModel/deploymentElements"/>
<ownedChild>
<domainMetaElement
href="meta.ecore#//ProgramNode"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping"
viewPattern="">
<diagramLabel
href="meta.gmfgraph#ProgramNodeName"/>
<features
href="meta.ecore#//DeploymentNode/name"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.2/@tools.4"/>
<diagramNode
href="meta.gmfgraph#ProgramNode"/>
</ownedChild>
</nodes>
<nodes>
<containmentFeature
href="meta.ecore#//MetaModel/scenarioElements"/>
<ownedChild>
<domainMetaElement
href="meta.ecore#//Trigger"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping">
<diagramLabel
href="meta.gmfgraph#TriggerName"/>
<features
href="meta.ecore#//ScenarioElement/name"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.3/@tools.4"/>
<diagramNode
href="meta.gmfgraph#Trigger"/>
</ownedChild>
</nodes>
<nodes>
<containmentFeature
href="meta.ecore#//MetaModel/behaviourElements"/>
<ownedChild>
<domainMetaElement
href="meta.ecore#//SubDiagram"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping">
<diagramLabel
href="meta.gmfgraph#SubDiagramName"/>
<features
href="meta.ecore#//BehaviourElement/name"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.5/@tools.1"/>
<diagramNode
href="meta.gmfgraph#SubDiagram"/>
</ownedChild>
</nodes>
<nodes>
<containmentFeature
href="meta.ecore#//MetaModel/deploymentElements"/>
<ownedChild>
<domainMetaElement
href="meta.ecore#//DeviceNode"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping">
<diagramLabel
href="meta.gmfgraph#DeviceNodeName"/>
<features
href="meta.ecore#//DeploymentNode/name"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.2/@tools.1"/>
<diagramNode
href="meta.gmfgraph#DeviceNode"/>
</ownedChild>
</nodes>
<nodes>
<containmentFeature
href="meta.ecore#//MetaModel/deploymentElements"/>
<ownedChild>
<domainMetaElement
href="meta.ecore#//ProcessorNode"/>
<labelMappings
xsi:type="gmfmap:FeatureLabelMapping">
<diagramLabel
href="meta.gmfgraph#ProcessorNodeName"/>
<features
href="meta.ecore#//DeploymentNode/name"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.2/@tools.3"/>
<diagramNode
href="meta.gmfgraph#ProcessorNode"/>
</ownedChild>
</nodes>
<links>
<domainMetaElement
href="meta.ecore#//Edge"/>
<containmentFeature
href="meta.ecore#//MetaModel/scenarioElements"/>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.3/@tools.5"/>
<diagramLink
href="meta.gmfgraph#Edge"/>
<sourceMetaFeature
xsi:type="ecore:EReference"
href="meta.ecore#//Edge/source"/>
<linkMetaFeature
xsi:type="ecore:EReference"
href="meta.ecore#//Edge/target"/>
<creationConstraints>
<sourceEnd
body="self.node <> oppositeEnd.node"/>
</creationConstraints>
</links>
<links>
<domainMetaElement
href="meta.ecore#//Message"/>
<containmentFeature
href="meta.ecore#//MetaModel/behaviourElements"/>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.5/@tools.2"/>
<diagramLink
href="meta.gmfgraph#Message"/>
<sourceMetaFeature
xsi:type="ecore:EReference"
href="meta.ecore#//Message/ci"/>
<linkMetaFeature
xsi:type="ecore:EReference"
href="meta.ecore#//Message/ci"/>
<creationConstraints>
<sourceEnd
body="self <> oppositeEnd"/>
</creationConstraints>
</links>
<links>
<domainMetaElement
href="meta.ecore#//TriggerLink"/>
<containmentFeature
href="meta.ecore#//MetaModel/scenarioElements"/>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.3/@tools.6"/>
<diagramLink
href="meta.gmfgraph#TriggerLink"/>
<sourceMetaFeature
xsi:type="ecore:EReference"
href="meta.ecore#//TriggerLink/triggerSource"/>
<linkMetaFeature
xsi:type="ecore:EReference"
href="meta.ecore#//TriggerLink/triggerTarget"/>
<creationConstraints>
<sourceEnd
body="self <> oppositeEnd"/>
</creationConstraints>
</links>
<links>
<domainMetaElement
href="meta.ecore#//Dependency"/>
<containmentFeature
href="meta.ecore#//MetaModel/deploymentElements"/>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.1"/>
<diagramLink
href="meta.gmfgraph#Dependency"/>
<sourceMetaFeature
xsi:type="ecore:EReference"
href="meta.ecore#//DeploymentConnection/dsrc"/>
<linkMetaFeature
xsi:type="ecore:EReference"
href="meta.ecore#//DeploymentConnection/ddst"/>
<creationConstraints>
<sourceEnd
body="self <> oppositeEnd"/>
</creationConstraints>
</links>
<links>
<domainMetaElement
href="meta.ecore#//CommunicationLine"/>
<containmentFeature
href="meta.ecore#//MetaModel/deploymentElements"/>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.2/@tools.5"/>
<diagramLink
href="meta.gmfgraph#CommunicationLine"/>
<sourceMetaFeature
xsi:type="ecore:EReference"
href="meta.ecore#//DeploymentConnection/dsrc"/>
<linkMetaFeature
xsi:type="ecore:EReference"
href="meta.ecore#//DeploymentConnection/ddst"/>
<creationConstraints>
<sourceEnd
body="self <> oppositeEnd"/>
</creationConstraints>
</links>
<links>
<domainMetaElement
href="meta.ecore#//Association"/>
<containmentFeature
href="meta.ecore#//MetaModel/structuralElements"/>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.4/@tools.4"/>
<diagramLink
href="meta.gmfgraph#Association"/>
<sourceMetaFeature
xsi:type="ecore:EReference"
href="meta.ecore#//Association/associationEnd"/>
<linkMetaFeature
xsi:type="ecore:EReference"
href="meta.ecore#//Association/associationEnd"/>
<creationConstraints>
<sourceEnd
body="self <> oppositeEnd"/>
</creationConstraints>
</links>
<links>
<domainMetaElement
href="meta.ecore#//Generalization"/>
<containmentFeature
href="meta.ecore#//MetaModel/structuralElements"/>
<tool
xsi:type="gmftool:CreationTool"
href="meta.gmftool#//@palette/@tools.4/@tools.5"/>
<diagramLink
href="meta.gmfgraph#Generalization"/>
<sourceMetaFeature
xsi:type="ecore:EReference"
href="meta.ecore#//StructuralConnection/ssrc"/>
<linkMetaFeature
xsi:type="ecore:EReference"
href="meta.ecore#//StructuralConnection/sdst"/>
<creationConstraints>
<sourceEnd
body="self <> oppositeEnd"/>
</creationConstraints>
</links>
<links>
<domai
|
|
|
Re: Connection Label not appearing [message #135898 is a reply to message #135736] |
Wed, 13 June 2007 17:23 |
Jens Bachmann Messages: 52 Registered: July 2009 |
Member |
|
|
Hi,
do you mean GMF2.0 RC2 or RC3? Because I cannot find RC3 in GMF downloads.
You can try to use the last nightly build from download page and regenerate
your code. This works nice for me with labels of connections.
Regards,
Jens
Rene Ladan wrote:
> Sandip Sahoo wrote:
>> Hi
>>
>> I m using the following ecore file. All the connection Label(Link1) not
>> appearing after connecting between the elements. Only for one link I m
>> getting the label not for the others.
>>
> I see the same problem with GMF 2.0rc3. Most connections are created,
> displayed and stored in the .*_diagram file, except for (see the files):
> - Dependency between Class/Class , Package/Package , or Class/Package
> - Message
> - Association
>
> The strange thing is that Dependency connections between *Node/*Node,
> Component/Component , and Component/*Node are drawn.
>
> The .gmfgraph and .gmfmap files are attached (root element is "Meta").
> All files and the generated Java code validate correctly.
>
> Thanks,
> Rene
|
|
|
Powered by
FUDForum. Page generated in 0.03130 seconds