import org.simantics.layer0.Layer0;\r
import org.simantics.operation.Layer0X;\r
import org.simantics.scl.runtime.function.FunctionImpl4;\r
+import org.simantics.scl.runtime.function.FunctionImpl5;\r
import org.simantics.sysdyn.SysdynResource;\r
import org.simantics.workbench.search.NamedResource;\r
import org.simantics.workbench.search.QueryResult;\r
* \r
* @author Tuukka Lehtonen\r
*/\r
-public class ModulesSearchFunction extends FunctionImpl4<IProgressMonitor, ReadGraph, String, Integer, Collection<SearchResult>> {\r
+public class ModulesSearchFunction extends FunctionImpl5<IProgressMonitor, ReadGraph, Resource, String, Integer, Collection<SearchResult>> {\r
\r
@Override\r
- public Collection<SearchResult> apply(IProgressMonitor monitor, ReadGraph graph, String query, Integer maxResults) {\r
+ public Collection<SearchResult> apply(IProgressMonitor monitor, ReadGraph graph, Resource model, String query, Integer maxResults) {\r
try {\r
Collection<Map<String, Object>> results = Searching.performSearch(graph,\r
- Layer0X.getInstance(graph).Dependencies, query, maxResults);\r
+ Layer0X.getInstance(graph).Dependencies, model, query, maxResults);\r
\r
return generateSearchResults(graph, results);\r
} catch (DatabaseException e) {\r