How to use different line wrapping for strings and other items in Eclipse for Java

Use the on/off tags to disable Eclipse's code formatter for specific blocks of code. This forces you to format the code yourself, but it at least gives you total control over how the code looks.

//@formatter:off
String message = "Would you like to use line wrapping at " + position +
                 " ? If you want to keep that behavior press Enter."
//@formatter:on

The on/off features have to be turned "ON". In Eclipse preferences: Java > Code Style > Formatter. Click on "Edit" button, "Off/On Tags", check off "Enable Off/On tags"