Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Proposal provider for a rule
Proposal provider for a rule [message #523249] Thu, 25 March 2010 16:23 Go to next message
Urtzi Odriozola is currently offline Urtzi OdriozolaFriend
Messages: 27
Registered: March 2010
Junior Member
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 08:24 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
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 12:27 Go to previous message
Urtzi Odriozola is currently offline Urtzi OdriozolaFriend
Messages: 27
Registered: March 2010
Junior Member
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: Sat Apr 27 04:12:13 GMT 2024

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

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

Back to the top