Revision 23783f7a
Added by Niels Hoffmann about 12 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/DerivedUnitElement.java | ||
---|---|---|
12 | 12 |
|
13 | 13 |
import org.eclipse.swt.events.SelectionListener; |
14 | 14 |
|
15 |
import eu.etaxonomy.cdm.model.occurrence.DerivedUnitBase; |
|
15 | 16 |
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase; |
16 | 17 |
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection; |
17 | 18 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
18 | 19 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
19 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.SelectionType; |
|
20 | 20 |
import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionElement; |
21 |
import eu.etaxonomy.taxeditor.ui.selection.DerivedUnitBaseSelectionElement;
|
|
21 |
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
|
|
22 | 22 |
|
23 | 23 |
/** |
24 | 24 |
* <p> |
... | ... | |
32 | 32 |
public class DerivedUnitElement extends |
33 | 33 |
AbstractEntityCollectionElement<SpecimenOrObservationBase> { |
34 | 34 |
|
35 |
private DerivedUnitBaseSelectionElement selection_derivedUnit;
|
|
35 |
private EntitySelectionElement<DerivedUnitBase> selection_derivedUnit;
|
|
36 | 36 |
|
37 | 37 |
/** |
38 | 38 |
* <p> |
... | ... | |
70 | 70 |
/** {@inheritDoc} */ |
71 | 71 |
@Override |
72 | 72 |
public void createControls(ICdmFormElement element, int style) { |
73 |
selection_derivedUnit = (DerivedUnitBaseSelectionElement) formFactory.createSelectionElement(
|
|
74 |
SelectionType.DERIVED_UNIT, getConversationHolder(), element,
|
|
75 |
"Specimen", null, DerivedUnitBaseSelectionElement.SELECTABLE | DerivedUnitBaseSelectionElement.EDITABLE,
|
|
73 |
selection_derivedUnit = formFactory.createSelectionElement( |
|
74 |
DerivedUnitBase.class, getConversationHolder(), element,
|
|
75 |
"Specimen", null, EntitySelectionElement.SELECTABLE | EntitySelectionElement.EDITABLE,
|
|
76 | 76 |
style); |
77 | 77 |
} |
78 | 78 |
|
Also available in: Unified diff
Refactoring of selection elements. Additional minor refactoring. Fixed a bug with Translation Editor (#2752)