Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext templates(Xtext templates)
Xtext templates [message #1008341] Mon, 11 February 2013 23:32 Go to next message
Girish Kumar is currently offline Girish Kumar
Messages: 23
Registered: May 2011
Junior Member
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 build.properties.

Regards
Girish
Re: Xtext templates [message #1008354 is a reply to message #1008341] Tue, 12 February 2013 02:12 Go to previous message
Alexander Nittka is currently offline Alexander Nittka
Messages: 1151
Registered: July 2009
Senior Member
Hi,

the documentation says a bit more than this!
Quote:
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 build.properties.


Alex


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


Current Time: Sat Aug 23 11:24:27 EDT 2014

Powered by FUDForum. Page generated in 0.02543 seconds