mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-01 13:25:45 +02:00
bug 280139: comboBox should ignore "mandatory" property
This commit is contained in:
parent
f5e04ac9f4
commit
e9d2fc6b56
1 changed files with 2 additions and 1 deletions
|
@ -142,7 +142,8 @@ public class UISelectWidget extends InputUIElement {
|
||||||
@Override
|
@Override
|
||||||
public boolean isValid() {
|
public boolean isValid() {
|
||||||
boolean retVal = true;
|
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;
|
retVal= currentValue!= null && currentValue.trim().length()>0;
|
||||||
}
|
}
|
||||||
return retVal;
|
return retVal;
|
||||||
|
|
Loading…
Add table
Reference in a new issue