Package com._1c.g5.v8.dt.search.ui
Class OptimizedTextSearchResult
- java.lang.Object
-
- org.eclipse.search.ui.text.AbstractTextSearchResult
-
- com._1c.g5.v8.dt.search.ui.OptimizedTextSearchResult
-
- All Implemented Interfaces:
org.eclipse.search.ui.ISearchResult
public abstract class OptimizedTextSearchResult extends org.eclipse.search.ui.text.AbstractTextSearchResult implements org.eclipse.search.ui.ISearchResultSpecial wrapper forAbstractTextSearchResult. In this class containing collections of the matches were changed fromListtoHashSetfor acceleration. Also added special methods for getting matches by key object asCollection.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedOptimizedTextSearchResult()Constructs a newCustomtTextSearchResult
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(org.eclipse.search.ui.ISearchResultListener l)voidaddMatch(org.eclipse.search.ui.text.Match match)voidaddMatches(Collection<org.eclipse.search.ui.text.Match> matches)voidaddMatches(org.eclipse.search.ui.text.Match[] matches)protected voidfireChange(org.eclipse.search.ui.SearchResultEvent e)org.eclipse.search.ui.text.MatchFilter[]getActiveMatchFilters()org.eclipse.search.ui.text.MatchFilter[]getAllMatchFilters()protected Collection<org.eclipse.search.ui.text.Match>getCollectionMatches(Object element)Analog for methodgetMatches(Object)returningCollectionof theMatches corresponding to theelementObject[]getElements()intgetMatchCount()intgetMatchCount(Object element)org.eclipse.search.ui.text.Match[]getMatches(Object element)voidremoveAll()voidremoveListener(org.eclipse.search.ui.ISearchResultListener l)voidremoveMatch(org.eclipse.search.ui.text.Match match)voidremoveMatches(Collection<org.eclipse.search.ui.text.Match> matches)voidremoveMatches(org.eclipse.search.ui.text.Match[] matches)voidsetActiveMatchFilters(Collection<org.eclipse.search.ui.text.MatchFilter> filters)Analog for methodsetActiveMatchFilters(MatchFilter[])working with collectionsvoidsetActiveMatchFilters(org.eclipse.search.ui.text.MatchFilter[] filters)-
Methods inherited from class org.eclipse.search.ui.text.AbstractTextSearchResult
getEditorMatchAdapter, getFileMatchAdapter, getMatchSet
-
-
-
-
Method Detail
-
getMatches
public org.eclipse.search.ui.text.Match[] getMatches(Object element)
- Overrides:
getMatchesin classorg.eclipse.search.ui.text.AbstractTextSearchResult
-
addMatch
public void addMatch(org.eclipse.search.ui.text.Match match)
- Overrides:
addMatchin classorg.eclipse.search.ui.text.AbstractTextSearchResult
-
addMatches
public void addMatches(Collection<org.eclipse.search.ui.text.Match> matches)
- Parameters:
matches- the matches to add, cannot benull
-
removeAll
public void removeAll()
- Overrides:
removeAllin classorg.eclipse.search.ui.text.AbstractTextSearchResult
-
removeMatch
public void removeMatch(org.eclipse.search.ui.text.Match match)
- Overrides:
removeMatchin classorg.eclipse.search.ui.text.AbstractTextSearchResult
-
addMatches
public void addMatches(org.eclipse.search.ui.text.Match[] matches)
- Overrides:
addMatchesin classorg.eclipse.search.ui.text.AbstractTextSearchResult
-
removeMatches
public void removeMatches(org.eclipse.search.ui.text.Match[] matches)
- Overrides:
removeMatchesin classorg.eclipse.search.ui.text.AbstractTextSearchResult
-
removeMatches
public void removeMatches(Collection<org.eclipse.search.ui.text.Match> matches)
- Parameters:
matches- the matches to remove, cannot benull
-
addListener
public void addListener(org.eclipse.search.ui.ISearchResultListener l)
- Specified by:
addListenerin interfaceorg.eclipse.search.ui.ISearchResult- Overrides:
addListenerin classorg.eclipse.search.ui.text.AbstractTextSearchResult
-
removeListener
public void removeListener(org.eclipse.search.ui.ISearchResultListener l)
- Specified by:
removeListenerin interfaceorg.eclipse.search.ui.ISearchResult- Overrides:
removeListenerin classorg.eclipse.search.ui.text.AbstractTextSearchResult
-
getActiveMatchFilters
public org.eclipse.search.ui.text.MatchFilter[] getActiveMatchFilters()
- Overrides:
getActiveMatchFiltersin classorg.eclipse.search.ui.text.AbstractTextSearchResult
-
getMatchCount
public int getMatchCount()
- Overrides:
getMatchCountin classorg.eclipse.search.ui.text.AbstractTextSearchResult
-
getMatchCount
public int getMatchCount(Object element)
- Overrides:
getMatchCountin classorg.eclipse.search.ui.text.AbstractTextSearchResult
-
getElements
public Object[] getElements()
- Overrides:
getElementsin classorg.eclipse.search.ui.text.AbstractTextSearchResult
-
setActiveMatchFilters
public void setActiveMatchFilters(Collection<org.eclipse.search.ui.text.MatchFilter> filters)
Analog for methodsetActiveMatchFilters(MatchFilter[])working with collections- Parameters:
filters- the match filters to set or emty collection if the filter state of the match should be ignored, nevernull
-
setActiveMatchFilters
public void setActiveMatchFilters(org.eclipse.search.ui.text.MatchFilter[] filters)
- Overrides:
setActiveMatchFiltersin classorg.eclipse.search.ui.text.AbstractTextSearchResult
-
getAllMatchFilters
public org.eclipse.search.ui.text.MatchFilter[] getAllMatchFilters()
- Overrides:
getAllMatchFiltersin classorg.eclipse.search.ui.text.AbstractTextSearchResult
-
getCollectionMatches
protected Collection<org.eclipse.search.ui.text.Match> getCollectionMatches(Object element)
Analog for methodgetMatches(Object)returningCollectionof theMatches corresponding to theelement- Parameters:
element- key element for gettingMatches, cannot benull- Returns:
Matches corresponding to theelement, nevernull
-
fireChange
protected void fireChange(org.eclipse.search.ui.SearchResultEvent e)
- Overrides:
fireChangein classorg.eclipse.search.ui.text.AbstractTextSearchResult
-
-