import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
import eu.etaxonomy.taxeditor.ui.section.ITaxonBaseDetailSection;
+import eu.etaxonomy.taxeditor.ui.section.description.detail.AbstractDetailedDescriptionDetailElement;
/**
* @author n.hoffmann
return formFactory.createHybridDetailElement(parentElement);
}
+ public void updateContent() {
+ ((AbstractCdmDetailElement)this.detailElement).setEntity(getEntity());
+
+ }
+
}
}
- 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(combo_nomenclaturalCode!=null){
// combo_nomenclaturalCode.setEnabled(false);
// }
-
+
if(toggleable_cache!=null){
toggleable_cache.setEnabled(getEntity().isProtectedTitleCache() || getEntity().isProtectedFullTitleCache());
setIrrelevant(toggleable_cache.getState(),
} else if (eventSource == combo_nomenclaturalCode){
getEntity().setNameType(combo_nomenclaturalCode.getSelection());
this.updateContent();
- section_name.updateContent();
+ section_hybrid.setEntity(getEntity());
+ section_author.setEntity(getEntity());
+ section_name.setEntity(getEntity());
} else if(eventSource == this.text_nameApprobation){
((IBacterialName)getEntity()).setNameApprobation(text_nameApprobation.getText());
}