spacer.getLayoutComposite().setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
addElement(spacer);
super.createControls(element, style);
+ if (entity != null){
+ setEntity(entity);
+ }
}
@Override
public void setEntity(NomenclaturalStatus entity) {
super.setEntity(entity);
- if (entity.getType() != null){
- nomenclaturalStatusTypeCombo.setSelection(entity.getType());
- nomenclaturalStatusTypeCombo.removeEmptyElement();
- }
- if (ruleConsidered != null){
- ruleConsidered.setElement(entity);
+ if (nomenclaturalStatusTypeCombo != null){
+ if (entity.getType() != null){
+ nomenclaturalStatusTypeCombo.setSelection(entity.getType());
+ nomenclaturalStatusTypeCombo.removeEmptyElement();
+ }
+ if (ruleConsidered != null){
+ ruleConsidered.setElement(entity);
+ }
}
}