Skip to main content



      Home
Home » Newcomers » Newcomers » How to: java author real name
How to: java author real name [message #172919] Thu, 28 September 2006 18:44 Go to next message
Eclipse UserFriend
Originally posted by: mansour.own.net

Hi Everybody:
When I create a mehtod or class or file in eclipse, how do I tell it to
insert the user's full name not the "Operating System user name" !!
Re: How to: java author real name [message #172981 is a reply to message #172919] Fri, 29 September 2006 06:59 Go to previous messageGo to next message
Eclipse UserFriend
Mansour schreef:
> Hi Everybody:
> When I create a mehtod or class or file in eclipse, how do I tell it to
> insert the user's full name not the "Operating System user name" !!
Isn't the user name read from an environment variable?

In the DOS prompt do
C:\>SET <return>

and it will show your variables, is that the name used in Eclipse?
If so, you can do
C:\>SET USERNAME=your desired user name in full here <return>

before starting eclipse??
Re: How to: java author real name [message #173024 is a reply to message #172919] Fri, 29 September 2006 14:23 Go to previous messageGo to next message
Eclipse UserFriend
Modify the Java Code template (in the Preferences) that's used for new
classes, replacing the ${user} variable with the actual name on each
person's installation of Eclipse.

Hope this helps,
- Jeff

Mansour wrote:
> Hi Everybody:
> When I create a mehtod or class or file in eclipse, how do I tell it to
> insert the user's full name not the "Operating System user name" !!
Re: How to: java author real name [message #173129 is a reply to message #173024] Sun, 01 October 2006 10:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mansour.own.net

Jeff Myers wrote:
> Modify the Java Code template (in the Preferences) that's used for new
> classes, replacing the ${user} variable with the actual name on each
> person's installation of Eclipse.
>
> Hope this helps,
> - Jeff
>
> Mansour wrote:
>
>> Hi Everybody:
>> When I create a mehtod or class or file in eclipse, how do I tell it
>> to insert the user's full name not the "Operating System user name" !!
I tried this before posting, and it never worked.
I know, logically it should change, but it didn't. I have to go though
each class and each single mehtod, and change the name from the OS user
name to the real name.
I am using Fedora 4.
I dont know if this is a bug. I am hoping to find a way to do this,
before I decided it's a bug.
Thank you.
Re: How to: java author real name [message #173196 is a reply to message #173129] Mon, 02 October 2006 10:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wojtek.a.com

Mansour wrote:
> Jeff Myers wrote:
> I have to go though
> each class and each single mehtod, and change the name from the OS user
> name to the real name.

Well, it is not a variable once the class/method is generated. It is just text in a comment.

However you could use a file search replace.
Re: How to: java author real name [message #174017 is a reply to message #172981] Mon, 09 October 2006 11:55 Go to previous message
Eclipse UserFriend
Maarten wrote:

> Mansour schreef:
>
>> Hi Everybody:
>> When I create a mehtod or class or file in eclipse, how do I tell it
>> to insert the user's full name not the "Operating System user name" !!
>
> Isn't the user name read from an environment variable?

Yes, which means you can simply pass it in when starting Eclipse - no
need to modify any variable:
eclipse.exe -vmargs -Duser.name="Your Name"

HTH
Dani

>
> In the DOS prompt do C:\>SET <return>
>
> and it will show your variables, is that the name used in Eclipse?
> If so, you can do C:\>SET USERNAME=your desired user name in full here
> <return>
>
> before starting eclipse??
Previous Topic:Can't find xsd file error
Next Topic:Quick type hiercarchy - camel case
Goto Forum:
  


Current Time: Fri Jul 18 09:55:48 EDT 2025

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

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

Back to the top