X

Geertjan's Blog

  • August 4, 2016

Interface-Driven Java Formatter

Geertjan Wielenga
Product Manager

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:

https://github.com/GeertjanWielenga/InterfaceDrivenJavaFormatter.git

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! 

Join the discussion

Comments ( 2 )
  • Rahul khandelwal Monday, August 8, 2016

    Hi Geertjan, The editor font in both images is looking awesome. Could you tell me which font is this ?


  • guest Monday, August 8, 2016

    Sir, I am a begginer at JAVA learning. I am interested at Android Progaam developing. From where i can start, though i have already been started to do study through video tutorials and books.

    Shamim

    Bangladesh


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.