On Mar 20, 2007, at 4:59 AM, Mike Schrag wrote:
> I have not been able to figure this one out ... I always end up
> manually removing "get". Drives me crazy. If anyone knows of a
> fix for this, definitely post.
Oh, how I HATE that. This is my number one HATE in Eclipse. Number
two is that Help key next to home.
Chuck
>
> On Mar 20, 2007, at 7:53 AM, Kieran Kelleher wrote:
>
>> Ah, found the Code Style setting which allows you to specify
>> prefixes, such as underscore, for fields. Getter/setter generation
>> is better now except I want to get rid of the "get" prefix.....
>> See attached screenshot:
>> <pastedGraphic.tiff>
>>
>>
>> On Mar 20, 2007, at 7:16 AM, Kieran Kelleher wrote:
>>
>>> Yeah, I tried that but it does not do the underscore thing
>>> (WOBuilder did) which is a convention I have established in my
>>> projects that is used to identify ivars in stateless WOComponents
>>> (which for me is every non-page component) that are automatically
>>> reset.
>>>
>>> If I use an ivar beginning with an underscore and do auto
>>> generate setter/getter, I get this ugly mess:
>>> protected Object _myAutoResetVar;
>>>
>>> public Object get_myAutoResetVar() {
>>> return _myAutoResetVar;
>>> }
>>>
>>> public void set_myAutoResetVar(Object autoResetVar) {
>>> _myAutoResetVar = autoResetVar;
>>> }
>>>
>>>
>>
>
--Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects
This archive was generated by hypermail 2.0.0 : Tue Mar 20 2007 - 12:19:38 EDT