Package com._1c.g5.v8.dt.search.core
Class TextSearcher
- java.lang.Object
-
- com._1c.g5.v8.dt.search.core.TextSearcher
-
public class TextSearcher extends Object
Text searcher
-
-
Constructor Summary
Constructors Constructor Description TextSearcher(String searchText, boolean caseSensitive, TextSearchScopeSettings searchScopeSettings, ISearchResultCollector searchResultCollector, IBmModelManager bmModelManager, ITextSearchIndexProvider textSearchIndexProvider, IExternalPropertyManagerRegistry externalPropertyManagerRegistry, IDtHostResourceManager hostResourceManager)
Create instance of text searcher
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
search(org.eclipse.core.runtime.IProgressMonitor monitor)
Performs search of the given string with specified params
-
-
-
Constructor Detail
-
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 benull
caseSensitive
- the flag showing whether the case matterssearchScopeSettings
- the search scope settings instance, cannot benull
searchResultCollector
- the callback that will be invoked each time a match is found, cannot benull
bmModelManager
- the BM model manager is used to provide context for external property manager registry, cannot benull
textSearchIndexProvider
- the Text Search Index Provider is used for searching external occurences in texts, cannot benull
externalPropertyManagerRegistry
- the external property manager registry, cannot benull
hostResourceManager
- the host resource manager, cannot benull
-
-
Method Detail
-
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
-
-