Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Howto use my email address rather than my login ID as the author in Java templates?
Howto use my email address rather than my login ID as the author in Java templates? [message #630007] Thu, 30 September 2010 11:03 Go to next message
David Goodenough is currently offline David GoodenoughFriend
Messages: 157
Registered: July 2009
Senior Member
By default the template for a new class includes the @author tag with the
value ${user}. I would rather that it would include my email address but
I do not want to have to go through each template changing ${user} to the
address, rather I would like to define either a new variable (and give it
a value) or even better change the value of the ${user} variable to be
my email address rather than my login ID.

How can I achieve this?

David
Re: Howto use my email address rather than my login ID as the author in Java templates? [message #630023 is a reply to message #630007] Thu, 30 September 2010 12:22 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Maybe you can set the user property when starting up eclipse?
-Duser=pwebster@ca.ibm.com

See
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. platform.doc.isv/reference/misc/runtime-options.html
for how you can use runtime options in eclipse.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:Multi Editor
Next Topic:.project file question
Goto Forum:
  


Current Time: Mon Jan 25 02:13:06 GMT 2021

Powered by FUDForum. Page generated in 0.01525 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top