Community
Participate
Working Groups
I am using Eclipse 3.0.2 I have the following declaration in an Exception class: static private final String DEFAULT_MESSAGE = "An unknown problem occurred during synchronization."; The line without formatting is 101 characters long. I cannot find a setting that enables Eclipse to break this statement in a logical way. Certainly, the default values don't work. Even if I manualy break the statement at the "=" sign, subsequent calls to the format revert the line to the original 101 character length. Note: For really long strings that are declared this way (i.e. as static finals), it would be really nice if I could enable a "string breaking" property that would allow the Eclipse formatter to rewrite the whole line as: static private final String DEFAULT_MESSAGE = "An unknown problem occurred" + " during synchronization."; This would then allow the formatter to find more logical break points for the expression as a whole.
*** Bug 131013 has been marked as a duplicate of this bug. ***
Ownership has changed for the formatter, but I surely will not have enough time to fix your bug during the 3.5 development process, hence set its priority to P5. Please provide a patch if you definitely need the bug to be fixed in this version and I'll have a look at it... TIA
Your example seems to be correctly formatted in Indigo Service Release 1, Build ID 20110916-0149. This bug should probably be closed.
*** This bug has been marked as a duplicate of bug 71766 ***
Verified for 4.8 M5 using I20180123-2000 build