Project

General

Profile

« Previous | Next » 

Revision e4e1656c

Added by Patrick Plitzner over 8 years ago

Add support for generic SpecimenOrObservationBase class to
EntitySelectionElement and selection wizard

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/SelectionDialogFactory.java
34 34
import eu.etaxonomy.cdm.model.occurrence.Collection;
35 35
import eu.etaxonomy.cdm.model.occurrence.DerivedUnit;
36 36
import eu.etaxonomy.cdm.model.occurrence.FieldUnit;
37
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
37 38
import eu.etaxonomy.cdm.model.reference.Reference;
38 39
import eu.etaxonomy.cdm.model.taxon.Classification;
39 40
import eu.etaxonomy.cdm.model.taxon.Synonym;
......
103 104
			return null;
104 105
		}
105 106
		if(clazz.equals(DerivedUnit.class)){
106
			return (T) DerivedUnitSelectionDialog.select(shell, conversation, (DerivedUnit) currentSelection);
107
		    return (T) DerivedUnitSelectionDialog.select(shell, conversation, (DerivedUnit) currentSelection);
107 108
		}
108 109
		if(clazz.equals(FieldUnit.class)){
109
			return (T) FieldUnitSelectionDialog.select(shell, conversation, (FieldUnit) currentSelection);
110
		    return (T) FieldUnitSelectionDialog.select(shell, conversation, (FieldUnit) currentSelection);
111
		}
112
		if(clazz.equals(SpecimenOrObservationBase.class)){
113
		    return (T) SpecimenOrObservationBaseSelectionDialog.select(shell, conversation, (SpecimenOrObservationBase) currentSelection);
110 114
		}
111 115
		if(clazz.equals(NamedArea.class)){
112 116
		    if(parentElement instanceof IEntityElement && ((IEntityElement) parentElement).getEntity() instanceof DerivedUnitFacade){

Also available in: Unified diff