I have fields defined like this:
private String type;
private int age;
private String city;
So, when the getters/setters are generated, they should be generated in the order above, instead of alphabetically.
Or, there should be an option in the Options window for setting the order in which getters/setters should be generated -- either alphabetically or as defined by the field order.
I think the generate getter/setter window that shows checkboxes beside fields should also have a way for me to change the order (up/down arrows). It should default to the order the fields were defined, but could also have a way to sort alphabetically? It could also let you choose if you want to group your getters/setters or not. The eclipse dialog for generating getters/setters has a lot more functionality than the NetBeans one.
This is about generate getter and setter in editor
Since NB7.1 is already feature frozen, marking as an enhancement for the next release.
Integrated into 'main-golden', will be available in build *201202220400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Dusan Balek <email@example.com>
Log: Issues #200938, #201601: Customizable order of generated class members - fixed.
Fixed together with #200938