Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » why complete_ID is not implemented in Xbase as it is in common.Terminals?
why complete_ID is not implemented in Xbase as it is in common.Terminals? [message #948264] Wed, 17 October 2012 22:44 Go to next message
Cristiano Gavião is currently offline Cristiano GaviãoFriend
Messages: 279
Registered: July 2009
Senior Member
Hi,

A normal dsl that derives from common.Terminals has the TerminalsProposalProvider class that implements the complete_ID method.

I'm working in a Xbase based dsl now and noted that AbstractXbaseProposalProvider doesn't implement any of complete_ID, complete_ValidID or complete_QualifiedName methods.

Any reason for that ?

regards,

Cristiano

Re: why complete_ID is not implemented in Xbase as it is in common.Terminals? [message #948299 is a reply to message #948264] Wed, 17 October 2012 23:41 Go to previous message
Cristiano Gavião is currently offline Cristiano GaviãoFriend
Messages: 279
Registered: July 2009
Senior Member
well, one more pitfall moving to Xbase...

I implemented this method in MyDslProposalProvider but its not being called by PolymorphicDispatcher:

	@Override
	public void complete_QualifiedName(EObject model, RuleCall ruleCall,
			final ContentAssistContext context,
			ICompletionProposalAcceptor acceptor) {
		common_complete_IDs(model, ruleCall, context, acceptor);
	}

	@Override
	public void complete_ValidID(EObject model, RuleCall ruleCall,
			final ContentAssistContext context,
			ICompletionProposalAcceptor acceptor) {

		common_complete_IDs(model, ruleCall, context, acceptor);
	}


That approach worked without Xbase. Could someone tell what am I missing here ?

thanks
Previous Topic:Is it possible to generate nested classes/interfaces from IJvmModelInferrer?
Next Topic:Re: Couple Graphiti Editor with XText DSL
Goto Forum:
  


Current Time: Fri Sep 18 14:30:35 GMT 2020

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

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

Back to the top