Package com._1c.g5.v8.dt.search.ui
Class ConfigurationSearchResult
- java.lang.Object
-
- org.eclipse.search.ui.text.AbstractTextSearchResult
-
- com._1c.g5.v8.dt.search.ui.OptimizedTextSearchResult
-
- com._1c.g5.v8.dt.search.ui.ConfigurationSearchResult
-
- All Implemented Interfaces:
ISearchResultCollector
,org.eclipse.search.ui.ISearchResult
,org.eclipse.search.ui.text.IEditorMatchAdapter
public class ConfigurationSearchResult extends OptimizedTextSearchResult implements ISearchResultCollector, org.eclipse.search.ui.text.IEditorMatchAdapter
Search result for the Configuration search. Configuration search result containsDtMatch
es for all occurrences in Configuration objects and textMatch
es for all text occurrences in text documents (BSL modules for example).
-
-
Constructor Summary
Constructors Constructor Description ConfigurationSearchResult(com._1c.g5.v8.dt.internal.search.ui.page.DtSearchQuery searchQuery, IResourceLookup resourceLookup)
Constructor of {@ ConfigurationSearchResult}.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
collectMatch(DtMatch match)
The method that is called when a search match is found.org.eclipse.search.ui.text.Match[]
computeContainedMatches(org.eclipse.search.ui.text.AbstractTextSearchResult result, org.eclipse.ui.IEditorPart editor)
org.eclipse.search.ui.text.IEditorMatchAdapter
getEditorMatchAdapter()
org.eclipse.search.ui.text.IFileMatchAdapter
getFileMatchAdapter()
org.eclipse.jface.resource.ImageDescriptor
getImageDescriptor()
String
getLabel()
org.eclipse.search.ui.text.Match[]
getMatches(Object element)
org.eclipse.search.ui.ISearchQuery
getQuery()
String
getTooltip()
boolean
isShownInEditor(org.eclipse.search.ui.text.Match match, org.eclipse.ui.IEditorPart editor)
void
setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
Sets progress monitor to report progress.-
Methods inherited from class com._1c.g5.v8.dt.search.ui.OptimizedTextSearchResult
addListener, addMatch, addMatches, addMatches, fireChange, getActiveMatchFilters, getAllMatchFilters, getCollectionMatches, getElements, getMatchCount, getMatchCount, removeAll, removeListener, removeMatch, removeMatches, removeMatches, setActiveMatchFilters, setActiveMatchFilters
-
-
-
-
Constructor Detail
-
ConfigurationSearchResult
public ConfigurationSearchResult(com._1c.g5.v8.dt.internal.search.ui.page.DtSearchQuery searchQuery, IResourceLookup resourceLookup)
Constructor of {@ ConfigurationSearchResult}.- Parameters:
searchQuery
- the search querty to create result for, cannot benull
resourceLookup
- the resource lookup, cannot benull
-
-
Method Detail
-
getLabel
public String getLabel()
- Specified by:
getLabel
in interfaceorg.eclipse.search.ui.ISearchResult
-
getMatches
public org.eclipse.search.ui.text.Match[] getMatches(Object element)
- Overrides:
getMatches
in classOptimizedTextSearchResult
-
getTooltip
public String getTooltip()
- Specified by:
getTooltip
in interfaceorg.eclipse.search.ui.ISearchResult
-
getImageDescriptor
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
- Specified by:
getImageDescriptor
in interfaceorg.eclipse.search.ui.ISearchResult
-
getQuery
public org.eclipse.search.ui.ISearchQuery getQuery()
- Specified by:
getQuery
in interfaceorg.eclipse.search.ui.ISearchResult
-
getEditorMatchAdapter
public org.eclipse.search.ui.text.IEditorMatchAdapter getEditorMatchAdapter()
- Specified by:
getEditorMatchAdapter
in classorg.eclipse.search.ui.text.AbstractTextSearchResult
-
getFileMatchAdapter
public org.eclipse.search.ui.text.IFileMatchAdapter getFileMatchAdapter()
- Specified by:
getFileMatchAdapter
in classorg.eclipse.search.ui.text.AbstractTextSearchResult
-
isShownInEditor
public boolean isShownInEditor(org.eclipse.search.ui.text.Match match, org.eclipse.ui.IEditorPart editor)
- Specified by:
isShownInEditor
in interfaceorg.eclipse.search.ui.text.IEditorMatchAdapter
-
computeContainedMatches
public org.eclipse.search.ui.text.Match[] computeContainedMatches(org.eclipse.search.ui.text.AbstractTextSearchResult result, org.eclipse.ui.IEditorPart editor)
- Specified by:
computeContainedMatches
in interfaceorg.eclipse.search.ui.text.IEditorMatchAdapter
-
collectMatch
public void collectMatch(DtMatch match)
Description copied from interface:ISearchResultCollector
The method that is called when a search match is found.- Specified by:
collectMatch
in interfaceISearchResultCollector
- Parameters:
match
- the found search match, cannot benull
-
setProgressMonitor
public void setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
Sets progress monitor to report progress.- Parameters:
monitor
- progress monitor to report progress. Can benull
-
-