Example usage for com.intellij.openapi.actionSystem IdeActions ACTION_HIGHLIGHT_USAGES_IN_FILE

List of usage examples for com.intellij.openapi.actionSystem IdeActions ACTION_HIGHLIGHT_USAGES_IN_FILE

Introduction

In this page you can find the example usage for com.intellij.openapi.actionSystem IdeActions ACTION_HIGHLIGHT_USAGES_IN_FILE.

Prototype

String ACTION_HIGHLIGHT_USAGES_IN_FILE

To view the source code for com.intellij.openapi.actionSystem IdeActions ACTION_HIGHLIGHT_USAGES_IN_FILE.

Click Source Link

Usage

From source file:com.intellij.codeInsight.highlighting.HighlightUsagesHandler.java

License:Apache License

public static String getShortcutText() {
    final Shortcut[] shortcuts = ActionManager.getInstance()
            .getAction(IdeActions.ACTION_HIGHLIGHT_USAGES_IN_FILE).getShortcutSet().getShortcuts();
    if (shortcuts.length == 0) {
        return "<no key assigned>";
    }// w  ww .  j  a  v  a2s  .  c  o  m
    return KeymapUtil.getShortcutText(shortcuts[0]);
}