Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext templates(Xtext templates)
Xtext templates [message #1008341] Tue, 12 February 2013 04:32 Go to next message
Girish Kumar is currently offline Girish KumarFriend
Messages: 40
Registered: May 2011
Hi All,

I wanted to create template for content assist.

The documentation says : you need to create a folder named templates and add templates.xml inside it.

I have created templates.xml by exporting it from the runtime preference page.

The same i added into templates folder of ui plugin.

But it is not working..

Please let me know, i have done anything wrong ??

As a matter of fact, I have also added template folder to exported in

Re: Xtext templates [message #1008354 is a reply to message #1008341] Tue, 12 February 2013 07:12 Go to previous message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1189
Registered: July 2009
Senior Member

the documentation says a bit more than this!
It is best practice to edit the templates in the preferences page, export them into the templates.xml-file and put this one into the templates folder of your UI-plug-in. However, these templates will not be visible by default. To fix it, you have to manually edit the xml-file and insert an id attribute for each template element. Note that the attribute name is case sensitive. As always in eclipse plug-in development, if the folder templates did not exist before, you have to add it to the bin.includes in your


Need training, onsite consulting or any other kind of help for Xtext?
Go visit or send a mail to
Previous Topic:Plugin editor fails to load
Next Topic:Global scope and resolving Maven/Plugin dependencies
Goto Forum:

Current Time: Thu Jul 28 12:39:38 GMT 2016

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

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