Revision cc21d978
Added by Katja Luther almost 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/supplementaldata/SupplementalDataPartE4.java | ||
---|---|---|
27 | 27 |
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade; |
28 | 28 |
import eu.etaxonomy.cdm.ext.occurrence.gbif.GbifResponse; |
29 | 29 |
import eu.etaxonomy.cdm.model.common.ICdmBase; |
30 |
import eu.etaxonomy.cdm.model.description.DescriptionBase; |
|
30 | 31 |
import eu.etaxonomy.cdm.model.description.DescriptionElementBase; |
31 | 32 |
import eu.etaxonomy.cdm.model.description.PolytomousKeyNode; |
32 | 33 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
... | ... | |
110 | 111 |
structuredSelection = new StructuredSelection(((GbifResponse)structuredSelection.getFirstElement()).getDerivedUnitFacade().innerDerivedUnit()); |
111 | 112 |
} |
112 | 113 |
else if(structuredSelection.getFirstElement() instanceof DescriptionElementBase ){ |
113 |
structuredSelection = new StructuredSelection((structuredSelection.getFirstElement())); |
|
114 |
structuredSelection = new StructuredSelection((structuredSelection.getFirstElement())); |
|
115 |
if (((DescriptionElementBase)structuredSelection.getFirstElement()).getInDescription().isComputed()){ |
|
116 |
setEnabled(false); |
|
117 |
} |
|
118 |
} |
|
119 |
else if(structuredSelection.getFirstElement() instanceof DescriptionBase ){ |
|
120 |
|
|
121 |
if (((DescriptionBase)structuredSelection.getFirstElement()).isComputed()){ |
|
122 |
setEnabled(false); |
|
123 |
} |
|
114 | 124 |
} |
115 | 125 |
else if(structuredSelection.getFirstElement() instanceof TermDto |
116 | 126 |
|| structuredSelection.getFirstElement() instanceof TermVocabularyDto){ |
Also available in: Unified diff
ref #8471: disable computed descriptions - supplemental data