comboState = formFactory.createDefinedTermComboElement(Collections.EMPTY_LIST, element, getComboLabel(), null, style);
comboState.setEnabled(false);
selectFeature.setEnabled(false);
+
+ selectFeature.setEntity(entity.getFeature());
+ comboState.setSelection(entity.getState());
}
protected abstract String getComboLabel();
@Override
public void setEntity(FeatureState entity) {
this.entity = entity;
- selectFeature.setEntity(entity.getFeature());
- comboState.setSelection(entity.getState());
+ if (selectFeature != null){
+ selectFeature.setEntity(entity.getFeature());
+ comboState.setSelection(entity.getState());
+ }
}
@Override