Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext content assist auto activation doubt
Xtext content assist auto activation doubt [message #855285] Tue, 24 April 2012 17:19 Go to next message
Cristiano Gavião is currently offline Cristiano GaviãoFriend
Messages: 279
Registered: July 2009
Senior Member
Hi,

I've followed this interesting post Xtext Content Assist Auto Activation.

It works properly when I type the desired key, but it doesn't activate when the character is a keywork too.
Let me explain. I have this grammar:

Model:
	'Model' ident=ID
	'{'
	(imports+=Import*)
	('description' '=' description=STRING)?
	('version' '=' version=VERSION)?
	('owner''=' owner=STRING)?
	 components+=SoftwareComponent*
	'}'
;


I've setup the auto activation to listen to the Equal character ("=") but it is being used as a keyword too in grammar.
Running the dsl, when I type this character the content assist for the next feature is activated properly, but if I choose "=" keyword from the popup assist it won't activate the next assist.

First question, am I using '=' on grammar correctly? I mean, it is this way that I ensure that this character must be write on text?

Second, if I'm doing right, is there anything that could be done to activate the assist after select the keyword?

regards,

Cristiano
Re: Xtext content assist auto activation doubt [message #855334 is a reply to message #855285] Tue, 24 April 2012 18:28 Go to previous message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 14667
Registered: July 2009
Senior Member
Hi,

i guess this is "works as designed" it is an "autoactivation character" you have to type into the file.

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Tue, 24 April 2012 18:29]

Report message to a moderator

Previous Topic:MWE2 workflow component for creating XSD from genmodel?
Next Topic:making unique instances
Goto Forum:
  


Current Time: Fri Apr 26 17:02:35 GMT 2024

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

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

Back to the top