Search in sources :

Example 1 with TextDocumentChangeToString

use of org.eclipse.xtext.ide.serializer.debug.TextDocumentChangeToString in project xtext-core by eclipse.

the class ChangeSerializerTestHelper method operator_tripleEquals.

public void operator_tripleEquals(Collection<IEmfResourceChange> actual, CharSequence expected) {
    String actualString = new TextDocumentChangeToString().add(actual).toString();
    Assert.assertEquals(Strings.toPlatformLineSeparator(expected).trim(), Strings.toPlatformLineSeparator(actualString).trim());
}
Also used : TextDocumentChangeToString(org.eclipse.xtext.ide.serializer.debug.TextDocumentChangeToString) TextRegionAccessToString(org.eclipse.xtext.formatting2.debug.TextRegionAccessToString) TextDocumentChangeToString(org.eclipse.xtext.ide.serializer.debug.TextDocumentChangeToString)

Example 2 with TextDocumentChangeToString

use of org.eclipse.xtext.ide.serializer.debug.TextDocumentChangeToString in project xtext-core by eclipse.

the class ImportTestHelper method operator_tripleEquals.

public void operator_tripleEquals(Collection<IEmfResourceChange> actual, CharSequence expected) {
    String actualString = new TextDocumentChangeToString().add(actual).toString();
    Assert.assertEquals(Strings.toPlatformLineSeparator(expected).trim(), Strings.toPlatformLineSeparator(actualString).trim());
}
Also used : TextDocumentChangeToString(org.eclipse.xtext.ide.serializer.debug.TextDocumentChangeToString) TextRegionAccessToString(org.eclipse.xtext.formatting2.debug.TextRegionAccessToString) TextDocumentChangeToString(org.eclipse.xtext.ide.serializer.debug.TextDocumentChangeToString)

Aggregations

TextRegionAccessToString (org.eclipse.xtext.formatting2.debug.TextRegionAccessToString)2 TextDocumentChangeToString (org.eclipse.xtext.ide.serializer.debug.TextDocumentChangeToString)2