Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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: Wed Jul 23 03:50:03 EDT 2025

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

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

Back to the top