Example usage for com.intellij.openapi.actionSystem CommonShortcuts getFind

List of usage examples for com.intellij.openapi.actionSystem CommonShortcuts getFind

Introduction

In this page you can find the example usage for com.intellij.openapi.actionSystem CommonShortcuts getFind.

Prototype

public static ShortcutSet getFind() 

Source Link

Usage

From source file:com.intellij.history.integration.ui.views.DirectoryHistoryDialog.java

License:Apache License

private SearchTextField createSearchBox(JPanel root) {
    final SearchTextFieldWithStoredHistory field = new SearchTextFieldWithStoredHistory(
            getPropertiesKey() + ".searchHistory");
    field.addDocumentListener(new DocumentAdapter() {
        @Override/*from   w w  w . j ava2  s .c o  m*/
        protected void textChanged(DocumentEvent e) {
            scheduleRevisionsUpdate(new Consumer<DirectoryHistoryDialogModel>() {
                public void consume(DirectoryHistoryDialogModel m) {
                    m.setFilter(field.getText());
                    field.addCurrentTextToHistory();
                }
            });
        }
    });

    new AnAction() {
        @Override
        public void actionPerformed(AnActionEvent e) {
            field.requestFocusInWindow();
        }
    }.registerCustomShortcutSet(CommonShortcuts.getFind(), root, this);

    return field;
}

From source file:com.vladsch.MissingInActions.util.CommonUIShortcuts.java

License:Apache License

public static ShortcutSet getFind() {
    return CommonShortcuts.getFind();
}