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.

Bug 223702

Summary: "Organize Members" should be available as "On Save" action
Product: java Reporter: markiewb
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: chrizzly, machinegodzilla
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description markiewb 2012-12-12 09:14:12 UTC
[ JDK VERSION : 1.7.0_09 ]

EXPECTED: The hint "Organize Members" should also be available as an options
for  the "On Save" action (Tools>Options>Editor>On Save>Java). So when saving
is called.
Comment 1 markiewb 2013-05-22 07:19:59 UTC
@Dusan: Recently you fixed https://netbeans.org/bugzilla/show_bug.cgi?id=28294 for 7.4, so it would be very useful that this corresponding issue will be fixed too.

So it would be easier for eclipse switchers to use NB and they still have their "killer feature" they are used to have in eclipse.
Comment 2 mihai.chintoanu 2015-05-08 11:41:14 UTC
I think this is an important feature. Our team's coding conventions require us to order members by visibility and then alphabetically. It's not hard to follow the rule when defining a member, but a problem arises then a member's visibility or name changes, because then you have to move it to its correct location inside the class, and it's tedious to do that manually every time, or before each save. It should really be an action on save.

Developers should concentrate on writing code, not waste time with trivial things like this, and the IDE should really help them achieve this.
Comment 3 markiewb 2015-05-08 13:15:53 UTC
@mihai.chintoanu@netbeans.org: Please do not change the version. This field states the first version, when the bug/rfe has been reported.

Reverting version back to 7.3
Comment 4 Christian Lenz 2016-11-11 21:31:40 UTC
I know this should be implemented into the core but maybe it could be possible to have this feature in your Eclipse formatter plugin?