Revision 49a64920
Added by Cherian Mathew almost 11 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/SpecimenTypeDesignationElement.java | ||
---|---|---|
15 | 15 |
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper; |
16 | 16 |
import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignation; |
17 | 17 |
import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignationStatus; |
18 |
import eu.etaxonomy.cdm.model.occurrence.DerivedUnitBase; |
|
19 |
import eu.etaxonomy.cdm.model.occurrence.Specimen; |
|
18 |
import eu.etaxonomy.cdm.model.occurrence.DerivedUnit; |
|
20 | 19 |
import eu.etaxonomy.taxeditor.ui.combo.TermComboElement; |
21 | 20 |
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection; |
22 | 21 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
... | ... | |
37 | 36 |
AbstractTypeDesignationElement<SpecimenTypeDesignation> { |
38 | 37 |
|
39 | 38 |
private TermComboElement<SpecimenTypeDesignationStatus> combo_typeStatus; |
40 |
private EntitySelectionElement<DerivedUnitBase> selection_typeSpecimen;
|
|
39 |
private EntitySelectionElement<DerivedUnit> selection_typeSpecimen; |
|
41 | 40 |
private TextWithLabelElement text_specimenTypeText; |
42 | 41 |
|
43 | 42 |
/** |
... | ... | |
69 | 68 |
@Override |
70 | 69 |
public void createControls(ICdmFormElement formElement, int style) { |
71 | 70 |
selection_typeSpecimen = formFactory |
72 |
.createSelectionElement(DerivedUnitBase.class,
|
|
71 |
.createSelectionElement(DerivedUnit.class, |
|
73 | 72 |
getConversationHolder(), formElement, "Specimen", null, |
74 | 73 |
EntitySelectionElement.ALL, style); |
75 | 74 |
combo_typeStatus = formFactory |
... | ... | |
102 | 101 |
// TODO this is a simple workaround to enter type specimen as text |
103 | 102 |
// strings |
104 | 103 |
if (getEntity().getTypeSpecimen() == null) { |
105 |
Specimen typeSpecimen = Specimen.NewInstance();
|
|
104 |
DerivedUnit typeSpecimen = DerivedUnit.NewInstance();
|
|
106 | 105 |
getEntity().setTypeSpecimen(typeSpecimen); |
107 | 106 |
} |
108 | 107 |
getEntity().getTypeSpecimen().setTitleCache( |
Also available in: Unified diff
Aligning Editor with 3.3 model changes. First phase commit which updates only the classes.
Branch not compilable at the moment.