Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Filter keyword in content assist
Filter keyword in content assist [message #883415] Fri, 08 June 2012 13:35 Go to next message
Nicolas Sedlmajer is currently offline Nicolas SedlmajerFriend
Messages: 2
Registered: June 2012
Junior Member
Hi,

my grammar has a rule :

TurnCW : "tourne à droite" ("de" angle=INT "degrés")? ;


In the Ecore model angle has a default value of 90.

This grammar has no line terminator, such as ';', and I don't want to add one.

Is it possible to filter the keyword "de" after a new line in xtext's content assist ?

Thanks in advance !
Re: Filter keyword in content assist [message #883420 is a reply to message #883415] Fri, 08 June 2012 13:44 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
http://kthoms.wordpress.com/2012/05/22/xtext-content-assist-filtering-k
eyword-proposals/


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Filter keyword in content assist [message #883421 is a reply to message #883420] Fri, 08 June 2012 13:48 Go to previous messageGo to next message
Nicolas Sedlmajer is currently offline Nicolas SedlmajerFriend
Messages: 2
Registered: June 2012
Junior Member
This filters the keyword even if It is on the same line.
Re: Filter keyword in content assist [message #883425 is a reply to message #883421] Fri, 08 June 2012 13:53 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
What about to debug into the code: you will see that the CA context
will give you access to the node model....


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:.mwe2 of xtext in juno
Next Topic:Error in Xtext
Goto Forum:
  


Current Time: Thu Apr 25 12:51:42 GMT 2024

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

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

Back to the top