Skip to main content

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.
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 offline Christian DietrichFriend
Messages: 13612
Registered: July 2009
Senior Member

just make sure you reference the xtext projects genmodel from your genmodel

Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @chrdietrich
Blog :
Previous Topic:eclipse 4 DI
Next Topic:Double comment bug when using autoformat
Goto Forum:

Current Time: Sun Sep 27 16:40:40 GMT 2020

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

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

Back to the top