Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » Proposal provider for a rule
Proposal provider for a rule [message #523249] Thu, 25 March 2010 12:23 Go to next message
Eclipse UserFriend
Hi everybody!

I tried the approach below, but nothing happens... Is there something that I'm doing wrong? The provider for the features, works pretty well...

public class MyDslProposalProvider extends AbstractMyDslProposalProvider {
public void complete_TestProject(
  TestProject model, 
  RuleCall ruleCall, 
  ContentAssistContext context, 
  ICompletionProposalAcceptor acceptor) {
 
 acceptor.accept(createCompletionProposal("<testSuite></testSuite>", "TestSuite", null, context));
}
}

Thank you for help!!
Re: Proposal provider for a rule [message #523757 is a reply to message #523249] Mon, 29 March 2010 04:24 Go to previous messageGo to next message
Eclipse UserFriend
Hi Urtzi,

please ask Xtext related question in the Xtext newsgroup which I've
added to this reply.
There is currently an open bugzilla for the bug that you describe. We'll
fix it before the Helios release.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 25.03.10 17:23, schrieb Urtzi Odriozola:
> Hi everybody!
>
> I tried the approach below, but nothing happens... Is there something
> that I'm doing wrong? The provider for the features, works pretty well...
>
>
> public class MyDslProposalProvider extends AbstractMyDslProposalProvider {
> public void complete_TestProject(
> TestProject model, RuleCall ruleCall, ContentAssistContext context,
> ICompletionProposalAcceptor acceptor) {
>
> acceptor.accept(createCompletionProposal("<testSuite></testSuite >",
> "TestSuite", null, context));
> }
> }
>
> Thank you for help!!
Re: Proposal provider for a rule [message #523798 is a reply to message #523249] Mon, 29 March 2010 08:27 Go to previous message
Eclipse UserFriend
Hi Sebastian,

Sorry for the mistake... Ok, I will be following the improvements.

Regards,
Urtzi
Previous Topic:[JET] Inconsistent results for getClassifierID()
Next Topic:[XPand] The EMF Typesystem
Goto Forum:
  


Current Time: Sun Jul 20 12:24:11 EDT 2025

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

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

Back to the top