Revision 0ab60230
Added by Katja Luther almost 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/DescriptionElementSourceSection.java | ||
---|---|---|
18 | 18 |
import eu.etaxonomy.cdm.model.reference.OriginalSourceBase; |
19 | 19 |
import eu.etaxonomy.cdm.model.reference.OriginalSourceType; |
20 | 20 |
import eu.etaxonomy.cdm.model.reference.Reference; |
21 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
|
21 | 22 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
22 | 23 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
23 | 24 |
import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection; |
... | ... | |
58 | 59 |
Collection<OriginalSourceBase> sources = new HashSet<>(); |
59 | 60 |
sources.addAll(entity.getSources()); |
60 | 61 |
sources.addAll(entity.getInDescription().getSources()); |
61 |
if (entity.getInDescription().isComputed()){ |
|
62 |
if (entity.getInDescription().isComputed() && PreferencesUtil.isComputedDesciptionHandlingDisabled()){
|
|
62 | 63 |
this.setEnabled(false); |
63 | 64 |
} |
64 | 65 |
return sources; |
Also available in: Unified diff
ref #9630: make computed descriptions handling configurable