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