Revision d7ad25d9
Added by Katja Luther over 2 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/DescriptionElementSourceElement.java | ||
---|---|---|
65 | 65 |
@Override |
66 | 66 |
public void setEntity(DescriptionElementSource entity) { |
67 | 67 |
super.setEntity(entity); |
68 |
if (PreferencesUtil.getBooleanValue(PreferencePredicate.ShowIdInSource.getKey())){ |
|
69 |
text_idInSource.setText(entity.getIdInSource()); |
|
68 |
if (text_idInSource != null){ |
|
69 |
if (PreferencesUtil.getBooleanValue(PreferencePredicate.ShowIdInSource.getKey())){ |
|
70 |
text_idInSource.setText(entity.getIdInSource()); |
|
71 |
} |
|
72 |
if (PreferencesUtil.getBooleanValue(PreferencePredicate.ShowNamespaceInSource.getKey())){ |
|
73 |
text_idNamespace.setText(entity.getIdNamespace()); |
|
74 |
} |
|
75 |
|
|
76 |
selection_reference.setEntity(entity.getCitation()); |
|
77 |
text_referenceDetail.setText(entity.getCitationMicroReference()); |
|
78 |
text_originaleNameString.setText(entity.getOriginalNameString()); |
|
79 |
selection_name.setEntity(entity.getNameUsedInSource()); |
|
80 |
combo_origsourcetype.setSelection(entity.getType()); |
|
70 | 81 |
} |
71 |
if (PreferencesUtil.getBooleanValue(PreferencePredicate.ShowNamespaceInSource.getKey())){ |
|
72 |
text_idNamespace.setText(entity.getIdNamespace()); |
|
73 |
} |
|
74 |
|
|
75 |
selection_reference.setEntity(entity.getCitation()); |
|
76 |
text_referenceDetail.setText(entity.getCitationMicroReference()); |
|
77 |
text_originaleNameString.setText(entity.getOriginalNameString()); |
|
78 |
selection_name.setEntity(entity.getNameUsedInSource()); |
|
79 |
combo_origsourcetype.setSelection(entity.getType()); |
|
80 | 82 |
} |
81 | 83 |
|
82 | 84 |
/** {@inheritDoc} */ |
Also available in: Unified diff
ref #9838: change order of ui element creation and setting entity in collection elements