• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Auto setting JavaDoc in Eclipse 3.2

 
Ranch Hand
Posts: 511
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello there,

How do I set my full name in Eclipse 3.2 to the ${user} for JavaDoc related purposes?

e.g.

If I am on the top of a class file and type in:



it does this auto-complete:


What I want it to say is Unnsse Khan instead of ukhan (this is my login name on WinXP) and I want it (the top-level JavaDoc) to be automatic. I don't want to have to put the /** and then hit Enter. Where can I hard code / set the value for ${user} and where do I specify that the comments are always generated?

Many, many thanks!
[ January 08, 2007: Message edited by: Unnsse Khan ]
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Unnsse,
In the Eclipse workspace preferences, you can set the template to use Unnsse Khan instead of the templated ${user} value.
 
Unnsse Khan
Ranch Hand
Posts: 511
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jeanne,

I understand that but how do I set the value for ${user}?

Want to be able to manually change that value... Is there a way it could be done?

Sincerely,
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Unnsse,
I don't know of a way to change the value. That why I was suggesting hard coding it to the name/format you want.
 
Unnsse Khan
Ranch Hand
Posts: 511
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jeanne,

Okay, thanks for the suggestion!

Cheers,
 
Saloon Keeper
Posts: 27764
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could code an eclipse environment variable, I believe. But the effort involved is equivalent to simply changing the template.

It's not like your first/last name is a stock system variable that Eclipse can locate and plugin.
 
reply
    Bookmark Topic Watch Topic
  • New Topic