|
|
|
Re: Referencing in a "fully qualified" way [message #673933 is a reply to message #673565] |
Wed, 25 May 2011 04:11  |
Eclipse User |
|
|
|
Hi Alexander,
Works like a charme. Thanks.
Tom
Am 24.05.11 08:28, schrieb Alexander Nittka:
> Hi,
>
> this is supported out of the box. Have a look at the domainmodel example
> shipped with Xtext. The key is the datatype rule
>
> QualifiedName: ID ('.' ID)*;
>
> and doing the cross references like that
>
> ref=[Type|QualifiedName]
>
> meaning (refer to an element of type Type using the string
> representation of a Qualified name (x.y.z). It the element lies in the
> same namespace (x.z) z can be referenced via its short name (z)
> automatically (but also via x.y.z). The documenation briefly covers
> namespaces and namespace imports.
>
> Alex
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02964 seconds