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:
parent
f5e04ac9f4
commit
e9d2fc6b56
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue