Search in sources :

Example 6 with TextRegionsToString

use of org.eclipse.xtext.formatting2.debug.TextRegionsToString in project xtext-core by eclipse.

the class TextSegmentSet method toString.

@Override
public String toString() {
    TextRegionsToString toString = new TextRegionsToString();
    toString.setTitle(getClass().getSimpleName());
    for (T t : this) toString.add(getRegion(t), getTitle(t));
    return toString.toString();
}
Also used : TextRegionsToString(org.eclipse.xtext.formatting2.debug.TextRegionsToString)

Aggregations

TextRegionsToString (org.eclipse.xtext.formatting2.debug.TextRegionsToString)6 TextRegionAccessToString (org.eclipse.xtext.formatting2.debug.TextRegionAccessToString)2 ITextReplacer (org.eclipse.xtext.formatting2.ITextReplacer)1 IHiddenRegion (org.eclipse.xtext.formatting2.regionaccess.IHiddenRegion)1 ITextReplacement (org.eclipse.xtext.formatting2.regionaccess.ITextReplacement)1 ITextSegment (org.eclipse.xtext.formatting2.regionaccess.ITextSegment)1 IEmfResourceChange (org.eclipse.xtext.ide.serializer.IEmfResourceChange)1 ITextDocumentChange (org.eclipse.xtext.ide.serializer.ITextDocumentChange)1 ITextRegion (org.eclipse.xtext.util.ITextRegion)1 Before (org.junit.Before)1