Today at JCrete, Dan North and others suggested a really cool feature—the ability to format a Java source file based on the interfaces that the Java source file is implementing. The "Ordering" formatting options for Java source files in NetBeans IDE are quite detailed by default:
However, the new interface-driven formatting options, which I am implementing in a new tab (since the tab above is pretty full and can't be extended externally via a plugin anyway), enable the interfaces of the implementing class to determine the ordering of class members:
Here's Dan's notes on the above options:
Here's the code providing the GUI above, as well as the registration-related code for plugging the GUI into NetBeans IDE:
Now "all" that needs to be done is implement the logic behind the above GUI. Anyone is welcome to join in with this cool JCrete-driven feature!