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.
The template macros are not universal. That means that a template macro like __PACKAGE_SLASHES__ migt work for some file types while not for others. It is not documented precisely where each macro works. I have tested this, and I have found situations where this limitation makes my templates less efficient. For instance, I have an XML file format in which I always add the package name of the package in which the XML file is placed. I do this because the contents of my XML files are always scoped, and by default they should be scoped with the package name. Therefore I would like to create an XML template in which the following line occurs: <scope>__PACKAGE_NAME__.new-scope</scope> But this is not possible, because NB template macros are not universal, and apparantly the __PACKAGE_NAME__ only has an effect in Java source files. Consequently the __PACKAGE_NAME__ macro is not replaced with the real package name when creating a new XML file from such a template. Randahl
It seems it a is problem of xml editor that is not able to substitute such macro.
TM 5.0->TBD
I will try to solve in the 5.5
This sounds like an enhancement request to me, not a defect.
Reassigning to default owner of selected subcomponent. New owners are gladly welcomed.
On a second thought, this should be a P4. Will consider this as P3 if indeed we need this functionality.
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. We apologize for any inconvenience. Thank you. The NetBeans Team