Package com.intellij.openapi.editor.actionSystem

Examples of com.intellij.openapi.editor.actionSystem.TypedAction


  /**
   * Call this method to test behavior when the given charToType is typed at the <caret>.
   * See class documentation for more info: {@link HbActionHandlerTest}
   */
  void doCharTest(final char charToType, @NotNull String before, @NotNull String expected) {
    final TypedAction typedAction = EditorActionManager.getInstance().getTypedAction();
    doExecuteActionTest(before, expected, new Runnable() {
      @Override
      public void run() {
        typedAction.actionPerformed(myFixture.getEditor(), charToType, ((EditorEx)myFixture.getEditor()).getDataContext());
      }
    });
  }
View Full Code Here


  /**
   * Call this method to test behavior when the given charToType is typed at the <caret>.
   * See class documentation for more info: {@link HbActionHandlerTest}
   */
  void doCharTest(final char charToType, @NotNull String before, @NotNull String expected) {
    final TypedAction typedAction = EditorActionManager.getInstance().getTypedAction();
    doExecuteActionTest(before, expected, new Runnable() {
      @Override
      public void run() {
        typedAction.actionPerformed(myFixture.getEditor(), charToType, ((EditorEx)myFixture.getEditor()).getDataContext());
      }
    });
  }
View Full Code Here

      myVFile = myFile.getVirtualFile();
    }
  }
  protected static void type(char c) {
    EditorActionManager actionManager = EditorActionManager.getInstance();
    TypedAction action = actionManager.getTypedAction();
    action.actionPerformed(getEditor(), c, DataManager.getInstance().getDataContext());
  }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.editor.actionSystem.TypedAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.