views:

84

answers:

1

This should be easy to answer:

I have Eclipse set to wrap Java code over 80 chars to respect my margin.

This code never wraps:

    if (expressionItem.type.isTypeCompatibleWith(containingNameLink.type) == false) {
      reportParsingError("expression type incompatible with containing "
          + "context.");
    }

Question: how do I set my code formatter preferences so that the margin is respected?

+1  A: 

Did you press CTRL + SHIFT + F (or right click > source > format) ? Here it works fine. The code is not automatically formatted as you type, you need to tell eclipse to format it.

Bozho
Yes, I did. Thanks.
Maroloccio
You did, and it didn't work? With which version of eclipse?
Bozho
I did, and it did not work. Eclipse version: Galileo 3.5.1; Build id: M20090917-0800.
Maroloccio