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 144540 - [65cat] support "sorting rules" for code formatting
Summary: [65cat] support "sorting rules" for code formatting
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: Other Other
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-20 09:38 UTC by kawazu428
Modified: 2013-09-02 14:22 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kawazu428 2008-08-20 09:38:49 UTC
[ JDK VERSION : 1.6.0_07 ]

In some of the project we're into, requirement is that code in .java
files be sorted like this:

[...]
public class Foo {

	// field declarations
	private String whatever1;
	private String whatever2;
	...

	// getters+setters
	public String getWhatever1()
	{...}

	//public methods
	public StringdoSomething1()
	{...}

	//private (helper) methods
	private void doSomethingElse()
	{...}

	//inner class declarations
	private class SubFoo{
	...
	}
}
[...]

Having a way how to define this to be automatically done by the IDE
via "Source" -> "Format" while editing a .java file would drastically
decrease the time spent on manually editing source codes and moving
code blocks around in those situations.