Revision ceec0175
Added by Andreas Müller about 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/reference/OriginalSourceElement.java | ||
---|---|---|
15 | 15 |
import eu.etaxonomy.cdm.model.common.CdmBase; |
16 | 16 |
import eu.etaxonomy.cdm.model.description.DescriptionElementSource; |
17 | 17 |
import eu.etaxonomy.cdm.model.reference.INomenclaturalReference; |
18 |
import eu.etaxonomy.cdm.model.reference.NamedSourceBase; |
|
18 | 19 |
import eu.etaxonomy.cdm.model.reference.OriginalSourceBase; |
19 | 20 |
import eu.etaxonomy.cdm.model.reference.Reference; |
20 | 21 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
... | ... | |
84 | 85 |
advancedSection.setEntity(entity); |
85 | 86 |
if (entity == null){ |
86 | 87 |
advancedSection.setExpanded(false); |
87 |
}else if (StringUtils.isNotBlank(entity.getIdInSource()) || StringUtils.isNotBlank(entity.getIdNamespace()) || StringUtils.isNotBlank(entity.getOriginalNameString()) || (entity.getLinks() != null && !entity.getLinks().isEmpty()) || (entity instanceof DescriptionElementSource && ((DescriptionElementSource)entity).getNameUsedInSource() != null)){
|
|
88 |
}else if (StringUtils.isNotBlank(entity.getIdInSource()) || StringUtils.isNotBlank(entity.getIdNamespace()) || StringUtils.isNotBlank(entity.getOriginalNameString()) || (entity.getLinks() != null && !entity.getLinks().isEmpty()) || (entity instanceof DescriptionElementSource && ((NamedSourceBase)entity).getNameUsedInSource() != null)){
|
|
88 | 89 |
advancedSection.setExpanded(true); |
89 | 90 |
}else{ |
90 | 91 |
advancedSection.setExpanded(false); |
Also available in: Unified diff
ref #9331 further taxeditor adaptations to NamedSourceBase