How manage Completion for Java Model with Freemarker script. [message #547868] |
Mon, 19 July 2010 22:23 |
Angelo ZERR Messages: 122 Registered: July 2009 |
Senior Member |
|
|
Hi DLTK Team,
I'm developping DLTK IDE for Freemarker template engine that you can find at DLTK Freemarker Eclipse Plugin and I would like manage Completion for Java Model used into Freemarker template. For instance you have the Java Model :
models.put("className", "MyClass");
and Freemarker Template script:
public class ${className} {
}
I would like manage autocompletion after the ${ character and show 'className' into the autocompletion. I tell me which is the best solution. My first idea is to implement ScriptCompletionEngine and manage that into it. But perhaps it should be better to create DLTK AST by using Freemarker Interpolation token (classname) and use the AST?
Thank a lot for your help and suggestion.
Regards Angelo
|
|
|
Powered by
FUDForum. Page generated in 0.04408 seconds