Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Why terminal do not generate content assist ?
Why terminal do not generate content assist ? [message #894062] Fri, 06 July 2012 14:14 Go to next message
Cristiano Gavião is currently offline Cristiano GaviãoFriend
Messages: 279
Registered: July 2009
Senior Member
Hi,

with this grammar the content assist is generated:
Model:
	greetings+=Greeting*;
	
Greeting:
	'Hello' name=ID '!';



But if I change the keyword in the rule by a terminal, xtext is not generating proper content assist.

Model:
	greetings+=Greeting*;
	
Greeting:
	HELLO name=ID '!';
	
terminal HELLO:
	'Hello'
;

Am I missing something here ?

thanks,

Cristiano

Re: Why terminal do not generate content assist ? [message #894065 is a reply to message #894062] Fri, 06 July 2012 14:17 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Xtext does not try to give meaningful CA for custom terminals you
have to implement the corresponding method in the proposal provider
yourself. Btw terminals as you showed are absolutely unusual since
you use usually keywords for that

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Why terminal do not generate content assist ? [message #894068 is a reply to message #894062] Fri, 06 July 2012 14:24 Go to previous messageGo to next message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1193
Registered: July 2009
Senior Member
Hi,

I think there has been a feature request / discussion already.

Currently there are no proposals for terminals (note: keyword!=terminal) whatsoever, as generally a terminal covers more than a handful of possibilities. In this case it makes no sense to suggest anything at all (or rather there will be no agreement on which 3 possibilities to suggest).

Alex


Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
Re: Why terminal do not generate content assist ? [message #894085 is a reply to message #894068] Fri, 06 July 2012 14:55 Go to previous message
Cristiano Gavião is currently offline Cristiano GaviãoFriend
Messages: 279
Registered: July 2009
Senior Member
Hi,
I just think that a terminal being used inside a rule were a keyword.


thanks.
Previous Topic:XMLBeautifier uses wrong line separator
Next Topic:Integrating jar into RunAs Eclipse Application
Goto Forum:
  


Current Time: Wed Apr 24 22:48:51 GMT 2024

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

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

Back to the top