SYSDYN.DefaultRealization <T L0X.Realization
SYSDYN.ModulesSearchFunction : L0.Function
+ L0.HasLabel "Sysdyn Search" : L0.String
SYSDYN.SearchContribution : WORKBENCH.SearchContribution
WORKBENCH.hasSearchFunction SYSDYN.ModulesSearchFunction
@Override\r
public SearchResult apply(IProgressMonitor monitor, ReadGraph graph, Resource model, SearchQuery query, Integer maxResults) {\r
try {\r
+ String origQuery = query.getOriginalQuery();\r
+ if (!origQuery.isEmpty()) // Add asterisks for performSearch \r
+ query.setOriginalQuery("*" + origQuery + "*");\r
+ \r
// Check whether only currently open diagram is searched\r
String filteredQuery = query.getQuery("Name","Types");\r
- Collection<Map<String, Object>> results = Searching.performSearch(graph, Layer0X.getInstance(graph).Dependencies, model, filteredQuery, MAX_RESULTS);\r
+ Collection<Map<String, Object>> results = Searching.performSearch(graph, \r
+ Layer0X.getInstance(graph).Dependencies, \r
+ model, \r
+ filteredQuery, \r
+ MAX_RESULTS);\r
\r
+ query.setOriginalQuery(origQuery); // Restore the original query without *'s\r
+ \r
if (!query.getSearchParams().contains(FindSearchTrim.CURRENT_DIAGRAM_OPTION))\r
return generateSearchResults(graph, results, Scope.ALL_MODELS);\r
else\r