use of com.intellij.openapi.editor.actionSystem.EditorActionHandler in project intellij-community by JetBrains.
the class JoinLinesTest method performAction.
private void performAction() {
EditorActionManager actionManager = EditorActionManager.getInstance();
EditorActionHandler actionHandler = actionManager.getActionHandler(IdeActions.ACTION_EDITOR_JOIN_LINES);
actionHandler.execute(getEditor(), DataManager.getInstance().getDataContext());
}
use of com.intellij.openapi.editor.actionSystem.EditorActionHandler in project intellij-community by JetBrains.
the class CustomFileTypeEditorTest method performStartBlockAction.
private static void performStartBlockAction() {
EditorActionHandler actionHandler = new CodeBlockStartAction().getHandler();
actionHandler.execute(getEditor(), getCurrentEditorDataContext());
}
use of com.intellij.openapi.editor.actionSystem.EditorActionHandler in project intellij-community by JetBrains.
the class MvnDependencyPasteTest method performPaste.
private static void performPaste() {
EditorActionManager actionManager = EditorActionManager.getInstance();
EditorActionHandler actionHandler = actionManager.getActionHandler(IdeActions.ACTION_EDITOR_PASTE);
actionHandler.execute(getEditor(), null, DataManager.getInstance().getDataContextFromFocus().getResultSync());
}
use of com.intellij.openapi.editor.actionSystem.EditorActionHandler in project intellij-community by JetBrains.
the class PropertiesJoinLinesTest method performAction.
private static void performAction() {
EditorActionManager actionManager = EditorActionManager.getInstance();
EditorActionHandler actionHandler = actionManager.getActionHandler(IdeActions.ACTION_EDITOR_JOIN_LINES);
actionHandler.execute(getEditor(), DataManager.getInstance().getDataContext());
}
use of com.intellij.openapi.editor.actionSystem.EditorActionHandler in project intellij-community by JetBrains.
the class XmlMoverTest method doTest.
private void doTest(String ext) throws Exception {
final String baseName = getBasePath() + '/' + getTestName(true);
final String fileName = baseName + "." + ext;
@NonNls String afterFileName = baseName + "_afterUp." + ext;
EditorActionHandler handler = new MoveStatementUpAction().getHandler();
performAction(fileName, handler, afterFileName);
afterFileName = baseName + "_afterDown." + ext;
handler = new MoveStatementDownAction().getHandler();
performAction(fileName, handler, afterFileName);
}
Aggregations