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 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 14:00 Go to previous message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6290
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 Sep 15 09:49:05 GMT 2014

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

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