Bug 45251 - [code templates] Ability to use a system property in a code template
Summary: [code templates] Ability to use a system property in a code template
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-20 21:36 EDT by Robert (Kraythe) Simmons CLA
Modified: 2009-01-23 11:31 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert (Kraythe) Simmons CLA 2003-10-20 21:36:07 EDT
In the code templates it would be nice if I could use a variable to access a 
named system property. In this manner I could do something like the following.

/** 
 * 
 * @author ${sysprop:user.name}
 */
${package_declaration}

${typecomment}
${type_declaration}

The variable ${sysprop:user.name} would be sibstituted at runtime with the 
actual value of the system property user.name. 

This would be useful in multideveloper situations because one set of standard 
templates could be shared and imported by the developers and they would 
automatically get their replacement values. 

These variables should also be available in the code generation area as well.