commit | 9a0884c79906cf15a0b35b80989f2e537ced28ec | [log] [tgz] |
---|---|---|
author | Dejan Glozic <dejan> | Wed Oct 16 16:13:35 2002 +0000 |
committer | Dejan Glozic <dejan> | Wed Oct 16 16:13:35 2002 +0000 |
tree | 25e794486faae09d3efbc4699e3dd3991c397d56 | |
parent | 8a2ced8814a734860d3e64e4d358653fe6627221 [diff] |
*** empty log message ***
diff --git a/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/properties/ConfigurationPropertyPage.java b/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/properties/ConfigurationPropertyPage.java index dabe837..bd6383c 100644 --- a/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/properties/ConfigurationPropertyPage.java +++ b/update/org.eclipse.update.ui/src/org/eclipse/update/internal/ui/properties/ConfigurationPropertyPage.java
@@ -82,8 +82,16 @@ } private void checkFields() { boolean valid = true; + String error = null; // check the value - setValid(valid); + String text = nameText.getText(); + if (text.length()==0) valid = false; + else if (text.charAt(0)=='@') { + error = "Configuration label cannot start with a '@'"; + valid=false; + } + setValid(valid); + setErrorMessage(error); changed=true; } }