Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2011-03-28 00:37:56 +0000
committerSergey Prigogin2011-03-28 00:37:56 +0000
commit69c80b5390fc3d40ef21afec9dd62fcc2ce98672 (patch)
treebbc95ad3e473a003ea536199cbc0765e4051b8e4
parent32d0894ce10606f4379a65fac104b168329c8473 (diff)
downloadorg.eclipse.cdt-69c80b5390fc3d40ef21afec9dd62fcc2ce98672.tar.gz
org.eclipse.cdt-69c80b5390fc3d40ef21afec9dd62fcc2ce98672.tar.xz
org.eclipse.cdt-69c80b5390fc3d40ef21afec9dd62fcc2ce98672.zip
Simplified example code.
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/formatter/LineWrappingTabPage.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/formatter/LineWrappingTabPage.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/formatter/LineWrappingTabPage.java
index 0a18ce67d56..186e7872da9 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/formatter/LineWrappingTabPage.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/formatter/LineWrappingTabPage.java
@@ -469,12 +469,12 @@ public class LineWrappingTabPage extends FormatterTabPage {
private final Category fBinaryExpressionCategory= new Category(
DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_BINARY_EXPRESSION,
- "class Example : AnotherClass {" + //$NON-NLS-1$
"int foo() {" + //$NON-NLS-1$
" int sum= 100 + 200 + 300 + 400 + 500 + 600 + 700 + 800;" + //$NON-NLS-1$
" int product= 1 * 2 * 3 * 4 * 5 * 6 * 7 * 8 * 9 * 10;" + //$NON-NLS-1$
" bool val= true && false && true && false && true;" + //$NON-NLS-1$
- " return product / sum;}}", //$NON-NLS-1$
+ " return product / sum;" + //$NON-NLS-1$
+ "}", //$NON-NLS-1$
FormatterMessages.LineWrappingTabPage_binary_exprs,
FormatterMessages.LineWrappingTabPage_binary_exprs_lowercase
);

Back to the top