Project

General

Profile

« Previous | Next » 

Revision 40ffaa10

Added by Cherian Mathew almost 11 years ago

UseRecordDetailElement : FIXME tag for 'Uses' code
SpecimenTypeDesignationElement : updated construction of DervivedUnit using default SpecimenOrObservationType
ScopeRestrictionSection : updated construction of DefinedTerm using default TermType
AbstractOriginalSourceElement : added combo list for OriginalSourceTypes
IdentifiableSourceElement : added interaction update code for the new OriginalSourceType combo list
SourceSection : changed construction of IdentifiableSource from a dialog to a default type

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/SpecimenTypeDesignationElement.java
16 16
import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignation;
17 17
import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignationStatus;
18 18
import eu.etaxonomy.cdm.model.occurrence.DerivedUnit;
19
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationType;
19 20
import eu.etaxonomy.taxeditor.ui.combo.TermComboElement;
20 21
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection;
21 22
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
......
100 101
		else if (eventSource == text_specimenTypeText) {
101 102
			// TODO this is a simple workaround to enter type specimen as text
102 103
			// strings
103
			if (getEntity().getTypeSpecimen() == null) {
104
				DerivedUnit typeSpecimen = DerivedUnit.NewInstance();
104
			if (getEntity().getTypeSpecimen() == null) {				
105
				DerivedUnit typeSpecimen = DerivedUnit.NewInstance(SpecimenOrObservationType.PreservedSpecimen);									
105 106
				getEntity().setTypeSpecimen(typeSpecimen);
106 107
			}
107 108
			getEntity().getTypeSpecimen().setTitleCache(

Also available in: Unified diff