Skip to main content



      Home
Home » Modeling » TMF (Xtext) » TemplateProposal does not get inserted any more(TemplateProposal does not get inserted any more)
TemplateProposal does not get inserted any more [message #1733535] Sun, 29 May 2016 18:05 Go to next message
Eclipse UserFriend
I have DSL and use TemplateProposals to edit my DSL file. Now I changed the syntax of the DSL and afterward one TemplateProposal does not get inserted any more.

I cleaned the project and regenerated the xtext dependend classes by executing the corresponding workflow.

Which method I have to debug, to inspect why the template does not get inserted any more ?

Or are there other reasons I can check before debugging ?
Re: TemplateProposal does not get inserted any more [message #1733540 is a reply to message #1733535] Sun, 29 May 2016 23:43 Go to previous messageGo to next message
Eclipse UserFriend
you mean by "inserted" that it i proposed and when you select it nothing happens?
or is it not proposed at all?

if you change the grammar the context ids inside the templates may have changed.

you may use

org.eclipse.xtext.ui.editor.templates.DefaultTemplateProposalProvider.createTemplates(TemplateContext, ContentAssistContext, ITemplateAcceptor)

as starting point to debug.

or

TemplateProposal.apply
Re: TemplateProposal does not get inserted any more [message #1733624 is a reply to message #1733540] Mon, 30 May 2016 09:43 Go to previous message
Eclipse UserFriend
Christian Dietrich wrote on Sun, 29 May 2016 23:43
you mean by "inserted" that it i proposed and when you select it nothing happens?
or is it not proposed at all?


Yes it is proposed but not inserted

Christian Dietrich wrote on Sun, 29 May 2016 23:43

you may use

org.eclipse.xtext.ui.editor.templates.DefaultTemplateProposalProvider.createTemplates(TemplateContext, ContentAssistContext, ITemplateAcceptor)

as starting point to debug.

or

TemplateProposal.apply

Thank you for the hint, I found the mistake. It was an wrong coded "ß" in a template variable.
Previous Topic:Design considerations supporting Heredoc with Xtext/antlr lexer
Next Topic:Xtext Intellij Quick FIx
Goto Forum:
  


Current Time: Tue Jul 08 01:10:42 EDT 2025

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

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

Back to the top