Reference other Xtext model [message #1787252] |
Tue, 22 May 2018 15:16  |
Eclipse User |
|
|
|
Hi guys,
I have two different Xtext models. Each with it's own DSL.
Now I want to make references from one model to the other one.
I already could "import" the other model i want to reference by:
- Add a import statement in Xtext model
- Add dependency in MANIFEST file
- Add theese two lines in workflow:
referencedResource = "platform:/resource/org.xtext.example.mydsl/model/generated/MyDsl.genmodel"
fragment = ecore2xtext.Ecore2XtextValueConverterServiceFragment2 auto-inject {}
No errors so far (however, is this the proper way to do?)
The problems occurs when debug the model.
Of course it does not find any elements to reference because it must read a file of the referenced model.
How to achieve that?
Thx for your help!
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05476 seconds