i have inteface
interface Foo {
int getId();
void setName(String name);
}
i type "alt+enter" on interface name and click "implement inrterface" command
then i've got
public class FooImpl implements Foo {
public int getId() {
return 0;
}
public void setName(String name) {
}
}
and now it's hard to convert this methods to private fields with getters and setters
it would be great to have option in "Implement Inteface" dialog:
"try to reproduce fields for getters and setters"
with this option checked i'd get
public class FooImpl implements Foo {
private int id;
private String name;
public int getId() {
return id;
}
public void setName(String name) {
this.name = name;
}
}
see: http://www.intellij.net/forums/thread.jspa?messageID=5186253&