]> gerrit.simantics Code Review - simantics/platform.git/blob
ae1ff1ee0ada884d979c97a71f5e63de67619f03
[simantics/platform.git] /
1 package org.simantics.workbench.internal.contributions.search;
2
3 import org.eclipse.core.expressions.Expression;
4 import org.simantics.workbench.search.ISearchService;
5 import org.simantics.workbench.search.SearchQuery;
6
7 public class SlaveSearchService implements ISearchService{
8         
9         final ISearchService parent;
10         final Expression exp;
11         
12         public SlaveSearchService(ISearchService parent, Expression expr) {
13                 this.parent = parent;
14                 this.exp = expr;
15         }
16         
17         public Expression getDefaultExpression() {
18                 return exp;
19         }
20         
21         @Override
22         public void performQuery(SearchQuery query, ResultBrowser browserType, boolean activateResultBrowser) {
23                 parent.performQuery(query, browserType, activateResultBrowser);
24                 
25         }
26
27 }