combo_nomenclaturalCode = formFactory.createEnumComboElement(NomenclaturalCode.class, formElement, style);
combo_nomenclaturalCode.setSelection(entity.getNomenclaturalCode());
- textLsid = formFactory.createLsidWithExceptionLabelElement(formElement, "Lsid", entity.getLsid(), style);
if (entity.getNameType().equals(NomenclaturalCode.ICNB)){
text_nameApprobation = formFactory.createTextWithLabelElement(formElement, "Name Approbation", entity.getNameApprobation(),style);
}
+ textLsid = formFactory.createLsidWithExceptionLabelElement(formElement, "Lsid", entity.getLsid(), style);
+
}else{
if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_CACHE)){
combo_nomenclaturalCode = formFactory.createEnumComboElement(NomenclaturalCode.class, formElement, style);
combo_nomenclaturalCode.setSelection(entity.getNomenclaturalCode());
}
+ if (entity.getNameType().equals(NomenclaturalCode.ICNB)){
+ if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NAME_APPROBATION)){
+ text_nameApprobation = formFactory.createTextWithLabelElement(formElement, "Name Approbation", entity.getNameApprobation(),style);
+ }
+ }
+
if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_LSID)){
textLsid = formFactory.createLsidWithExceptionLabelElement(formElement, "Lsid", entity.getLsid(), style);
getEntity().setLsid(textLsid.parseText());
} else if (eventSource == combo_nomenclaturalCode){
getEntity().setNameType(combo_nomenclaturalCode.getSelection());
+ this.updateContent();
section_name.updateContent();
} else if(eventSource == this.text_nameApprobation){
((IBacterialName)getEntity()).setNameApprobation(text_nameApprobation.getText());