+ } else if (eventSource == selectionTaxonNameBase) {
+ TaxonName name = selectionTaxonNameBase.getSelection();
+ getEntity().setTaxonName(name);
+ //empty taxon field if name was deleted
+ //or does not belong the taxon
+ TaxonBase<?> taxonBase = selection_taxonBase.getEntity();
+ if(name==null ||
+ (taxonBase!=null && taxonBase.getName()!=null
+ && !taxonBase.getName().equals(name))){
+ selection_taxonBase.setEntity(null);
+ getEntity().setTaxon(null);
+ }