]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Fix to compile.
authorvillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 27 Sep 2013 05:54:41 +0000 (05:54 +0000)
committervillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 27 Sep 2013 05:54:41 +0000 (05:54 +0000)
refs #3552

git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@27895 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/FindSearchTrim.java

index 7063b0aaeecb4f7bdeda8ffbb287a2f563d5cda4..c5d3523ccca91b94b70d580b7e321e06cbd81a3e 100644 (file)
@@ -20,7 +20,9 @@ public class FindSearchTrim extends SearchTrim {
        }\r
 \r
        public void findNameAndTypeQuery(Scope scope) {\r
-        String query = searchText.getText();\r
+        \r
+           String originalQuery = searchText.getText();\r
+           String query = originalQuery;\r
 \r
         // Don't allow empty queries\r
         if (query.trim().isEmpty())\r
@@ -32,7 +34,8 @@ public class FindSearchTrim extends SearchTrim {
         // Add option for showing only findings in currently open diagram\r
         if (scope == Scope.CURRENT_DIAGRAM)\r
                query += " " + CURRENT_DIAGRAM_OPTION;\r
-        performQuery(query, ResultBrowser.VIEW);\r
+        performQuery(originalQuery, query, ResultBrowser.VIEW);\r
+        \r
        }       \r
 \r
 }\r