Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Couldn't resolve reference(Error retrieving instances)
Couldn't resolve reference [message #903188] Wed, 22 August 2012 09:03 Go to next message
Wagner Perin is currently offline Wagner Perin
Messages: 1
Registered: August 2012
Junior Member
Hi.

I'm doing my first experiment in Xtext and i'm define this grammar:

index.php/fa/11271/0/

So... when I test the 'Sequence of' [INSTANCE OF BOOK] this error occurs:

index.php/fa/11272/0/

Someone help me to find what I did wrong?
  • Attachment: grammar.png
    (Size: 7.46KB, Downloaded 146 times)
  • Attachment: error.png
    (Size: 6.16KB, Downloaded 142 times)
Re: Couldn't resolve reference [message #903203 is a reply to message #903188] Wed, 22 August 2012 09:47 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 4426
Registered: July 2009
Senior Member
Hi

Cross referencing is done via name=> change your grammar to

name=ID


or write a custom IQualifiedNameProvider that offers the books isbn as name.
Re: Couldn't resolve reference [message #903206 is a reply to message #903188] Wed, 22 August 2012 09:48 Go to previous message
Sebastian Zarnekow is currently offline Sebastian Zarnekow
Messages: 2788
Registered: July 2009
Senior Member
Xtext uses the feature 'name' to identify objects (by default). Please
refer to the docs for details.

Regards,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 22.08.12 15:03, schrieb Wagner Perin:
> Hi.
>
> I'm doing my first experiment in Xtext and i'm define this grammar:
>
>
>
> So... when I test the 'Sequence of' [INSTANCE OF BOOK] this error occurs:
>
>
>
> Someone help me to find what I did wrong?
>
Previous Topic:startup action on project load
Next Topic:Using the index with an hierarchically directory tree
Goto Forum:
  


Current Time: Fri May 24 21:11:41 EDT 2013

Powered by FUDForum. Page generated in 0.05253 seconds