]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Added a negation to make this work like it should
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 12 Oct 2010 10:53:19 +0000 (10:53 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 12 Oct 2010 10:53:19 +0000 (10:53 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@18387 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ConfigurationTab.java

index acd771707c7c3a8865b2547c72e14f3ae0f54967..e01ee5e54eacc116afabf38c6f62923b79e3d0c9 100644 (file)
@@ -48,7 +48,7 @@ public class ConfigurationTab extends PropertyTabContributorImpl {
             \r
             @Override\r
             public String isValid(String newText) {\r
-                if (VariableNameUtils.isValid(newText))\r
+                if (!VariableNameUtils.isValid(newText))\r
                     return "Sorry but spaces and special characters are not allowed for names right now";\r
                 return null;\r
             }\r