Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Containment references with containment proxies in Xtext grammer(How can I use references with containment proxies in Xtext?)
Containment references with containment proxies in Xtext grammer [message #1702434] Wed, 22 July 2015 10:28
Stephan Hildebrandt is currently offline Stephan HildebrandtFriend
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
Previous Topic:How to set indentation in formatter?
Next Topic:Compare Editor without Semantic Highlighting
Goto Forum:
  


Current Time: Fri Sep 20 18:58:59 GMT 2024

Powered by FUDForum. Page generated in 0.03398 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top