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

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

Introduction

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

Prototype

String ACTION_SELECT_ALL_OCCURRENCES

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

Click Source Link

Usage

From source file:com.intellij.find.editorHeaderActions.SelectAllAction.java

License:Apache License

public SelectAllAction(EditorSearchComponent editorSearchComponent) {
    super(editorSearchComponent);

    copyFrom(ActionManager.getInstance().getAction(IdeActions.ACTION_SELECT_ALL_OCCURRENCES));
    getTemplatePresentation().setIcon(AllIcons.Actions.CheckMulticaret);

    List<Shortcut> shortcuts = new ArrayList<Shortcut>();
    ContainerUtil.addAll(shortcuts, getShortcutSet().getShortcuts());
    ContainerUtil.addAll(shortcuts, CommonShortcuts.ALT_ENTER.getShortcuts());
    registerShortcutsForComponent(shortcuts, editorSearchComponent.getSearchField());
}