SEBSERV-155 add empty note for not selected exam supporters

This commit is contained in:
anhefti 2022-02-07 17:27:00 +01:00
parent 94c04805e0
commit a7de01851d
2 changed files with 8 additions and 1 deletions

View file

@ -697,4 +697,11 @@ public final class Utils {
+ Constants.DOUBLE_QUOTE;
}
public static String getOrEmptyDisplayValue(final String value) {
if (StringUtils.isBlank(value)) {
return Constants.EMPTY_NOTE;
}
return value;
}
}

View file

@ -110,7 +110,7 @@ public final class SelectionFieldBuilder extends FieldBuilder<String> {
final GridData gridData = new GridData(SWT.FILL, SWT.TOP, true, true);
label.setLayoutData(gridData);
label.setText((this.value != null) ? this.value : Constants.EMPTY_NOTE);
label.setText(Constants.EMPTY_NOTE);
if (this.label != null) {
WidgetFactory.setTestId(label, this.label.name);
}