|Re: accessing user defined templates at runtime [message #1012288 is a reply to message #1012278]
||Thu, 21 February 2013 09:19
| Alexander Nittka
Registered: July 2009
have you bound your implementation in the UIModule? If you override the validate methods, you should have everything you need available.
The context allows you to determine at which position content assist is invoked (what is to be completed), the template is the candidate template that is to be proposed.
So you check whether you want to show the template at that point and return true or false accordingly... (Breakpoints and debug mode are always helpful.)
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to email@example.com
Powered by FUDForum
. Page generated in 0.01772 seconds