Project

General

Profile

Revision 3a082bf5

ID3a082bf508af929234a0e5ed59b6431bac5d034a
Parent 16a5a5e5
Child 6fde7721

Added by Patrick Plitzner almost 2 years ago

ref #7887 Enable supplemental data view for term DTOs

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/supplementaldata/SupplementalDataPartE4.java
33 33
import eu.etaxonomy.cdm.model.description.PolytomousKeyNode;
34 34
import eu.etaxonomy.cdm.model.taxon.Taxon;
35 35
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship;
36
import eu.etaxonomy.cdm.persistence.dto.TermDto;
37
import eu.etaxonomy.cdm.persistence.dto.TermVocabularyDto;
36 38
import eu.etaxonomy.taxeditor.editor.ITaxonEditor;
37 39
import eu.etaxonomy.taxeditor.event.WorkbenchEventConstants;
38 40
import eu.etaxonomy.taxeditor.l10n.Messages;
......
113 115
	        }
114 116
	        else if(structuredSelection.getFirstElement() instanceof GbifResponse){
115 117
	            structuredSelection = new StructuredSelection(((GbifResponse)structuredSelection.getFirstElement()).getDerivedUnitFacade().innerDerivedUnit());
116
	        } else if(structuredSelection.getFirstElement() instanceof DescriptionElementBase ){
118
	        }
119
	        else if(structuredSelection.getFirstElement() instanceof DescriptionElementBase ){
117 120
                structuredSelection = new StructuredSelection((structuredSelection.getFirstElement()));
118 121
            }
122
	        else if(structuredSelection.getFirstElement() instanceof TermDto
123
	                || structuredSelection.getFirstElement() instanceof TermVocabularyDto){
124
	            showViewer(structuredSelection, activePart, viewer);
125
	            return;
126
	        }
119 127

  
120 128

  
121 129
	        if(!(structuredSelection.getFirstElement() instanceof ICdmBase)){

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)