com.intellij.ide.ui.search.SearchableOptionProcessor Java Examples
The following examples show how to use
com.intellij.ide.ui.search.SearchableOptionProcessor.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FlutterSearchableOptionContributor.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 6 votes |
@Override public void processOptions(@NotNull SearchableOptionProcessor processor) { add(processor, FlutterBundle.message("settings.try.out.features.still.under.development")); add(processor, FlutterBundle.message("settings.experimental.flutter.logging.view")); add(processor, FlutterBundle.message("settings.enable.android.gradle.sync")); // For some reason the word "report" is ignored by the search feature, but the other words work. add(processor, FlutterBundle.message("settings.report.google.analytics")); add(processor, FlutterBundle.message("settings.enable.verbose.logging")); add(processor, FlutterBundle.message("settings.format.code.on.save")); add(processor, FlutterBundle.message("settings.organize.imports.on.save")); add(processor, FlutterBundle.message("settings.flutter.version")); add(processor, FlutterBundle.message("settings.open.inspector.on.launch")); add(processor, FlutterBundle.message("settings.hot.reload.on.save")); add(processor, FlutterBundle.message("settings.disable.tracking.widget.creation")); add(processor, FlutterBundle.message("settings.enable.bazel.test.runner")); }
Example #2
Source File: FlutterSearchableOptionContributor.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 6 votes |
@Override public void processOptions(@NotNull SearchableOptionProcessor processor) { add(processor, FlutterBundle.message("settings.try.out.features.still.under.development")); add(processor, FlutterBundle.message("settings.experimental.flutter.logging.view")); add(processor, FlutterBundle.message("settings.enable.android.gradle.sync")); // For some reason the word "report" is ignored by the search feature, but the other words work. add(processor, FlutterBundle.message("settings.report.google.analytics")); add(processor, FlutterBundle.message("settings.enable.verbose.logging")); add(processor, FlutterBundle.message("settings.format.code.on.save")); add(processor, FlutterBundle.message("settings.organize.imports.on.save")); add(processor, FlutterBundle.message("settings.flutter.version")); add(processor, FlutterBundle.message("settings.open.inspector.on.launch")); add(processor, FlutterBundle.message("settings.hot.reload.on.save")); add(processor, FlutterBundle.message("settings.disable.tracking.widget.creation")); add(processor, FlutterBundle.message("settings.enable.bazel.test.runner")); }
Example #3
Source File: BlazeUserSettingsCompositeConfigurable.java From intellij with Apache License 2.0 | 5 votes |
@Override public void processOptions(SearchableOptionProcessor processor) { SearchableTextHelper helper = new SearchableTextHelper(ID, DISPLAY_NAME); Arrays.stream(UiContributor.EP_NAME.getExtensions()) .flatMap(uiContributor -> uiContributor.getSearchableText().stream()) .forEach(helper::registerText); }
Example #4
Source File: IntentionManagerSettings.java From consulo with Apache License 2.0 | 5 votes |
@Override public void processOptions(@Nonnull SearchableOptionProcessor processor) { for (IntentionActionBean bean : IntentionManager.EP_INTENTION_ACTIONS.getExtensionList()) { String[] categories = bean.getCategories(); if (categories == null) { continue; } String descriptionDirectoryName = bean.getDescriptionDirectoryName(); IntentionActionWrapper intentionAction = new IntentionActionWrapper(bean); if (descriptionDirectoryName == null) { descriptionDirectoryName = IntentionManagerImpl.getDescriptionDirectoryName(intentionAction); } IntentionActionMetaData data = new IntentionActionMetaData(intentionAction, getClassLoader(intentionAction), categories, descriptionDirectoryName); final TextDescriptor description = data.getDescription(); try { String descriptionText = description.getText().toLowerCase(); descriptionText = HTML_PATTERN.matcher(descriptionText).replaceAll(" "); final Set<String> words = processor.getProcessedWordsWithoutStemming(descriptionText); words.addAll(processor.getProcessedWords(data.getFamily())); for (String word : words) { processor.addOption(word, data.getFamily(), data.getFamily(), IntentionSettingsConfigurable.HELP_ID, CodeInsightBundle.message("intention.settings")); } } catch (IOException e) { LOG.error(e); } } }
Example #5
Source File: FlutterSearchableOptionContributor.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 4 votes |
private static void add(@NotNull SearchableOptionProcessor processor, @NotNull String key) { processor.addOptions(key, null, key, FlutterConstants.FLUTTER_SETTINGS_PAGE_ID, FlutterSettingsConfigurable.FLUTTER_SETTINGS_PAGE_NAME, true); }
Example #6
Source File: FlutterSearchableOptionContributor.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 4 votes |
private static void add(@NotNull SearchableOptionProcessor processor, @NotNull String key) { processor.addOptions(key, null, key, FlutterConstants.FLUTTER_SETTINGS_PAGE_ID, FlutterSettingsConfigurable.FLUTTER_SETTINGS_PAGE_NAME, true); }