From 18d319d3b49b55b6b36a20a96747be398f18b30e Mon Sep 17 00:00:00 2001 From: villberg Date: Fri, 27 Sep 2013 05:54:41 +0000 Subject: [PATCH] Fix to compile. refs #3552 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@27895 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../org/simantics/sysdyn/ui/handlers/FindSearchTrim.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/FindSearchTrim.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/FindSearchTrim.java index 7063b0aa..c5d3523c 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/FindSearchTrim.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/FindSearchTrim.java @@ -20,7 +20,9 @@ public class FindSearchTrim extends SearchTrim { } public void findNameAndTypeQuery(Scope scope) { - String query = searchText.getText(); + + String originalQuery = searchText.getText(); + String query = originalQuery; // Don't allow empty queries if (query.trim().isEmpty()) @@ -32,7 +34,8 @@ public class FindSearchTrim extends SearchTrim { // Add option for showing only findings in currently open diagram if (scope == Scope.CURRENT_DIAGRAM) query += " " + CURRENT_DIAGRAM_OPTION; - performQuery(query, ResultBrowser.VIEW); + performQuery(originalQuery, query, ResultBrowser.VIEW); + } } -- 2.47.1