Skip to main content



      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 18:44 Go to next message
Eclipse UserFriend
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 19:41 Go to previous message
Eclipse UserFriend
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: Tue Jul 08 01:37:52 EDT 2025

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

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

Back to the top