Search in sources :

Example 1 with FindAction

use of com.intellij.ui.SearchTextField.FindAction in project intellij-community by JetBrains.

the class SettingsDialog method init.

private void init(Configurable configurable, @Nullable Project project) {
    String name = configurable == null ? null : configurable.getDisplayName();
    String title = CommonBundle.settingsTitle();
    if (project != null && project.isDefault())
        title = "Default " + title;
    setTitle(name == null ? title : name.replace('\n', ' '));
    ShortcutSet set = getFindActionShortcutSet();
    if (set != null)
        new FindAction().registerCustomShortcutSet(set, getRootPane(), myDisposable);
    init();
}
Also used : FindAction(com.intellij.ui.SearchTextField.FindAction) ShortcutSet(com.intellij.openapi.actionSystem.ShortcutSet)

Aggregations

ShortcutSet (com.intellij.openapi.actionSystem.ShortcutSet)1 FindAction (com.intellij.ui.SearchTextField.FindAction)1