Package com.intellij.openapi.editor.actionSystem

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


        editor.getCaretModel().moveToOffset(document.getLineEndOffset(line));
        pressEnter(editor);
    }

    public static void pressEnter(Editor editor) {
        EditorActionManager manager = EditorActionManager.getInstance();
        EditorActionHandler enterHandler = manager.getActionHandler(IdeActions.ACTION_EDITOR_START_NEW_LINE);
        DataContext dc = DataManager.getInstance().getDataContext(editor.getContentComponent());
        enterHandler.execute(editor, editor.getCaretModel().getCurrentCaret(), dc);
    }
View Full Code Here


      myEditor = ((EditorWindow)myEditor).getDelegate();
      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

    for (char c : s.toCharArray()) {
      type(c);
    }
  }
  protected static void backspace() {
    EditorActionManager actionManager = EditorActionManager.getInstance();
    EditorActionHandler actionHandler = actionManager.getActionHandler(IdeActions.ACTION_EDITOR_BACKSPACE);

    actionHandler.execute(getEditor(), DataManager.getInstance().getDataContext());
  }
View Full Code Here

TOP

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

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.