Or, just press <return> key at the end of the ${what} comment
variable and then Eclipse exits template mode and the cursor jumps to
select the lowercase letter that needs to be changed ..... done.
On Mar 20, 2007, at 9:33 AM, Kieran Kelleher wrote:
> 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};
>> }
>>
This archive was generated by hypermail 2.0.0 : Tue Mar 20 2007 - 10:26:56 EDT