This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | [70cat] Generate Getters and Setters should respect properties order | ||
---|---|---|---|
Product: | java | Reporter: | Michel Graciano <hmichel> |
Component: | Editor | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | jkovalsky, misterm |
Priority: | P3 | Keywords: | NETFIX |
Version: | 7.0 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: | Simple patch |
Description
Michel Graciano
2010-11-18 13:32:29 UTC
It looks to me a really good candidate for NetFIX[1] program. Any objection from you in review a future patch? [1] http://wiki.netbeans.org/NetFIX Created attachment 103198 [details]
Simple patch
I've made a little change which make it works as expected when generating the code but now it affects the UI too. The fields are shown now in the same order they are declared and will have their methods created. It will reflects as well for toString generation.
Dusane, can you please review & integrate the patch if you think it's okay? Thanks! I don't think the patch is OK - elements (methods, fields) should stay sorted alphabetically in the UI IMHO (otherwise, e.g. finding a proper method to override from the JTextComponent becomes quite difficult). Comment on attachment 103198 [details]
Simple patch
No problem. I will work more on it soon. Thanks.
Looks like the latest redesign of code generation has fixed it. Thanks guys. v. Build 20120328-c92916a691a0 |