@Override
public void setEntity(DefinedTerm entity) {
this.entity = entity;
- if(entity!=null && entity.getId()!=0){
+ if(entity!=null && entity.getId()!=0 && combo_scope != null){
combo_scope.setSelection(entity);
combo_scope.removeEmptyElement();
}
@Override
public void createControls(ICdmFormElement element, int style) {
combo_scope = formFactory.createDefinedTermComboElement(TermType.Scope, element, "Scope", null, style);
+ if (entity != null){
+ setEntity(entity);
+ }
}
/** {@inheritDoc} */