Project

General

Profile

« Previous | Next » 

Revision 6d636c9e

Added by Andreas Kohlbecker over 5 years ago

ref #7648 generalizing bean instantiation in cdm presenters

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/name/TaxonNameEditorPresenter.java
217 217
        if(identifier != null){
218 218
            taxonName = getRepo().getNameService().load(identifier, initStrategy);
219 219
        } else {
220
            taxonName = TaxonNameFactory.NewNameInstance(RegistrationUIDefaults.NOMENCLATURAL_CODE, Rank.SPECIES());
220
            if(cdmEntityInstantiator != null) {
221
                taxonName = cdmEntityInstantiator.createNewBean();
222
            } else {
223
                taxonName = TaxonNameFactory.NewNameInstance(RegistrationUIDefaults.NOMENCLATURAL_CODE, Rank.SPECIES());
224
            }
221 225
        }
222 226

  
223 227
        if(getView().isModeEnabled(TaxonNamePopupEditorMode.NOMENCLATURALREFERENCE_SECTION_EDITING_ONLY)){

Also available in: Unified diff