|Re: Issue with cross-referencing elements of other EMF model [message #1151468 is a reply to message #1117317]
||Wed, 23 October 2013 11:18
| Nieves Salor
Registered: September 2013
Sorry for my late reply but I was trying to implement and play a little before making more questions and I finally solved the issues of the outline view, the formatting, templates, internal cross-references and semantic checks.
However now I want to integrate my dsl project with an external EMF project(not XTEXT) which has elements which can be referenced within the grammar (i.e. activity ids, function names, variables...).
In the grammar I use the import of the ecore file of the EMF project and I have added de dependency in the plugin, so compiling speaking everything works. However at runtime the references are not found.
My deployment is: I run the editor plugin generated by the EMF project (adding the dependencies to the Xtext Project) and after I have openned the ssm file (xmi resource) correctly, I open a pluto file (xtext resource) also correctly with all features working (i.e. content-assist, formatting, syntax highlinghting, even validation after a customisation). However, the references are not found..
Can you tell me if I need to do some extra binding between the projects??
|Re: Issue with cross-referencing elements of other EMF model [message #1170655 is a reply to message #1170088]
||Mon, 04 November 2013 20:02
|| Christian Dietrich
Registered: July 2009
there are multiple warnings on your resourceserviceprovider projects. there are there for a reason.
<?xml version="1.0" encoding="UTF-8"?>
then you should adapt the grammar to be able to handle qualified names
act=[crossing::activity|FQN] 'during' duration=INT 'minutes';
FQN: ID ("." ID)*;
Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @chrdietrich
Blog : christiandietrich.wordpress.com
Powered by FUDForum
. Page generated in 0.02005 seconds