use of com.intellij.testFramework.EditorTestUtil.CaretAndSelectionState in project intellij by bazelbuild.
the class EditorTestHelper method assertCaretPosition.
public void assertCaretPosition(Editor editor, int lineNumber, int columnNumber) {
CaretInfo info = new CaretInfo(new LogicalPosition(lineNumber, columnNumber), null);
EditorTestUtil.verifyCaretAndSelectionState(editor, new CaretAndSelectionState(ImmutableList.of(info), null));
}
use of com.intellij.testFramework.EditorTestUtil.CaretAndSelectionState in project intellij by bazelbuild.
the class EditorTestHelper method setCaretPosition.
public void setCaretPosition(Editor editor, int lineNumber, int columnNumber) throws Throwable {
final CaretInfo info = new CaretInfo(new LogicalPosition(lineNumber, columnNumber), null);
EdtTestUtil.runInEdtAndWait(() -> EditorTestUtil.setCaretsAndSelection(editor, new CaretAndSelectionState(ImmutableList.of(info), null)));
}
Aggregations