Package com._1c.g5.v8.dt.search.core
Class TextSearcher
java.lang.Object
com._1c.g5.v8.dt.search.core.TextSearcher
Text searcher
-
Constructor Summary
ConstructorsConstructorDescriptionTextSearcher(String searchText, boolean caseSensitive, TextSearchScopeSettings searchScopeSettings, ISearchResultCollector searchResultCollector, IBmModelManager bmModelManager, ITextSearchIndexProvider textSearchIndexProvider, IExternalPropertyManagerRegistry externalPropertyManagerRegistry, IDtHostResourceManager hostResourceManager) Create instance of text searcher -
Method Summary
Modifier and TypeMethodDescriptionvoidsearch(org.eclipse.core.runtime.IProgressMonitor monitor) Performs search of the given string with specified params
-
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 benullcaseSensitive- the flag showing whether the case matterssearchScopeSettings- the search scope settings instance, cannot benullsearchResultCollector- the callback that will be invoked each time a match is found, cannot benullbmModelManager- the BM model manager is used to provide context for external property manager registry, cannot benulltextSearchIndexProvider- the Text Search Index Provider is used for searching external occurences in texts, cannot benullexternalPropertyManagerRegistry- the external property manager registry, cannot benullhostResourceManager- the host resource manager, cannot benull
-
-
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 beIUnorderedGroupHelper.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, usingIProgressMonitor.isCanceled(), it should exit by throwing OperationCanceledException
-