Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » How manage Completion for Java Model with Freemarker script.
How manage Completion for Java Model with Freemarker script. [message #547868] Mon, 19 July 2010 22:23
Angelo ZERR is currently offline Angelo ZERR
Messages: 121
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
Previous Topic:ScriptBuilder full build too slow because it reads all IReources in a project
Next Topic:(DLTK Newbie) Creating new script editor: NPE
Goto Forum:
  


Current Time: Thu Sep 18 07:58:29 GMT 2014

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

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