Project

General

Profile

« Previous | Next » 

Revision 2a4b0092

Added by Katja Luther over 5 years ago

ref #7793: show supplemental data for distribution editor and smaller bugfix for distribution editor preferences

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/supplementaldata/SupplementalDataPartE4.java
29 29
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
30 30
import eu.etaxonomy.cdm.ext.occurrence.gbif.GbifResponse;
31 31
import eu.etaxonomy.cdm.model.common.ICdmBase;
32
import eu.etaxonomy.cdm.model.description.DescriptionElementBase;
32 33
import eu.etaxonomy.cdm.model.description.PolytomousKeyNode;
33 34
import eu.etaxonomy.cdm.model.taxon.Taxon;
34 35
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship;
......
112 113
	        }
113 114
	        else if(structuredSelection.getFirstElement() instanceof GbifResponse){
114 115
	            structuredSelection = new StructuredSelection(((GbifResponse)structuredSelection.getFirstElement()).getDerivedUnitFacade().innerDerivedUnit());
115
	        }
116
	        } else if(structuredSelection.getFirstElement() instanceof DescriptionElementBase ){
117
                structuredSelection = new StructuredSelection((structuredSelection.getFirstElement()));
118
            }
119

  
116 120

  
117 121
	        if(!(structuredSelection.getFirstElement() instanceof ICdmBase)){
118 122
	            showEmptyPage();

Also available in: Unified diff