The Clean Code Method Sorter is a lightweight plugin for the Eclipse Platform. It sorts Java methods to improve the readability of your source code following the newspaper metaphor (conceived by Robert C. Martin):
A class should be readable like a newspaper, starting with the most important methods, followed by methods which are invoked later in the execution flow.
The plugin lets you sort using the following criteria:
- invocation order
- access level
- method name (aka overloaded method)
- being accessor/mutator of the same field (aka getter and setters)
To install, please add this update site to your Eclipse. (Note that this link will not show any content in your browser.)
For further information on usage, please refer to the manual at eclipse.org.