EVL [message #1023868] |
Mon, 25 March 2013 10:36 |
Joshua Nwokeji Messages: 94 Registered: January 2013 |
Member |
|
|
Dear All,
I am having some problem with validating graphical editor I created with EuGeNia. I repeated the tutorial in [1], and it worked except that it didnt give me the option for a quick fix.
I tried same with a usecase_diagram graphical editor I created with EuGeNia, but it didnt work. The validation for the usecase_diagram is similar to the EVL in [1] and [2], i.e. check that each Actor has a name, each Usecase starts with a capital letter, and the Link must link the same e.g. Usecase to Usecase or Actor to Actor. I simply coppied the code in [1] and pasted into my usecase.evl, but changed the e-classs to suit my .emf file, e.g. instead of Folder I put Actor, in adding the extensions I made sure that I replaced filesystem with usecase. However this did not work.
Please I need some help, may be I am not getting it right. I have also seen the Screencast in [2].
[1] http://www.eclipse.org/epsilon/doc/articles/evl-gmf-integration/
[2] http://www.eclipse.org/epsilon/cinema/
Regards
Joshua
|
|
|
Re: EVL [message #1023880 is a reply to message #1023868] |
Mon, 25 March 2013 11:17 |
|
Dear Joshua,
From your message, I understand that invalid model elements are properly detected, but that their quick fixes are unavailable. Is that right?
Can you post your .evl file over here, so we may have a look?
Regards,
Antonio
|
|
|
Re: EVL [message #1023910 is a reply to message #1023880] |
Mon, 25 March 2013 12:51 |
|
Hi Joshua,
Based on past experience, if constraints work but fixes don't it's almost certainly a case of a bad markerType (org.eclipse.epsilon.eugenia.examples.filesystem.diagram.diagnostic in the article, need to replace it with the markerType of your editor). Could you please double-check that the markerType you're using exists/is the correct one?
Cheers,
Dimitris
|
|
|
|
Re: EVL [message #1023927 is a reply to message #1023924] |
Mon, 25 March 2013 13:28 |
|
Hi Joshua,
Usecase doesn't seem to be a sub-class of Actor in your metamodel so the following line should be commented out (see the EVL chapter of the Epsilon book for the semantics of satisfies(...))
guard : self.satisfies('HasName')
If this doesn't work, could you please zip and post the relevant Eclipse projects here so that I can have a look?
Cheers,
Dimitris
|
|
|
|
Re: EVL [message #1023960 is a reply to message #1023947] |
Mon, 25 March 2013 14:46 |
|
Hi Joshua,
The namespaceURI in your constraintBinding does not match the namespaceURI of your metamodel (should be http://UsedCase/1.0 instead). Also, the markerType should be usecase.example.diagram.diagnostic instead of its current value.
Cheers,
Dimitris
|
|
|
|
Re: EVL [message #1027914 is a reply to message #1024057] |
Wed, 27 March 2013 15:37 |
|
Hi Joshua,
The error message is saying that you're referring to the "source" feature in Link, which does not exist according to your metamodel. Links seem to have the "from" and "to" features, not the "source" and "target" features you're using in the EVL file.
Regards,
Antonio
|
|
|
|
Re: EVL [message #1036666 is a reply to message #1036344] |
Mon, 08 April 2013 17:13 |
|
According to Dimitris, it may be due to setting up the markerType extension incorrectly. Did you check his instructions?
If you have, and it still doesn't work for you, please send us a project that we can try out to see if it's a bug in Epsilon or some other issue in your code or plugin.xml.
|
|
|
Powered by
FUDForum. Page generated in 0.07754 seconds