|
|
|
|
|
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 Messages: 19 Registered: September 2013 |
Junior Member |
|
|
Hi Christian,
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 |
|
Hi,
there are multiple warnings on your resourceserviceprovider projects. there are there for a reason.
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Cr
Bundle-SymbolicName: crossReferences.xtext.cr
Bundle-Version: 1.0.0.qualifier
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
crossReferencesTest;bundle-version="0.1.0",
org.eclipse.xtext;bundle-version="2.4.3"
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Import-Package: com.google.inject;version="1.3.0",
org.eclipse.xtext.naming,
org.eclipse.xtext.resource,
org.eclipse.xtext.resource.generic,
org.eclipse.xtext.resource.impl
Export-Package: crossreferences.xtext.cr
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.xtext.extension_resourceServiceProvider">
<resourceServiceProvider
class="crossreferences.xtext.ui.cr.ExecutableExtensionFactory:org.eclipse.xtext.ui.resource.generic.EmfResourceUIServiceProvider"
uriExtension="crossreferences">
</resourceServiceProvider>
</extension>
</plugin>
then you should adapt the grammar to be able to handle qualified names
Task:
act=[crossing::activity|FQN] 'during' duration=INT 'minutes';
FQN: ID ("." ID)*;
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03773 seconds