Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Content assist for qualifiedName as exists for ID
Content assist for qualifiedName as exists for ID [message #906039] Fri, 31 August 2012 13:55 Go to next message
Cristiano Gavião is currently offline Cristiano GaviãoFriend
Messages: 279
Registered: July 2009
Senior Member
Hi,

I'm using ID and FQN in my grammar.
Rule1:
'rule1' name=ID;

Rule2:
'rule2' name=Fqn;

Fqn:
  ValidID (=>'.' ValidID)*;
  
ValidID:
	ID;

At runtime, when I ctrl-space after the rule1 keyword I got a content assist with: "name - ID". Selecting this I got a kind of quickfix for the name.

Where is this behavior configured?

How could I have the same with rule2 ?

thanks,

Cristiano
Re: Content assist for qualifiedName as exists for ID [message #906042 is a reply to message #906039] Fri, 31 August 2012 14:00 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

have a look at the superclass of your proposal provider

org.eclipse.xtext.common.ui.contentassist.TerminalsProposalProvider.complete_ID(EObject, RuleCall, ContentAssistContext, ICompletionProposalAcceptor)

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Can i get an XMI model from a DSL textual file?
Next Topic:Matching cross-references and IDs
Goto Forum:
  


Current Time: Tue Apr 23 07:58:37 GMT 2024

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

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

Back to the top