void () { RangeMarkerEx marker1 = createMarker(StringUtil.repeatSymbol(' ', 10), 3,6); DocumentEx document = (DocumentEx)marker1.getDocument(); document.createRangeMarker(2, 3); document.createRangeMarker(3, 8); document.createRangeMarker(7, 9); RangeMarkerEx r1 = (RangeMarkerEx)document.createRangeMarker(6, 8); r1.dispose(); marker1.dispose(); }