Java Code Examples for org.eclipse.xtext.util.Strings#trimTrailingLineBreak()
The following examples show how to use
org.eclipse.xtext.util.Strings#trimTrailingLineBreak() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FormatterTester.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
protected void fail(CharSequence error, CharSequence document) { StringBuilder builder = new StringBuilder(Strings.trimTrailingLineBreak(error)); if (document != null) { builder.append("\n----------------------------------------------------------\n"); builder.append(Strings.trimTrailingLineBreak(document)); builder.append("\n----------------------------------------------------------"); } String msg = builder.toString(); System.err.println(msg); Assert.fail(msg); }
Example 2
Source File: FormatterTester.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
protected void fail(CharSequence error, CharSequence document) { StringBuilder builder = new StringBuilder(Strings.trimTrailingLineBreak(error)); if (document != null) { builder.append("\n----------------------------------------------------------\n"); builder.append(Strings.trimTrailingLineBreak(document)); builder.append("\n----------------------------------------------------------"); } String msg = builder.toString(); System.err.println(msg); Assert.fail(msg); }
Example 3
Source File: FormatterTestHelper.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
protected void fail(CharSequence error, CharSequence document) { StringBuilder builder = new StringBuilder(Strings.trimTrailingLineBreak(error)); if (document != null) { builder.append("\n----------------------------------------------------------\n"); builder.append(Strings.trimTrailingLineBreak(document)); builder.append("\n----------------------------------------------------------"); } String msg = builder.toString(); System.err.println(msg); Assert.fail(msg); }
Example 4
Source File: CompilationUnitImpl.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
protected CharSequence trimTrailingLinebreak(final CharSequence sequence, final EObject context) { return Strings.trimTrailingLineBreak(sequence); }