Clarification: You need to press Esc to exit the template mode before
changing the one letter to uppercase, otherwise the variable_name
gets capitalized everywhere in the template.
On Mar 20, 2007, at 8:51 AM, Kieran Kelleher wrote:
> Solution: I think I will use my editor template .... no context-
> menu navigation and I just land the cursor in the right place to
> fix the one lowercase letter in 'set' to capital.... actually if
> you try this template, to my surprise, Eclipse automagically
> selects the lowercase letter for me! Try it!
>
> protected ${return_type} _${variable_name};
>
> /**..eturn ${what} */
> public ${return_type} ${variable_name}() {
> return _${variable_name};
> }
>
> /** param ${variable_name} ${what} */
> public void set${cursor}${variable_name}(${return_type} $
> {variable_name}){
> _${variable_name} = ${variable_name};
> }
>
>
>
> On Mar 20, 2007, at 7: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.
>>
>> 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:
>>>
>
This archive was generated by hypermail 2.0.0 : Tue Mar 20 2007 - 09:33:52 EDT