This contains a formatter configuration as well as a cleanup configuration. Please apply both to each commit. Also, please review all changes that are applied by the cleanup operation. The code cleanup will also organize the imports and apply the code formatter.
Import these preferences into Eclipse via the menu:
File > Import... > General > Preferences
You can apply the code formatter via the menu:
Source > Format
or via the shortcut:
CTRL + SHIFT + F
You can apply the code cleanup via the menu:
Source > Clean up...