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 09:55 Go to next message
Cristiano Gaviao is currently offline Cristiano Gaviao
Messages: 253
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 10:00 Go to previous message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6133
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
Previous Topic:Can i get an XMI model from a DSL textual file?
Next Topic:Matching cross-references and IDs
Goto Forum:
  


Current Time: Mon Jul 28 10:38:19 EDT 2014

Powered by FUDForum. Page generated in 0.08148 seconds