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

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

Introduction

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

Prototype


public abstract String getLastPreformedActionId();

Source Link

Document

For logging purposes

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);
}