Expression Label Mapping [message #647128] |
Tue, 04 January 2011 16:46 |
Ralph Gerbig Messages: 702 Registered: November 2009 |
Senior Member |
|
|
Hi,
I have a node with two labels. To both labels a OCL Expression is mapped. But instead of exectuing one expression per label, the second expression is always executed for both labels. Here is an example:
gmfmap
<nodes>
<containmentFeature
href=".."/>
<ownedChild>
<domainMetaElement
.."/>
<labelMappings
xsi:type="gmfmap:ExpressionLabelMapping"
readOnly="true">
<diagramLabel
href="graph.gmfgraph#LabelA"/>
<viewExpression
body="expressionA"/>
</labelMappings>
<labelMappings
xsi:type="gmfmap:ExpressionLabelMapping"
readOnly="true">
<diagramLabel
href="graph.gmfgraph#LabelB"/>
<viewExpression
body="expressionB"/>
</labelMappings>
<tool
xsi:type="gmftool:CreationTool"
href="plm.gmftool#//@palette/@tools.1/@tools.0"/>
<diagramNode
href="graph.gmfgraph#Node"/>
</nodes>
The example defines expressionA mapped to LabelA and expressionB mapped to LabelB. But the generated code maps expressionB to LabelA and LabelB.
I opened Bug 331875.
Is there a way to overwrite a template to fix this?
Thanks,
Ralph
|
|
|
Powered by
FUDForum. Page generated in 0.02934 seconds