From: villberg Date: Fri, 27 Sep 2013 05:54:41 +0000 (+0000) Subject: Fix to compile. X-Git-Tag: 1.8.1~241 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=18d319d3b49b55b6b36a20a96747be398f18b30e;p=simantics%2Fsysdyn.git Fix to compile. refs #3552 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@27895 ac1ea38d-2e2b-0410-8846-a27921b304fc --- 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); + } }