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.

Bug 64881 - Template macros do not work for all file types
Summary: Template macros do not work for all file types
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-22 10:59 UTC by randahl
Modified: 2009-12-21 04:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description randahl 2005-09-22 10:59:53 UTC
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
Comment 1 Martin Roskanin 2005-11-08 10:32:43 UTC
It seems it a is problem of xml editor that is not able to substitute such macro.
Comment 2 Jaroslav Pospisil 2006-03-13 13:35:25 UTC
TM 5.0->TBD
Comment 3 Petr Pisl 2006-07-28 09:55:28 UTC
I will try to solve in the 5.5
Comment 4 Petr Jiricka 2007-01-03 17:12:18 UTC
This sounds like an enhancement request to me, not a defect.
Comment 5 Marek Fukala 2007-02-16 14:43:45 UTC
Reassigning to default owner of selected subcomponent. New owners are gladly
welcomed.
Comment 6 Samaresh Panda 2007-09-26 23:10:40 UTC
On a second thought, this should be a P4. Will consider this as P3 if indeed we need this functionality.
Comment 7 Quality Engineering 2009-12-21 04:58:58 UTC
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