Assuming you have defined a simple JavaBean with several properties and their respective getters and setters.
- Right click in a Java file and select the "Insert Code..." menu item.
- In the "Generate" popup menu, select "equals() and hashCode()..." menu item.
- The "Generate equals() and hashCode()" dialog opens.
It would be nice if there was a quick way to select all the properties at once as opposed to selecting them one at a time. Especially if your JavaBean has several
properties you would like to include in these overridden methods. "Generate Getters" and "Generate Setters" dialogs already have the ability to select all the
properties... perhaps the same solution can be used in the Generate dialog.
Good Idea, targeting 6.7.
What about this?
We are now at 7.2 and still no "select all"/"deselect all" button exists there.
It is more natural that if class does not have equals() or hashCode() methods then all class properties are selected to be included in these methods by default.
This needs to be fixed.
When dealing with pojos containing 50+ fields (it exists, try to work for a bank), how did the inventor of the hashcode/equals generation could expect a human being to click on 100 check boxes?
It simply makes no sense.
I have been a great NB fan since a long time, but please, launch eclipse from time to time and get inspired...
Thanks a lot