Revision 23588da1
Added by Katja Luther over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NonViralNameDetailElement.java | ||
---|---|---|
60 | 60 |
|
61 | 61 |
combo_nomenclaturalCode = formFactory.createEnumComboElement(NomenclaturalCode.class, formElement, style); |
62 | 62 |
combo_nomenclaturalCode.setSelection(entity.getNomenclaturalCode()); |
63 |
textLsid = formFactory.createLsidWithExceptionLabelElement(formElement, "Lsid", entity.getLsid(), style); |
|
64 | 63 |
if (entity.getNameType().equals(NomenclaturalCode.ICNB)){ |
65 | 64 |
text_nameApprobation = formFactory.createTextWithLabelElement(formElement, "Name Approbation", entity.getNameApprobation(),style); |
66 | 65 |
} |
66 |
textLsid = formFactory.createLsidWithExceptionLabelElement(formElement, "Lsid", entity.getLsid(), style); |
|
67 |
|
|
67 | 68 |
|
68 | 69 |
}else{ |
69 | 70 |
if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_CACHE)){ |
... | ... | |
74 | 75 |
combo_nomenclaturalCode = formFactory.createEnumComboElement(NomenclaturalCode.class, formElement, style); |
75 | 76 |
combo_nomenclaturalCode.setSelection(entity.getNomenclaturalCode()); |
76 | 77 |
} |
78 |
if (entity.getNameType().equals(NomenclaturalCode.ICNB)){ |
|
79 |
if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NAME_APPROBATION)){ |
|
80 |
text_nameApprobation = formFactory.createTextWithLabelElement(formElement, "Name Approbation", entity.getNameApprobation(),style); |
|
81 |
} |
|
82 |
} |
|
83 |
|
|
77 | 84 |
if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_LSID)){ |
78 | 85 |
textLsid = formFactory.createLsidWithExceptionLabelElement(formElement, "Lsid", entity.getLsid(), style); |
79 | 86 |
|
... | ... | |
185 | 192 |
getEntity().setLsid(textLsid.parseText()); |
186 | 193 |
} else if (eventSource == combo_nomenclaturalCode){ |
187 | 194 |
getEntity().setNameType(combo_nomenclaturalCode.getSelection()); |
195 |
this.updateContent(); |
|
188 | 196 |
section_name.updateContent(); |
189 | 197 |
} else if(eventSource == this.text_nameApprobation){ |
190 | 198 |
((IBacterialName)getEntity()).setNameApprobation(text_nameApprobation.getText()); |
Also available in: Unified diff
updateContent of NonviralNamedetail part if nc is changed