use of com.intellij.openapi.editor.actionSystem.EditorActionHandler in project intellij-plugins by JetBrains.
the class HbActionHandlerTest method doEnterTest.
/**
* Call this method to test behavior when Enter is typed.
* See class documentation for more info: {@link HbActionHandlerTest}
*/
protected void doEnterTest(@NotNull String before, @NotNull String expected) {
final EditorActionHandler enterActionHandler = EditorActionManager.getInstance().getActionHandler(IdeActions.ACTION_EDITOR_ENTER);
doExecuteActionTest(before, expected, () -> enterActionHandler.execute(myFixture.getEditor(), ((EditorEx) myFixture.getEditor()).getDataContext()));
}
Aggregations