Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Cross reference elements in an external XMI file
Cross reference elements in an external XMI file [message #783795] Thu, 26 January 2012 08:32 Go to previous message
Cedric Moonen is currently online Cedric Moonen
Messages: 216
Registered: August 2009
Senior Member
Hello,

I would like to reference elements which are contained in an external XMI resource. For this, I use the "import URI" feature: I added an "Import" EClass in my domain model with an importURI feature (as described in the documentation).
I then added the ImportURIScopingFragment in my workflow file.

This seems to import properly the file but an exception is thrown in Xtext:
An internal error occurred during: "Xtext validation".
java.lang.IllegalStateException: No IResourceServiceProvider found in registry for uri ../model-gen/deployment.xmi


This exception is thrown only if my URI points to a valid file, so this would mean that importing the resource works properly.

From the exception, I guess that I have to provide a ResourceServiceProvider for XMI files but I'm not sure how to do that.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Custom hover support with Xtext 2.3
Next Topic:Xtext snippets
Goto Forum:
  


Current Time: Fri May 24 07:58:25 EDT 2013

Powered by FUDForum. Page generated in 0.01723 seconds