From: lempinen Date: Tue, 12 Oct 2010 10:53:19 +0000 (+0000) Subject: Added a negation to make this work like it should X-Git-Tag: simantics-1.2.1~28 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=3a2a748cdcd081e77a40937126f2be7124bee151;p=simantics%2Fsysdyn.git Added a negation to make this work like it should git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@18387 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ConfigurationTab.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ConfigurationTab.java index acd77170..e01ee5e5 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ConfigurationTab.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ConfigurationTab.java @@ -48,7 +48,7 @@ public class ConfigurationTab extends PropertyTabContributorImpl { @Override public String isValid(String newText) { - if (VariableNameUtils.isValid(newText)) + if (!VariableNameUtils.isValid(newText)) return "Sorry but spaces and special characters are not allowed for names right now"; return null; }