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 - Template User Configuration Properties are not available
Summary: Template User Configuration Properties are not available
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker with 2 votes (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-23 15:22 UTC by roridge
Modified: 2011-11-01 18:00 UTC (History)
1 user (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 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