This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Templates Created Using "Save As Template" Cannot Use FreeMarker | ||
---|---|---|---|
Product: | platform | Reporter: | tomwheeler <tomwheeler> |
Component: | Favorites | Assignee: | Jiri Rechtacek <jrechtacek> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 153941 | ||
Attachments: | Proof-of-concept action which lets the user mark a template as a freemarker template |
Description
tomwheeler
2008-09-30 17:30:35 UTC
Created attachment 70920 [details]
Proof-of-concept action which lets the user mark a template as a freemarker template
I thought of a workaround. It's not ideal, but should suffice until the issue is implemented. Instead of saving a source file as a template, do this: 1. Go to Tools -> Templates 2. Expand some category (e.g. "Java") 3. Select an existing template which uses JFreeMarker (e.g. "Java Class") 4. Click the Duplicate button 5. Rename the new template as desired (e.g. "Extra Special Java Class") 6. Click the "Open In Editor" button at the bottom of the dialog 7. Edit the template as desired, using standard tokens like ${package} and ${class} 8. Save the changes to the template You should then find the new template works as expected because the "javax.script.ScriptEngine" attribute should have been retained when duplicating the template. fixed in core-main/rev/e0dacb6e3de2 Integrated into 'main-golden', will be available in build *200812070201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/d79a9c3c04f3 User: Jiri Rechtacek <jrechtacek@netbeans.org> Log: #148771: Templates Created Using "Save As Template" Cannot Use FreeMarker |