Skip to main content


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 08:31 Go to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
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 06:28 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14669
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

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: reference with spaces. [message #692191 is a reply to message #691725] Sun, 03 July 2011 21:05 Go to previous message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
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: Fri Apr 26 20:13:40 GMT 2024

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

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

Back to the top