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.
|Product:||java||Reporter:||Ralph Ruijs <ralphbenjamin>|
|Component:||Editor||Assignee:||Dusan Balek <dbalek>|
|Issue Type:||ENHANCEMENT||Exception Reporter:|
Description Ralph Ruijs 2012-05-15 12:42:24 UTC
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.
Comment 1 Dusan Balek 2012-08-15 08:47:20 UTC
Organize Members action and hint added. http://hg.netbeans.org/jet-main/rev/5f9d47c0b34f
Comment 2 Quality Engineering 2012-08-21 15:08:45 UTC
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 <email@example.com> Log: Issue #212528: Organize members feature added.
Comment 3 markiewb 2012-09-05 17:36:40 UTC
*** Bug 28294 has been marked as a duplicate of this bug. ***
Comment 4 _ gtzabari 2012-09-05 18:22:57 UTC
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.
Comment 5 Dusan Balek 2012-09-06 07:21:14 UTC
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
Comment 6 _ gtzabari 2012-09-06 13:54:19 UTC
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.