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 122646

Summary: Template User Configuration Properties are not available
Product: uml Reporter: roridge <roridge>
Component: Code GenerationAssignee: issues@uml <issues>
Status: NEW ---    
Severity: blocker CC: ulfzibis
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description roridge 2007-11-23 15:22:00 UTC
When changing the Templates for code generation in either the CompliationUnit.java or the DecLib.ftl The User
Configuration Properties are not available.

So it is not possible to generate a class javadoc:
/*
* Copyright ${year}
* @author ${user}
*/

because ${user} is not recognised by default, and ${year} is not recognised from my User.properties file.
Comment 1 Viktor Lapitski 2008-01-15 22:53:21 UTC
in current release the only data available in templates is model data 
API-accessible starting from ${modelElement} which is an instance of 
org/netbeans/modules/uml/core/metamodel/infrastructure/coreinfrastructure/IClassifier
(can be found under <netbeans_cvs_root>/uml/core/src/...)
Comment 2 ulfzibis 2011-11-01 18:00:24 UTC
See also: Bug 145109