Summary: | template: would like to have API to use templates easily | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Adam Kiezun <akiezun> |
Component: | UI | Assignee: | Claude Knaus <Claude_Knaus> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | ||
Version: | 2.0 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Adam Kiezun
2001-11-05 04:37:49 EST
need more info on this. What are you trying to achieve Adam is trying to use templates for generating classes like <MyPackage>Messages for NLS. fixed > 208 For reading templates, you can do: TemplateSet set= new TemplateSet(); set.addFromFile(new File("templates.xml")); Template[] templates= set.getTemplates(); For interpolating templates, you have to use the TemplateInterpolator parser and implement a TemplateEvaluator which is fed by the parser. |