Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » reference with spaces.
reference with spaces. [message #691322] Fri, 01 July 2011 04:31 Go to next message
Christophe Bouhier is currently offline Christophe Bouhier
Messages: 897
Registered: July 2009
Senior Member
Quick question,

How do I declare a reference, which can contain an arbitrary number of
words separated with spaces? Is this even doable.

so ref=[Object|STRING containing spaces]

Thanks!
Christophe
Re: reference with spaces. [message #691725 is a reply to message #691322] Sat, 02 July 2011 02:28 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6144
Registered: July 2009
Senior Member
Hi, what about using a dataype rule that does not hide whitespace but rather contains it as token and use this in that reference rule? E.g. Words hidden(): ID ( WS ID)*; ref=[object¦Words]. Of Course you needneed a corresponding nameprovider. Regards Christian
Re: reference with spaces. [message #692191 is a reply to message #691725] Sun, 03 July 2011 17:05 Go to previous message
Christophe Bouhier is currently offline Christophe Bouhier
Messages: 897
Registered: July 2009
Senior Member
On 02-07-11 08:28, Christian Dietrich wrote:
> Hi, what about using a dataype rule that does not hide whitespace but
> rather contains it as token and use this in that reference rule? E.g.
> Words hidden(): ID ( WS ID)*; ref=[object¦Words]. Of Course you needneed
> a corresponding nameprovider. Regards Christian
Thx Christian! Will give this a try.
Previous Topic:xtext2 domainmodel example: no types in contentassist
Next Topic:Inject a different StaticMethodsFeatureForTypeProvider
Goto Forum:
  


Current Time: Thu Jul 31 05:28:41 EDT 2014

Powered by FUDForum. Page generated in 0.02097 seconds