6465666768697071
editor.setDocument(document); LineInfo lineInfo = document.getLineFinder().findLine(line); editor.getSelection().setSelection(lineInfo, column, lineInfo, column); editor.getInput().processSignalEvent(TestCutPasteEvent.create(null)); assertEquals(expected, document.asText()); } }
6869707172737475
selection.setSelection(lineInfo, 1, lineInfo, 4); AnchorUtils.setTextBetweenAnchors( "bugaga", topAnchor, bottomAnchor, editor.getEditorDocumentMutator()); assertEquals("qwerty\nbugaga\nzxcvbn\n", doc.asText()); } }