Containment references with containment proxies in Xtext grammer [message #1702434] |
Wed, 22 July 2015 10:28 |
Stephan Hildebrandt Messages: 25 Registered: July 2015 |
Junior Member |
|
|
Hi,
I have a containment reference in my metamodel with containment proxies enabled in the genmodel. With plain EMF everything works fine, the contained elements can be stored in separate files, so that I have a master model file and multiple model files for the contained elements.
Now I want to define Xtext grammars for those model files. How do I have to refer to the containment reference in the grammar? If I refer to it like an ordinary containment reference, the editor is generated propertly but obviously I can only add new contained model elements within the master model file. I cannot refer to the elements in the other model files. If refer to the containment reference like an ordinary reference, the Xtext generator complains that the reference is a containment reference.
Best regards,
Stephan
|
|
|
Powered by
FUDForum. Page generated in 0.03398 seconds