Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Hyperlinks - more than one possible hyperlink destinations?
Hyperlinks - more than one possible hyperlink destinations? [message #811080] Thu, 01 March 2012 22:57 Go to next message
Mikka Missing name is currently offline Mikka Missing nameFriend
Messages: 2
Registered: November 2011
Junior Member
Hi everybody,

I'm trying to provide hyperlinks for the most of the language elements of my xtext project. But now I stuck with hyperlinks that may have more than one possible destination:

    name=ID value=Value;

    name=ID value=Value;

    value=[Type1] | value=[Type2];

As you can see, Type3 consists of an instance of Type1 OR Type2 and should link to them (by using the square bracket syntax). When I try to generate the workflow/classes (via the 'Generate<Language>.mwe2' file) a FileNotFoundException is thrown because 'Internal<Language>' was not generated.

I tried it with following constructs:
    value=[Type1] | value=[Type2];

    value=([Type1] | [Type2]);

    type1=[Type1] | type2=[Type2];

Is there a possibility to use hyperlinks for those constructs?

Kind regards,
Re: Hyperlinks - more than one possible hyperlink destinations? [message #811299 is a reply to message #811080] Fri, 02 March 2012 06:51 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14068
Registered: July 2009
Senior Member
Hi you have to introduce a common super type

Type1OrType2: Type1 | Type2;

And reference this common supertype

Type3: ref=[Type1OrType2]

Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @chrdietrich
Blog :
Previous Topic:Case insensitive and warnings
Next Topic:Multiple-variable declaration randomly broken up to many single-variable declarations
Goto Forum:

Current Time: Tue Sep 28 00:44:45 GMT 2021

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

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

Back to the top