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: 13628
Registered: July 2009
Senior Member
http://kthoms.wordpress.com/2012/05/22/xtext-content-assist-filtering-k
eyword-proposals/


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
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: 13628
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....


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:.mwe2 of xtext in juno
Next Topic:Error in Xtext
Goto Forum:
  


Current Time: Fri Oct 23 03:00:05 GMT 2020

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

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

Back to the top