Skip to main content



      Home
Home » Modeling » Epsilon » Link Annotation style doesnt work(There are 3 styles for a link, solid, dot or dash, but all my links look like solid)
Link Annotation style doesnt work [message #1755494] Fri, 03 March 2017 14:32 Go to next message
Eclipse UserFriend
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 #1755495 is a reply to message #1755494] Fri, 03 March 2017 14:41 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Could you please provide a minimal example [1] we can use to reproduce this?

Cheers,
Dimitris

[1] https://www.eclipse.org/epsilon/doc/articles/minimal-examples/
Re: Link Annotation style doesnt work [message #1755500 is a reply to message #1755495] Fri, 03 March 2017 15:32 Go to previous messageGo to next message
Eclipse UserFriend
Hi Dimitris,

I attach my ecore metamodel that generates the editor.
The link Flow has dash style and realization has dot style, but all of them looks like solid in the editor. The other annotations like source.decoration and target.decoration works perfectly.


I'm using Eclipse Version: Luna SR2 (4.4.2)
and GMF 3.2.1.201409171321
Epsilon .3.0.201602270002

Thank you so much for your help.

Lina
Re: Link Annotation style doesnt work [message #1755512 is a reply to message #1755500] Sat, 04 March 2017 04:02 Go to previous message
Eclipse UserFriend
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

Previous Topic:Getting ConcurrentModificationException in ETL
Next Topic:EVL Sirius integration
Goto Forum:
  


Current Time: Wed Jul 16 22:26:22 EDT 2025

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

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

Back to the top