Custom eclipse template to make setter return this object?

I need to custom eclipse setter template to return this object, like this

public Person setName(String name){
    this.name=name;
    return this;
}

but Java->Code Style->Templates only allow me to custom setter body part, not method definition. Is there any way to do it?

11
задан secmask 11 February 2011 в 04:22
поделиться