Eclipse 4.5 Java Formatter changed

Today I upgraded Eclipse to version 4.5. Since then, it has been formed in different ways:

Before:

@Override public void close() { try { engine.closeSession(session); status = NOT_CONNECTED; } catch (final OpenpagesException e) { log.error("Closing connection failed", e); } } 

Now:

 @Override public void close() { try { engine.closeSession(session); status = NOT_CONNECTED; } catch (final OpenpagesException e) { log.error("Closing connection failed", e); } } 

This also happens for: switch, for, if and others ...
It seems that the first level of indentation inside the method body is broken.
I looked at the formatting options, but did not see what might be responsible for this.

Is this a mistake, or is there a setting?

Update: 07/01/2015
This only happens if the tab size is set to 2, if it is set to 4, everything looks fine except for the empty area ...

Bypass In the formatting settings, switch from the tab to mixed only.
Then add 2 for the indent size and 2 for the tab size.
Switch back to the tabs and apply everything.
Formatting now works the same as in version 4.4, and uses 2 for the tab, not 4.

+5
source share
1 answer

Bypass

In the formatting settings, switch from the tab to mixed only. Then add 2 for the indent size and 2 for the tab size. Set the switch only on the tabs and apply everything. Formatting now works the same as in version 4.4, and uses 2 for the tab, not 4.

+1
source

All Articles