List of usage examples for com.intellij.openapi.actionSystem CommonShortcuts getFind
public static ShortcutSet getFind()
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(); }