@Override
public void createControls(ICdmFormElement element, int style) {
comboStateVocabulary = formFactory.createVocabularyComboElement(TermType.Modifier, "Modifier Vocabulary", null, element, style);
+ if (entity != null){
+ setEntity(entity);
+ }
}
@Override
public void setEntity(TermVocabulary<DefinedTerm> entity) {
this.entity = entity;
- if(entity.getId()!=0){
+ if(entity.getId()!=0 && comboStateVocabulary != null){
comboStateVocabulary.setSelection(entity);
comboStateVocabulary.removeEmptyElement();
}