Package com.intellij.ide.ui.search

Examples of com.intellij.ide.ui.search.SearchableOptionsRegistrar


    };
  }


  private void buildSearchIndexIfNecessary() {
    final SearchableOptionsRegistrar registrar = SearchableOptionsRegistrar.getInstance();
    if (registrar == null) {
      return;
    }
    if (!SEARCH_INDEX_CREATED.getAndSet(true)) {
      for (final Entry<String, String> entry : _preferences.getDetectors().entrySet()) {
View Full Code Here


    return Collections.unmodifiableList(_entries);
  }


  public void filter(final String filter) {
    final SearchableOptionsRegistrar optionsRegistrar = SearchableOptionsRegistrar.getInstance();
    final Set<String> search = optionsRegistrar.getProcessedWords(filter);

    final ArrayList<DetectorFactory> accept = new ArrayList<DetectorFactory>();

    final Collection<DetectorFactory> toProcess = new ArrayList<DetectorFactory>(_entries);
    toProcess.addAll(_filtered);
View Full Code Here


  private static boolean isAccepted(final Set<String> search, @NotNull final String filter, @Nullable final String description) {
    if (null == description) return false;
    if (StringUtil.containsIgnoreCase(description, filter)) return true;
    final SearchableOptionsRegistrar optionsRegistrar = SearchableOptionsRegistrar.getInstance();
    final HashSet<String> descriptionSet = new HashSet<String>(search);
    descriptionSet.removeAll(optionsRegistrar.getProcessedWords(description));
    return descriptionSet.isEmpty();
  }
View Full Code Here

TOP

Related Classes of com.intellij.ide.ui.search.SearchableOptionsRegistrar

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.