Revision d7ad25d9
Added by Katja Luther over 2 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/DeterminationEventDetailElement.java | ||
---|---|---|
53 | 53 |
@Override |
54 | 54 |
public void setEntity(DeterminationEvent entity) { |
55 | 55 |
this.entity = entity; |
56 |
combo_determinationModifier.setSelection(entity.getModifier()); |
|
57 |
selection_taxonBase.setEntity(entity.getTaxon()); |
|
58 |
selectionTaxonNameBase.setEntity(entity.getTaxonName()); |
|
56 |
if (combo_determinationModifier != null){ |
|
57 |
combo_determinationModifier.setSelection(entity.getModifier()); |
|
58 |
selection_taxonBase.setEntity(entity.getTaxon()); |
|
59 |
selectionTaxonNameBase.setEntity(entity.getTaxonName()); |
|
60 |
} |
|
59 | 61 |
super.setEntity(entity); |
60 | 62 |
} |
61 | 63 |
|
... | ... | |
80 | 82 |
|
81 | 83 |
combo_determinationModifier = formFactory.createDefinedTermComboElement(TermType.DeterminationModifier, |
82 | 84 |
element, "Modifier", null, style); |
85 |
if (entity != null){ |
|
86 |
combo_determinationModifier.setSelection(entity.getModifier()); |
|
87 |
selection_taxonBase.setEntity(entity.getTaxon()); |
|
88 |
selectionTaxonNameBase.setEntity(entity.getTaxonName()); |
|
89 |
} |
|
83 | 90 |
} |
84 | 91 |
|
85 | 92 |
@Override |
Also available in: Unified diff
ref #9838: change order of ui element creation and setting entity in collection elements