1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

bug 280139: comboBox should ignore "mandatory" property

This commit is contained in:
Andrew Gvozdev 2009-07-08 15:33:10 +00:00
parent f5e04ac9f4
commit e9d2fc6b56

View file

@ -142,7 +142,8 @@ public class UISelectWidget extends InputUIElement {
@Override
public boolean isValid() {
boolean retVal = true;
if(Boolean.parseBoolean(uiAttributes.get(InputUIElement.MANDATORY))) {
if(Boolean.parseBoolean(uiAttributes.get(InputUIElement.MANDATORY))
&& ! InputUIElement.SELECTTYPE.equals(uiAttributes.get(InputUIElement.TYPE)) ) {
retVal= currentValue!= null && currentValue.trim().length()>0;
}
return retVal;