you can set the prefix for fields so it will generate _name, but you can't make 
it do name() instead of getName().

Prefs=>Java=>Code Style change Fields Prefix to _

ms

On Feb 26, 2010, at 5:11 PM, David Holt wrote:

> 
> On 2010-02-26, at 1:54 PM, Shravan Kumar. M wrote:
> 
>> Hi Group,
>> 
>> When ever I use Source -> Generate Getters and Setters... function in 
>> Eclipse it generates getter method as of Java Bean style like:
>> 
>> private String name;
> 
> My favourite is that it changes variable names too! For example if you have 
> private String aName;
> 
> it will generate the code below dropping the "a", which screws up the 
> WebObjects templates that are looking for setAName() and aName() methods.
> 
>> 
>> public String getName() {
>>     return name;
>> }
>> 
>> public void setName(String name) {
>>     this.name = name;
>> }
>> 
>> But I wish the getter method generates like a native WO getter method i.e.,
>> 
>> public String name() {
>>     return name;
>> }
>> 
>> Is there any setting I can modify to achieve this? Please advise.
>> 
>> Thank You in advance,
>> Shravan Kumar. M
>> ----------------------------------------
>> 
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
>> 
>> This email sent to [email protected]
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to