Use the good source code formatter
You can define it by following these steps :
- go to Window -> Preferences, then select Java -> Code Style -> Formatter:

- click on "Import", and select the file "eclipse_formatter.xml" from the svn repository : https://svn.petalslink.com/svnroot/trunk/product/dev/prod/petals/dev-tools/petals-checkstyle-rules/src/main/resources/eclipse/eclipse_formatter.xml
- click on "Apply" to save.