Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Cross references(how do cross references works?)
Cross references [message #879575] Thu, 31 May 2012 13:09 Go to next message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
hi,
can somebody explain to me how the cross references and enumeration works in xtext , i have read the xtext documentation and try to do an example but is still not clear .
Re: Cross references [message #879583 is a reply to message #879575] Thu, 31 May 2012 13:20 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13661
Registered: July 2009
Senior Member
Hi,

for cross references please read e.g. http://blogs.itemis.de/stundzig/archives/773
what is your question on enums? enums have nothing todo with cross references?

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Cross references [message #879595 is a reply to message #879583] Thu, 31 May 2012 13:43 Go to previous messageGo to next message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
thks for the doc , for cross references i've seen two differents examples :
-one saying to define the references in the grammar
- the second one to define it in a template

among the two , what is the best?, or they are working together.

concerning enums, i know they had nothing to do with cross references , but i've also try java examples in order to see how it works , it doesnt work , i just want to have if it is possible a working example showing how enums and cross references works or how they are apply in xtext.
Re: Cross references [message #879598 is a reply to message #879595] Thu, 31 May 2012 13:48 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13661
Registered: July 2009
Senior Member
Hi,

please post what doesnt work regarding enums. they are so trivial that you wount need an extra example.

cross references are defined in the grammar. where did you find a hint to do them in content assist/templates only?????

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Xtext: Xbase extensions
Next Topic:Using Xtext with Zest framework
Goto Forum:
  


Current Time: Sun Nov 29 23:33:21 GMT 2020

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

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

Back to the top