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 100199

Summary: Cannot assign value to ${user} macro for templates
Product: platform Reporter: tkellerer <tkellerer>
Component: Data SystemsAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: jpokorsky, mpetras
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description tkellerer 2007-04-06 11:05:26 UTC
In NB 5.5 one could assign a value to the ${user} macro that is used in
Templates (Tools->Template Manager). This was available in the advanced options
under "Java sources". 

This node is now gone in NB 6.0 and I cannot find any property to define the
name used for the ${user} macro.
Comment 1 novakm 2007-04-10 10:49:59 UTC
Reassigning to Editor - Options for evaluation.
Comment 2 Vitezslav Stejskal 2007-04-10 12:12:02 UTC
There have been some changes in the way how templates are implemented in Nb6 and
perhaps this was somehow addressed by the new framework. I don't have the IZ #
handy, but it's java anyway.
Comment 3 Jan Pokorsky 2007-04-10 13:09:57 UTC
Right, java templates were migrated to the new scripting support. I cannot agree
it relates to java.

Nowadays the ${user} is supplied by the openide/loaders module that reads it
from the system property user.name. So using -J-Duser.name=YourName is the only
way to customize it AFAIK.

I am not aware of any plans for template attributes UI. Reassigning to openide
that exports the attribute.
Comment 4 Jaroslav Tulach 2007-07-09 16:21:33 UTC

*** This issue has been marked as a duplicate of 107725 ***