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.
Template macros are only expanded in files generated from templates that have a '.java' extension. Other types of template (JSP, text file, etc) don't get macro expansion applied.
Yarda, please help me. Who is responsible for this part of code?
There is a support for macros in openide, but just support, still module writers has to provide a mapping (keyword -> value) which openide cannot. So this is a task for all module writers. Use FileEntry.Format or util.MapFormat directly. I am assigning this to text module, after fix, reassign it to JSP, etc. Laurie, better approach would probably be to create additional enhancements for each module that does not have this functionality and make this issue depend on them.
Target milestone -> 3.3.1.
Yarda, the problem is that then every module would need to have a system option or similar giving custom macro vars such as USER and so on, and a user would have to find and modify each of these. That would be unacceptable UI. We should find a way to share macro values. Some like __PACKAGE_NAME__ in .java only make sense for a particular file type of course, but user-customizable ones at least should be sharable, and it would at least be convenient for modules to have a central place where more neutral non-customizables ones like __NAME__ would be defined, though this is less important. openidex? Some other way? I think Ian and I had this discussion long ago, but it was never resolved. May need thread on nbdev.
Set target milestone to TBD
Already filed in openide. *** This issue has been marked as a duplicate of 3812 ***