List of usage examples for com.intellij.openapi.actionSystem IdeActions ACTION_EDITOR_COMPLETE_STATEMENT
String ACTION_EDITOR_COMPLETE_STATEMENT
To view the source code for com.intellij.openapi.actionSystem IdeActions ACTION_EDITOR_COMPLETE_STATEMENT.
Click Source Link
From source file:com.goide.editor.GoSmartEnterTest.java
License:Apache License
private void doTest() { myFixture.configureByFile(getTestName(true) + ".go"); myFixture.performEditorAction(IdeActions.ACTION_EDITOR_COMPLETE_STATEMENT); myFixture.checkResultByFile(getTestName(true) + "-after.go"); }
From source file:com.intellij.codeInsight.CompleteStatementTest.java
License:Apache License
@Override protected String getActionId() { return IdeActions.ACTION_EDITOR_COMPLETE_STATEMENT; }
From source file:com.intellij.testFramework.EditorTestUtil.java
License:Apache License
public static void performTypingAction(Editor editor, char c) { EditorActionManager actionManager = EditorActionManager.getInstance(); if (c == BACKSPACE_FAKE_CHAR) { EditorActionHandler actionHandler = actionManager.getActionHandler(IdeActions.ACTION_EDITOR_BACKSPACE); actionHandler.execute(editor, DataManager.getInstance().getDataContext()); } else if (c == SMART_ENTER_FAKE_CHAR) { EditorActionHandler actionHandler = actionManager .getActionHandler(IdeActions.ACTION_EDITOR_COMPLETE_STATEMENT); actionHandler.execute(editor, DataManager.getInstance().getDataContext()); } else if (c == SMART_LINE_SPLIT_CHAR) { EditorActionHandler actionHandler = actionManager.getActionHandler(IdeActions.ACTION_EDITOR_SPLIT); actionHandler.execute(editor, DataManager.getInstance().getDataContext()); } else if (c == '\n') { EditorActionHandler actionHandler = actionManager.getActionHandler(IdeActions.ACTION_EDITOR_ENTER); actionHandler.execute(editor, DataManager.getInstance().getDataContext()); } else {//from w w w. j a v a 2 s .c om TypedAction action = actionManager.getTypedAction(); action.actionPerformed(editor, c, DataManager.getInstance().getDataContext()); } }