Revision 8195658e
Added by Andreas Kohlbecker about 3 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/name/NameTypeDesignationPresenter.java | ||
---|---|---|
449 | 449 |
*/ |
450 | 450 |
private void configureReferencePopupEditor(ReferencePopupEditor referenceEditorPopup, UUID referenceUUID) { |
451 | 451 |
|
452 |
if (newReferenceInstantiator != null) { |
|
453 |
referenceEditorPopup.setBeanInstantiator(newReferenceInstantiator); |
|
454 |
} |
|
455 |
|
|
456 | 452 |
// TODO this should be configurable per UI - |
457 | 453 |
// RegistrationUiReferenceEditorFormConfigurator as spring bean, |
458 | 454 |
// different spring profiles |
459 | 455 |
// see also similar methods in TaxonName and SpecimenTypeDesigationEditors |
460 |
referenceEditorPopup.setEditorComponentsConfigurator(new RegistrationUiReferenceEditorFormConfigurator(newReferenceInstantiator != null)); |
|
456 |
RegistrationUiReferenceEditorFormConfigurator |
|
457 |
.create(newReferenceInstantiator != null) |
|
458 |
.configure(referenceEditorPopup, newReferenceInstantiator); |
|
461 | 459 |
|
462 | 460 |
referenceEditorPopup.loadInEditor(referenceUUID); |
463 | 461 |
// TODO limit ??? referenceEditorPopup.getTypeSelect().setValue(ReferenceType.Article); |
464 |
|
|
465 | 462 |
} |
466 | 463 |
|
467 | 464 |
} |
Also available in: Unified diff
fix #9480 SpecimenTypeDesignationEditor: limiting designationReference editing to sections of published unit