Example usage for com.intellij.openapi.actionSystem PlatformDataKeys ACTIONS_SORTER

List of usage examples for com.intellij.openapi.actionSystem PlatformDataKeys ACTIONS_SORTER

Introduction

In this page you can find the example usage for com.intellij.openapi.actionSystem PlatformDataKeys ACTIONS_SORTER.

Prototype

DataKey ACTIONS_SORTER

To view the source code for com.intellij.openapi.actionSystem PlatformDataKeys ACTIONS_SORTER.

Click Source Link

Document

It's allowed to assign multiple actions to the same keyboard shortcut.

Usage

From source file:org.intellij.erlang.console.ErlangConsoleView.java

License:Apache License

@Override
public Object getData(@NotNull String dataId) {
    // This is needed to make sure that ErlangConsoleExecuteAction has a
    // chance to process Ctrl+ENTER keystroke first.
    if (PlatformDataKeys.ACTIONS_SORTER.is(dataId)) {
        return ourActionComparator;
    } else {//from  w  w w . j  av  a  2 s.c  o m
        return super.getData(dataId);
    }
}