Example usage for com.intellij.openapi.editor.actionSystem EditorAction actionPerformed

List of usage examples for com.intellij.openapi.editor.actionSystem EditorAction actionPerformed

Introduction

In this page you can find the example usage for com.intellij.openapi.editor.actionSystem EditorAction actionPerformed.

Prototype

public final void actionPerformed(final Editor editor, @NotNull final DataContext dataContext) 

Source Link

Usage

From source file:org.jetbrains.jet.plugin.codeInsight.moveUpDown.AbstractCodeMoverTest.java

License:Apache License

private void invokeAndCheck(@NotNull String path, final boolean down) {
    ApplicationManager.getApplication().runWriteAction(new Runnable() {
        @Override// w w w  . j  a va  2 s  .  c o  m
        public void run() {
            EditorAction action = down ? new MoveStatementDownAction() : new MoveStatementUpAction();
            action.actionPerformed(getEditor(), getCurrentEditorDataContext());
        }
    });
    checkResultByFile(path + ".after");
}