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 3812 - The system of replaceable strings in templates should be better unified.
Summary: The system of replaceable strings in templates should be better unified.
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 17075 (view as bug list)
Depends on:
Blocks:
 
Reported: 1999-09-13 01:11 UTC by Jesse Glick
Modified: 2008-12-23 10:59 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 1999-09-13 01:11:47 UTC
Existing problems:

- no standard way of including a replaceable token inside a quoted string (it will be ignored by MapFormat)--this makes it impossible to provide things like icon resource paths based on package

- DATE, TIME, etc. are included by Java loader and maybe other loader separately; there is no master list of these

- user-specified strings like USER are set separately in every loader, so this info must be retyped in every Settings for different modules

- missing conventions for common user-specifiable things like copyright, version, etc.


- not documented how to add multi-line strings (loaded via java.util.Properties)

See Solution tab for suggested fixes.

[phamernik] deferred for f4j 1.0 CE final.
Comment 1 Marek Grummich 2000-07-25 09:26:59 UTC
Priority is changed to P4 (normal).
Comment 2 Jesse Glick 2002-02-14 19:58:10 UTC
I think this is dupe of something newer, pls. check.
Comment 3 phamernik 2002-02-19 16:51:06 UTC
Component: core->java.
Comment 4 phamernik 2002-02-19 16:51:36 UTC
Passing to Svata...
Comment 5 Jesse Glick 2002-02-20 13:06:30 UTC
Actually I think this is an openide issue - there is no workable API
for consolidating replacement tokens across modules.
Comment 6 Svata Dedic 2002-02-22 07:48:18 UTC
Jesse's right, the basic support for fixed (or standard, like DATE)
replacement strings should be done in OpenAPIs, or at least documented
(if the macros are declarared in XML layer).
Comment 7 David Simonek 2002-08-07 10:59:38 UTC
passing back to Petr, Petr please reassign it that's not right.
Comment 8 Jesse Glick 2002-11-30 17:52:03 UTC
*** Issue 17075 has been marked as a duplicate of this issue. ***
Comment 9 Marian Mirilovic 2003-03-13 13:43:58 UTC
Changed owner David S. -> David K.
Comment 10 mikeskells 2003-06-12 14:52:14 UTC
It would be nice to add some scripting support at the same 
time. That way the template could be a bit like a JSP.

could go the whole hog and let the template be a JSP and 
then you have the JSP2.0 and JSTL  + custom tags etc for 
free, but I gusee that some people will not like that!

I am sure thatthere is some compromise, but having the 
templates scriptable would tend to ensure thatthe content 
is in the template, and much of the behavior, so the 
majority of the programming could be UI only, and the 
behavior would be more declarative.

perhaps this could also control the conditional creation 
of files, within a group
Comment 11 Jaroslav Tulach 2005-01-25 06:48:02 UTC
We do not need old open issues nobody is going to fix.
Comment 12 Jesse Glick 2005-04-12 00:36:57 UTC
Is nobody going to fix this? IMHO this is still as relevant as it was when opened.
Comment 13 Jaroslav Tulach 2005-04-12 07:29:01 UTC
If you know about someone, please reassign the issue to him.
Comment 14 Jesse Glick 2005-04-12 18:44:49 UTC
It's still a valid requirement even if we don't have anyone to work on it right
now. We still need to work on it someday.