Skip to content

It provides techniques to sort methods in Java-classes, aiming to increase the readability of the source code.

License

Notifications You must be signed in to change notification settings

tlcsdm/eclipse-method-sorter

Repository files navigation

Java Method Sorter

This plugin provides techniques to sort methods in Java-classes, aiming to increase the readability of the source code.

Now Support Eclipse 2024-06 and later, Mac OS X, Linux (with nautilus) and Windows.

Use

  • To sort methods in the active Java editor: open a Java source file and choose Source → Sort Methods... from the main menu (or right-click in the editor and use the Source context menu).
  • To sort multiple items at once: select one or more compilation units, a package, or a project in the Package Explorer (or Project Explorer), then run Source → Sort Methods... — the plugin will process the selected elements recursively.
  • Preferences: configure behavior in Window → Preferences → Java Method Sorter.

demo

pref

History

Fork of Clean-Code-Method-Sorter on Github.

Build

This project uses Tycho with Maven to build. It requires Maven 3.9.0 or higher version.

Dev build:

mvn clean verify

Release build:

mvn clean org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=2.0.0 verify

Install

  1. Add https://raw.githubusercontent.com/tlcsdm/eclipse-method-sorter/update_site/ as the upgrade location in Eclipse.
  2. Download from Jenkins
  3. ← Drag it to your eclipse workbench to install! (I recommand Main Toolbar as Drop Target)

About

It provides techniques to sort methods in Java-classes, aiming to increase the readability of the source code.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages