Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 19:32 Go to next message
Lainis 20 is currently offline Lainis 20Friend
Messages: 26
Registered: November 2016
Junior Member
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 19:41 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1589
Registered: July 2009
Location: York, UK
Senior Member

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 20:32 Go to previous messageGo to next message
Lainis 20 is currently offline Lainis 20Friend
Messages: 26
Registered: November 2016
Junior Member
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 09:02 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1589
Registered: July 2009
Location: York, UK
Senior Member

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 22:16]

Report message to a moderator

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


Current Time: Sun Sep 23 19:35:37 GMT 2018

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

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

Back to the top