Search in sources :

Example 11 with EditorActionManager

use of com.intellij.openapi.editor.actionSystem.EditorActionManager 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());
}
Also used : EditorActionManager(com.intellij.openapi.editor.actionSystem.EditorActionManager) EditorActionHandler(com.intellij.openapi.editor.actionSystem.EditorActionHandler)

Aggregations

EditorActionManager (com.intellij.openapi.editor.actionSystem.EditorActionManager)11 EditorActionHandler (com.intellij.openapi.editor.actionSystem.EditorActionHandler)7 TypedAction (com.intellij.openapi.editor.actionSystem.TypedAction)4 DataContext (com.intellij.openapi.actionSystem.DataContext)3 ASTNode (com.intellij.lang.ASTNode)2 Document (com.intellij.openapi.editor.Document)2 Editor (com.intellij.openapi.editor.Editor)1 TextRange (com.intellij.openapi.util.TextRange)1 PsiCodeBlock (com.intellij.psi.PsiCodeBlock)1 PsiElement (com.intellij.psi.PsiElement)1 HintHint (com.intellij.ui.HintHint)1 LightweightHint (com.intellij.ui.LightweightHint)1