use of com.intellij.openapi.editor.ex.DocumentEx in project intellij-community by JetBrains.
the class RangeMarkerTest method testE2.
public void testE2() {
DocumentEx document = (DocumentEx) EditorFactory.getInstance().createDocument(StringUtil.repeatSymbol(' ', 10));
List<RangeMarker> mm = add(document, 0, 3, 6, 9, 8, 8);
edit(document, 0, 3, 0);
delete(mm, 0);
}
use of com.intellij.openapi.editor.ex.DocumentEx in project intellij-community by JetBrains.
the class RangeMarkerTest method testMoveText2.
public void testMoveText2() throws Exception {
RangeMarkerEx marker1 = createMarker(StringUtil.repeat(" ", 100), 0, 0);
DocumentEx document = (DocumentEx) marker1.getDocument();
RangeMarker marker2 = document.createRangeMarker(49, 49);
document.moveText(0, 1, 49);
marker1.dispose();
marker2.dispose();
}
use of com.intellij.openapi.editor.ex.DocumentEx in project intellij-community by JetBrains.
the class RangeMarkerTest method testX2.
public void testX2() {
DocumentEx document = (DocumentEx) EditorFactory.getInstance().createDocument(StringUtil.repeatSymbol(' ', 10));
List<RangeMarker> mm = add(document, 2, 9, 0, 0, 7, 7);
delete(mm, 0);
}
use of com.intellij.openapi.editor.ex.DocumentEx in project intellij-community by JetBrains.
the class RangeMarkerTest method testE12.
public void testE12() {
DocumentEx document = (DocumentEx) EditorFactory.getInstance().createDocument(StringUtil.repeatSymbol(' ', 10));
List<RangeMarker> mm = add(document, 3, 3, 8, 8, 5, 5, 5, 6);
edit(document, 2, 0, 2);
delete(mm, 2);
}
use of com.intellij.openapi.editor.ex.DocumentEx in project intellij-community by JetBrains.
the class RangeMarkerTest method testE4.
public void testE4() {
DocumentEx document = (DocumentEx) EditorFactory.getInstance().createDocument(StringUtil.repeatSymbol(' ', 10));
List<RangeMarker> mm = add(document, 3, 5, 5, 6, 4, 8, 6, 9, 8, 9);
edit(document, 6, 0, 0, 3, 0, 2);
delete(mm, 1, 0);
}
Aggregations