]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
added newline and tab characters to line delimiters to enable renaming of variables...
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 3 May 2011 07:03:44 +0000 (07:03 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 3 May 2011 07:03:44 +0000 (07:03 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@20733 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/utils/VariableNameUtils.java

index 3f9459d8ee825a7c37f3a94ebfd80b91ddc1e71b..de42301334d347195377ce179fb699d69178d2be 100644 (file)
@@ -74,7 +74,7 @@ public class VariableNameUtils {
        private static String replaceAllWords(String original, String find, String replacement) {\r
                if(!original.contains(find)) return original;\r
                StringBuilder result = new StringBuilder(original.length());\r
-               String delimiters = "+-*/(){}[],.: ";\r
+               String delimiters = "+-*/(){}[],.: \t\n\r\f";\r
                StringTokenizer st = new StringTokenizer(original, delimiters, true);\r
                while (st.hasMoreTokens()) {\r
                        String w = st.nextToken();\r