List of usage examples for com.intellij.openapi.editor.actionSystem EditorAction actionPerformed
public final void actionPerformed(final Editor editor, @NotNull final DataContext dataContext)
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"); }