Link Annotation style doesnt work [message #1755494] |
Fri, 03 March 2017 14:32  |
Eclipse User |
|
|
|
Hi,
I have a metamodel with different connectors, some of them should be acording to style annotation dot and dash, but all of them looks like they have solid style. (the other properties do work)
Here is an example of a dot link on my ecore
<eClassifiers xsi:type="ecore:EClass" name="Realization" eSuperTypes="#//Relation">
<eAnnotations source="gmf.link">
<details key="label" value="connectorName"/>
<details key="source" value="sourceC"/>
<details key="target" value="targetC"/>
<details key="style " value="dot"/>
<details key="width" value="1"/>
<details key="color" value="0,0,0"/>
<details key="source.decoration" value="none"/>
<details key="target.decoration" value="closedarrow"/>
<details key="tool.small.path" value="file:/C:/Users/project/images/icons/RealizationIcon.gif"/>
</eAnnotations>
</eClassifiers>
and the cinterface of my class do have the style too:
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Realization</b></em>'.
* <!-- end-user-doc -->
*
*
* @see archimateC3.ArchimateC3Package#getRealization()
* @model annotation="gmf.link label='connectorName' source='sourceC' target='targetC' style\040='dot' width='1' color='0,0,0' source.decoration='none' target.decoration='closedarrow' tool.small.path='file:/C:/project/images/icons/RealizationIcon.gif'"
* @generated
*/
public interface Realization extends ArchimateRelation {
} // Realization
I'm using Eclipse Version: Luna SR2 (4.4.2)
and GMF 3.2.1.201409171321
Thank you so much for your help!!
|
|
|
|
|
Re: Link Annotation style doesnt work [message #1755512 is a reply to message #1755500] |
Sat, 04 March 2017 04:02  |
Eclipse User |
|
|
|
Hi Lina,
Extra whitespace appears to have crept into a few of your style annotations:
<details key="style " value="dash"/>
Removing the extra space after style and regenerating should fix your editor.
Cheers,
Dimitris
[Updated on: Sun, 05 March 2017 17:16] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.28075 seconds