I'm trying to write an Eclipse template which will create getters and setters when I create an attribute. My current template works, except for the camel casing for the getters and setters.

private ${type} ${field};

private ${type} get${field}() {return ${field};}

private void set${field}(${type} ${field}) {this.${field} = ${field};}

Any tricks to do so? I am aware that Eclipse can generate the getters and setters for me, but #1: it's menu driven (slow), #2: it's not in the format I want.

Thanks!

Edit
Report