Bug 45251

Summary: [code templates] Ability to use a system property in a code template
Product: [Eclipse Project] JDT Reporter: Robert (Kraythe) Simmons <robert.simmons>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: mlists
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.