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 13:08 Go to next message
Marco Asco is currently offline Marco AscoFriend
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 12:43 Go to previous message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 6499
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: Thu Nov 27 10:50:22 GMT 2014

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

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