Example usage for com.intellij.openapi.actionSystem IdeActions ACTION_EDITOR_PASTE

List of usage examples for com.intellij.openapi.actionSystem IdeActions ACTION_EDITOR_PASTE

Introduction

In this page you can find the example usage for com.intellij.openapi.actionSystem IdeActions ACTION_EDITOR_PASTE.

Prototype

String ACTION_EDITOR_PASTE

To view the source code for com.intellij.openapi.actionSystem IdeActions ACTION_EDITOR_PASTE.

Click Source Link

Usage

From source file:com.intellij.execution.impl.ConsoleViewImpl.java

License:Apache License

private void registerConsoleEditorActions() {
    HyperlinkNavigationAction hyperlinkNavigationAction = new HyperlinkNavigationAction();
    hyperlinkNavigationAction.registerCustomShortcutSet(CommonShortcuts.ENTER, myEditor.getContentComponent());
    registerActionHandler(myEditor, IdeActions.ACTION_GOTO_DECLARATION, hyperlinkNavigationAction);

    if (!myIsViewer) {
        new EnterHandler().registerCustomShortcutSet(CommonShortcuts.ENTER, myEditor.getContentComponent());
        registerActionHandler(myEditor, IdeActions.ACTION_EDITOR_PASTE, new PasteHandler());
        registerActionHandler(myEditor, IdeActions.ACTION_EDITOR_BACKSPACE, new BackSpaceHandler());
        registerActionHandler(myEditor, IdeActions.ACTION_EDITOR_DELETE, new DeleteHandler());

        registerActionHandler(myEditor, EOFAction.ACTION_ID,
                ActionManager.getInstance().getAction(EOFAction.ACTION_ID));
    }/*from   w w  w  . j a  v a 2s . c  o  m*/
}

From source file:com.intellij.testFramework.EditorTestUtil.java

License:Apache License

public static void performPaste(Editor editor) {
    EditorActionManager actionManager = EditorActionManager.getInstance();
    EditorActionHandler actionHandler = actionManager.getActionHandler(IdeActions.ACTION_EDITOR_PASTE);
    actionHandler.execute(editor, DataManager.getInstance().getDataContext());
}

From source file:com.intellij.testFramework.LightPlatformCodeInsightTestCase.java

License:Apache License

protected static void paste() {
    executeAction(IdeActions.ACTION_EDITOR_PASTE);
}