From: lempinen Date: Tue, 3 May 2011 07:03:44 +0000 (+0000) Subject: added newline and tab characters to line delimiters to enable renaming of variables... X-Git-Tag: simantics-1.4RC1~24 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=d15f60a7f359dc3d9eef186716bee96f71c4ba14;p=simantics%2Fsysdyn.git added newline and tab characters to line delimiters to enable renaming of variables that are in the beginning of a new line git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@20733 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/utils/VariableNameUtils.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/utils/VariableNameUtils.java index 3f9459d8..de423013 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/utils/VariableNameUtils.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/utils/VariableNameUtils.java @@ -74,7 +74,7 @@ public class VariableNameUtils { private static String replaceAllWords(String original, String find, String replacement) { if(!original.contains(find)) return original; StringBuilder result = new StringBuilder(original.length()); - String delimiters = "+-*/(){}[],.: "; + String delimiters = "+-*/(){}[],.: \t\n\r\f"; StringTokenizer st = new StringTokenizer(original, delimiters, true); while (st.hasMoreTokens()) { String w = st.nextToken();