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.ISearchResult
Special wrapper for
AbstractTextSearchResult. In this class containing collections of the matches were changed from
List to HashSet for acceleration. Also added special methods for getting matches by key object as Collection.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructs a newCustomtTextSearchResult -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(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[]org.eclipse.search.ui.text.MatchFilter[]protected Collection<org.eclipse.search.ui.text.Match>getCollectionMatches(Object element) Analog for methodgetMatches(Object)returningCollectionof theMatches corresponding to theelementObject[]intintgetMatchCount(Object element) org.eclipse.search.ui.text.Match[]getMatches(Object element) voidvoidremoveListener(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, getMatchSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.search.ui.ISearchResult
getImageDescriptor, getLabel, getQuery, getTooltip
-
Constructor Details
-
OptimizedTextSearchResult
protected OptimizedTextSearchResult()Constructs a newCustomtTextSearchResult
-
-
Method Details
-
getMatches
- 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
- 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
- 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
- Overrides:
getMatchCountin classorg.eclipse.search.ui.text.AbstractTextSearchResult
-
getElements
- Overrides:
getElementsin classorg.eclipse.search.ui.text.AbstractTextSearchResult
-
setActiveMatchFilters
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
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
-