Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Connections and Expression Labels
Connections and Expression Labels [message #664519] Sun, 10 April 2011 13:55
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hello all,

i have labels at connections. If I define a string in the gmfgraph file this text gets shown in the model editor. Unfortunatly this does not fit my needs so I decided to use expression labels in the gmfmap. However the text specified in these mappings does not show up. Is this a bug? Here is some example XMI:

<links>
    <labelMappings
        xsi:type="gmfmap:ExpressionLabelMapping"
        readOnly="true">
      <diagramLabel
          href="xxx.gmfgraph#xxxLabel"/>
      <viewExpression
          body="'String that shall be displayed'"/>
    </labelMappings>
    <tool
        xsi:type="gmftool:CreationTool"
        href="xxx.gmftool#//@palette/@tools.3/@tools.3"/>
    <diagramLink
        href="plm.gmfgraph#xxxLink"/>
    <linkMetaFeature
        xsi:type="ecore:EReference"
        href="xxx.ecore#//MetaClass/feature"/>
  </links>


Thank you all!

Ralph
Previous Topic:How to know the position of an element which placed on the edge of a parent element?
Next Topic:How to Add a Shortcut to the Domain Model
Goto Forum:
  


Current Time: Wed Jul 23 12:20:01 EDT 2014

Powered by FUDForum. Page generated in 0.02035 seconds