Community
Participate
Working Groups
Build ID: I20080502-0100 Steps To Reproduce: right click, source -> generate constructor using fields More information: This is probably not so much a bug but a new annoying feature. Previously generating constructors or get(/set)ers generated everything in the order of field declaration. Now it sorts it, which can be quite annoying if you know the logical flow of the fields. Esp. when you have a lot of fields. Can there be an option on the field selection window to generate in declaration order vs alphabetical? maybe even add some other sort options I dunno! Thanks
Source -> generate constructor using fields: You can define the order of the constructor arguments with 'Up' 'Down' in the dialog Getter/Setter always sorts in the order of the field. I just tried that. Reopen if that isn't good enough.
First I must appologise for not first checking the get(set)ers. With regards to contructers however; When you have 20 or more fields it becomes extremely tedious to use the (up, down) to order them. A simple checkbox on the 'Generate Consturctor using Fields' panel or an additional 'unsorted' version on the Source sub-menu would really make life a lot easier (when instantiating the class anyway.) I hope you will reconsider, but I won't hold it against you if you don't :) Regards Daniel Young
*** This bug has been marked as a duplicate of bug 215161 ***