Example usage for com.intellij.openapi.actionSystem.ex ActionManagerEx getPrevPreformedActionId

List of usage examples for com.intellij.openapi.actionSystem.ex ActionManagerEx getPrevPreformedActionId

Introduction

In this page you can find the example usage for com.intellij.openapi.actionSystem.ex ActionManagerEx getPrevPreformedActionId.

Prototype

public abstract String getPrevPreformedActionId();

Source Link

Usage

From source file:org.startica.meeniex.intellij.plugin.eclipseLikeEnterInStringLiteralHandler.editor.actionSystem.EclipseLikeEnterInStringLiteralHandler.java

License:Open Source License

private boolean isSplitLineAction() {
    ActionManagerEx actionManagerEx = ActionManagerEx.getInstanceEx();
    String prevPreformedActionId = actionManagerEx.getPrevPreformedActionId();
    String lastPreformedActionId = actionManagerEx.getLastPreformedActionId();

    return IdeActions.ACTION_EDITOR_SPLIT.equals(prevPreformedActionId)
            || IdeActions.ACTION_EDITOR_SPLIT.equals(lastPreformedActionId);
}