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 5574 - Templates (at least for Java sources) should support substitution of __DATE__ tags.
Summary: Templates (at least for Java sources) should support substitution of __DATE__...
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-01-27 01:38 UTC by Jesse Glick
Modified: 2007-09-26 09:14 UTC (History)
0 users

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 Jesse Glick 2000-01-27 01:38:41 UTC
Should be dynamically substituted with the current (localized) date.

Probably would be good to also have:

__QUALIFIED_NAME__
__QUALIFIED_NAME_SLASHES__

As these are not quite covered by __PACKAGE__ and __NAME__ in the case of an object instantiated to the default package. Perhaps instead:

__PACKAGE_TRAILING__

__PACKAGE_TRAILING_SLASHES__

where the string would be empty in the default package, else having a trailing dot/slash.
Comment 1 Svata Dedic 2000-10-25 10:07:59 UTC
__DATE__ and __TIME__ are supported now. The other replacement tags are already
present too - they will be documented on java.netbeans.org soon.
Comment 2 Jesse Glick 2000-10-25 10:41:59 UTC
Is this bug supposed to be INVALID or FIXED?

And yes, the other tags are already properly supported (I think I added them!).
Comment 3 Svata Dedic 2000-10-25 11:05:59 UTC
Of course fixed... and thanks for adding them.
Comment 4 Jan Becicka 2000-11-01 14:20:59 UTC
In [dev-60] substitution of
__QUALIFIED_NAME__
__QUALIFIED_NAME_SLASHES__
__PACKAGE_TRAILING__
__PACKAGE_TRAILING_SLASHES__

does not work.
Comment 5 Jesse Glick 2000-11-01 14:52:59 UTC
Maybe I got the exact token names wrong. E.g. __PACKAGE_AND_NAME_SLASHES__ is
supposed to work. Please test with apisupport templates which use these tokens
heavily, e.g. one of the loader groups from DataSystems API.
Comment 6 Svata Dedic 2000-11-01 17:39:59 UTC
OK, Jan - I'll document the correct substitution strings on java module's
webpages. Watch for updates.
Comment 7 Jan Becicka 2001-02-22 11:15:02 UTC
Valid substitution strings are:
__NAME__
__PACKAGE__
__PACKAGE_SLASHES__
__PACKAGE_AND_NAME__
__PACKAGE_AND_NAME_SLASHES__
__PACKAGE_AND_NAME__
__PACKAGE_AND_NAME_SLASHES__
Comment 8 Quality Engineering 2003-07-01 13:19:59 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.