Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Cross referencing from EMF to Xtext
Cross referencing from EMF to Xtext [message #1037360] Tue, 09 April 2013 09:08 Go to next message
Marco Asco is currently offline Marco Asco
Messages: 1
Registered: April 2013
Junior Member
Greetings to all.

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?

Thanks for helping.
Marco
Re: Cross referencing from EMF to Xtext [message #1038861 is a reply to message #1037360] Thu, 11 April 2013 08:43 Go to previous message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6131
Registered: July 2009
Senior Member
Hi,

just make sure you reference the xtext projects genmodel from your genmodel
Previous Topic:eclipse 4 DI
Next Topic:Double comment bug when using autoformat
Goto Forum:
  


Current Time: Sat Jul 26 07:23:17 EDT 2014

Powered by FUDForum. Page generated in 0.02521 seconds