File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
src/main/java/org/scijava/search Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -126,10 +126,11 @@ public void invalidate() {
126126
127127 @ Override
128128 public void run () {
129+ final boolean exclusive = searcher .exclusive (query );
129130 final List <SearchResult > results = searcher .search (query , fuzzy );
130131 if (!valid ) return ;
131132 for (final SearchListener l : listeners ) {
132- l .searchCompleted (new SearchEvent (searcher , results ));
133+ l .searchCompleted (new SearchEvent (searcher , results , exclusive ));
133134 }
134135 }
135136 }
Original file line number Diff line number Diff line change @@ -12,12 +12,14 @@ public class SearchEvent {
1212
1313 private final Searcher searcher ;
1414 private final List <SearchResult > results ;
15+ private final boolean exclusive ;
1516
1617 public SearchEvent (final Searcher searcher ,
17- final List <SearchResult > results )
18+ final List <SearchResult > results , final boolean exclusive )
1819 {
1920 this .searcher = searcher ;
2021 this .results = results ;
22+ this .exclusive = exclusive ;
2123 }
2224
2325 public Searcher searcher () {
@@ -27,4 +29,8 @@ public Searcher searcher() {
2729 public List <SearchResult > results () {
2830 return results ;
2931 }
32+
33+ public boolean exclusive () {
34+ return exclusive ;
35+ }
3036}
You can’t perform that action at this time.
0 commit comments