Class TextSearcher

java.lang.Object
com._1c.g5.v8.dt.search.core.TextSearcher

public class TextSearcher extends Object
Text searcher
  • Constructor Details

    • TextSearcher

      public TextSearcher(String searchText, boolean caseSensitive, TextSearchScopeSettings searchScopeSettings, ISearchResultCollector searchResultCollector, IBmModelManager bmModelManager, ITextSearchIndexProvider textSearchIndexProvider, IExternalPropertyManagerRegistry externalPropertyManagerRegistry, IDtHostResourceManager hostResourceManager)
      Create instance of text searcher
      Parameters:
      searchText - the text to search, cannot be null
      caseSensitive - the flag showing whether the case matters
      searchScopeSettings - the search scope settings instance, cannot be null
      searchResultCollector - the callback that will be invoked each time a match is found, cannot be null
      bmModelManager - the BM model manager is used to provide context for external property manager registry, cannot be null
      textSearchIndexProvider - the Text Search Index Provider is used for searching external occurences in texts, cannot be null
      externalPropertyManagerRegistry - the external property manager registry, cannot be null
      hostResourceManager - the host resource manager, cannot be null
  • Method Details

    • search

      public void search(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException, org.eclipse.core.runtime.OperationCanceledException
      Performs search of the given string with specified params
      Parameters:
      monitor - is the progress monitor, can be IUnorderedGroupHelper.Null
      Throws:
      org.eclipse.core.runtime.CoreException - in case there are problems with getting index or bm model.
      org.eclipse.core.runtime.OperationCanceledException - if the operation detects a request to cancel, using IProgressMonitor.isCanceled(), it should exit by throwing OperationCanceledException