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.
It would be great if there would be a feature to organize the members of a class, following the configuration specified by Editor->Formatting->Java->Code Generation.
Organize Members action and hint added. http://hg.netbeans.org/jet-main/rev/5f9d47c0b34f
Integrated into 'main-golden', will be available in build *201208211308* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/5f9d47c0b34f User: Dusan Balek <dbalek@netbeans.org> Log: Issue #212528: Organize members feature added.
*** Bug 28294 has been marked as a duplicate of this bug. ***
Dusan, I tried build 201209050001 but couldn't figure out how to use this feature. 1. How do you specify the sort order of members? 2. How do you tell Netbeans to sort them? I couldn't find the editor hint.
ad 1) Tools -> Options -> Editor -> Formatting -> Java -> Code Generation ad 2) Source -> Organize Members sorts members of the class under caret. Editor hint is disabled by default. It can be enabled via Tools -> Options -> Editor -> Hints -> Java -> Class Structure
Bug 28294 was closed as a duplicate of this issue, but I believe you're missing the requested functionality. I asked to be able to sort members by name and/or group getters/setters together. I tested the feature and it doesn't seem to support this.
You are right - Bug 28294 is not a duplicate of this issue.