Revision 09015fb4
Added by Katja Luther about 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/SpecimenTypeDesignationElement.java | ||
---|---|---|
18 | 18 |
import eu.etaxonomy.cdm.model.occurrence.DerivedUnit; |
19 | 19 |
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationType; |
20 | 20 |
import eu.etaxonomy.cdm.model.term.TermType; |
21 |
import eu.etaxonomy.taxeditor.l10n.Messages; |
|
21 | 22 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
22 | 23 |
import eu.etaxonomy.taxeditor.ui.combo.TermComboElement; |
23 | 24 |
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection; |
... | ... | |
79 | 80 |
public void handleEvent(Object eventSource) { |
80 | 81 |
super.handleEvent(eventSource); |
81 | 82 |
if (eventSource == combo_typeStatus) { |
82 |
if (getEntity().getTypeStatus().isLectotype() && !combo_typeStatus.getSelection().isLectotype() && entity.getCitation() != null){ |
|
83 |
boolean ok = MessagingUtils.confirmDialog("Citation will be removed", "When changing the type from lectotype to a non lectotype the citation will be removed.Do you want to continue?"); |
|
83 |
|
|
84 |
if (entity.getTypeStatus() != null && getEntity().getTypeStatus().isLectotype() && !combo_typeStatus.getSelection().isLectotype() && entity.getCitation() != null){ |
|
85 |
boolean ok = MessagingUtils.confirmDialog(Messages.NameTypeDesignationElement_4, Messages.NameTypeDesignationElement_5); |
|
84 | 86 |
if (!ok){ |
85 | 87 |
combo_typeStatus.setSelection(entity.getTypeStatus()); |
86 | 88 |
return; |
Also available in: Unified diff
ref #8136: externalization