I would like to reference EObject elements which are generated with Xtext from EMF.
I have created an EMF model using ecore (model1), and a grammar model using Xtext (model2). I would like to refer from model1(EMF) elements in model2(Xtext).
Now, I have two different genmodels.
I read in the Xtext guide ver 2.1, section 9.10. Fragment Provider (Referencing Xtext Models From Other EMF Artifacts), how to use URIs.
If I load the model2 ecore in model1 ecore, for cross referencing, and regenerate, the Xtext EObjects are regenerated.
Anyone knows what can I do to cross reference from EMF to Xtext?