Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Code formatter does not work like in Luna
Code formatter does not work like in Luna [message #1701821] Wed, 15 July 2015 23:33 Go to next message
Eclipse UserFriend
I am using this code formatter: https://github.com/libgdx/libgdx/blob/master/eclipse-formatter.xml

It seems to be broken in Mars. It's not that you can't import it, but it behaves differently from Luna. The major aspect that I have noticed is that while in Luna the following code looks like this:

		removeButton.addListener(new ClickListener() {
			@Override
			public void clicked (InputEvent event, float x, float y) {
				editor.remove();
			}
		});

in Mars it looks like this:

		removeButton.addListener(new ClickListener() {
			@Override
			public void clicked (InputEvent event, float x, float y) {
			editor.remove();
			}
		});

Although this might seem minor just looking at it like this, the difference ruins commits because of how many places this change occurs. I haven't been able to find the setting to change it back, in Mars, to the way it works in Luna. Just for extra clarification, I am importing the exact same formatter to Luna and Mars, getting those respective results.
Re: Code formatter does not work like in Luna [message #1701848 is a reply to message #1701821] Thu, 16 July 2015 04:22 Go to previous messageGo to next message
Eclipse UserFriend
I'm not allowed to use links, so please visit stackoverflow and open /questions/31073603/eclipse-4-5-java-formatter-changed

A workaround is described.
Re: Code formatter does not work like in Luna [message #1701904 is a reply to message #1701848] Thu, 16 July 2015 10:53 Go to previous message
Eclipse UserFriend
Thanks, it worked!
Previous Topic:Eclipse Mars: Java Development unacceptable
Next Topic:Mars crashing with gc overhead limit problems and strange errors
Goto Forum:
  


Current Time: Wed Apr 30 04:25:36 EDT 2025

Powered by FUDForum. Page generated in 0.25178 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top