Revision 57204e91
Added by Katja Luther over 1 year ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/DescriptionElementSourceElement.java | ||
---|---|---|
84 | 84 |
combo_origsourcetype.setSelection(entity.getType()); |
85 | 85 |
externalLinks.setEntity(entity); |
86 | 86 |
} |
87 |
if (selection_specimen != null) { |
|
88 |
selection_specimen.setEnabled(selection_reference.getEntity()== null); |
|
89 |
selection_reference.setEnabled(selection_specimen.getEntity()== null); |
|
90 |
} |
|
87 | 91 |
} |
88 | 92 |
|
89 | 93 |
@Override |
... | ... | |
110 | 114 |
public void setEnabled(boolean enabled) { |
111 | 115 |
super.setEnabled(enabled); |
112 | 116 |
externalLinks.setEnabled(isEnabled); |
117 |
if (selection_specimen != null) { |
|
118 |
selection_specimen.setEnabled(selection_reference.getEntity()== null); |
|
119 |
selection_reference.setEnabled(selection_specimen.getEntity()== null); |
|
120 |
} |
|
113 | 121 |
} |
114 | 122 |
|
115 | 123 |
} |
Also available in: Unified diff
ref #10202: disable reference or specimen selection