Skip to main content



      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 10:14 Go to next message
Eclipse UserFriend
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 10:17 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Why terminal do not generate content assist ? [message #894068 is a reply to message #894062] Fri, 06 July 2012 10:24 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Why terminal do not generate content assist ? [message #894085 is a reply to message #894068] Fri, 06 July 2012 10:55 Go to previous message
Eclipse UserFriend
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: Sat Jul 05 10:52:56 EDT 2025

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

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

Back to the top