Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Expression Label Mapping
Expression Label Mapping [message #647128] Tue, 04 January 2011 16:46
Ralph Gerbig is currently offline Ralph GerbigFriend
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
Previous Topic: Feature Seq Initializers in .gmfmap
Next Topic:How to run expression of expression label mapping by code
Goto Forum:
  


Current Time: Thu Apr 25 12:33:58 GMT 2024

Powered by FUDForum. Page generated in 0.02934 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top