void () { init("abcd", PlainTextFileType.INSTANCE); EditorEx editor = (EditorEx)getEditor(); CaretModel caretModel = editor.getCaretModel(); caretModel.moveToOffset(1); executeAction("EditorToggleStickySelection"); caretModel.moveToOffset(3); assertEquals("bc", editor.getSelectionModel().getSelectedText()); executeAction("EditorCut"); checkResultByText("ad"); }