Nested EPackage in ECore model cannot be imported in XText [message #869356] |
Thu, 03 May 2012 05:26  |
Eclipse User |
|
|
|
Hello,
I'm trying to define a grammar based on several ECore models.
Those models contains nested packages :
- platform:/resource/model.ecore
- rootPack
- some EClasses
- subPack
- some Classes
If I'm trying to import thoses models using this way :
import 'platform:/resource/model.ecore'
In my XText grammar, I cannot acces the classes located in the sub Package, only the classes which are defined in the root package are available.
The only way I managed to work this out, is to install my models (and generated plugins) in the workbench and reference the package using their NS_URI.
import 'www.url.org/rootPack'
import 'www.url.org/rootPack/subPack' as subPack
But this way I have classpath issues. And moreover, this is not acceptable beacause I would like to be able to work on my models in the same workspace in which the Xtext project is located.
Any advice on how to accheive that ?
Kind regards,
Charles
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03924 seconds