Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bundles/org.eclipse.search/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.search; singleton:=true
Bundle-Version: 3.17.100.qualifier
Bundle-Version: 3.17.200.qualifier
Bundle-Activator: org.eclipse.search.internal.ui.SearchPlugin
Bundle-ActivationPolicy: lazy
Bundle-Vendor: %providerName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public abstract class AbstractTextSearchResult implements ISearchResult {

private final ConcurrentMap<Object, Set<Match>> fElementsToMatches;
private final List<ISearchResultListener> fListeners;
private final MatchEvent fMatchEvent;
private final AtomicInteger matchCount;

private MatchFilter[] fMatchFilters;
Expand All @@ -55,7 +54,6 @@ public abstract class AbstractTextSearchResult implements ISearchResult {
protected AbstractTextSearchResult() {
fElementsToMatches= new ConcurrentHashMap<>();
fListeners= new ArrayList<>();
fMatchEvent= new MatchEvent(this);
matchCount = new AtomicInteger(0);
fMatchFilters= null; // filtering disabled by default
}
Expand Down Expand Up @@ -145,12 +143,14 @@ public void addMatches(Match[] matches) {
}

private MatchEvent getSearchResultEvent(Match match, int eventKind) {
MatchEvent fMatchEvent = new MatchEvent(this);
fMatchEvent.setKind(eventKind);
fMatchEvent.setMatch(match);
return fMatchEvent;
}

private MatchEvent getSearchResultEvent(Collection<Match> matches, int eventKind) {
MatchEvent fMatchEvent = new MatchEvent(this);
fMatchEvent.setKind(eventKind);
Match[] matchArray= matches.toArray(new Match[matches.size()]);
fMatchEvent.setMatches(matchArray);
Expand Down
Loading