Revision 23783f7a
Added by Niels Hoffmann about 12 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NameTypeDesignationElement.java | ||
---|---|---|
21 | 21 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
22 | 22 |
import eu.etaxonomy.taxeditor.ui.element.CheckboxElement; |
23 | 23 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
24 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.SelectionType; |
|
25 |
import eu.etaxonomy.taxeditor.ui.selection.NameSelectionElement; |
|
24 |
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement; |
|
26 | 25 |
|
27 | 26 |
/** |
28 | 27 |
* <p> |
... | ... | |
38 | 37 |
|
39 | 38 |
private CheckboxElement checkbox_rejectedType; |
40 | 39 |
private CheckboxElement checkbox_conservedType; |
41 |
private NameSelectionElement selection_typeName;
|
|
40 |
private EntitySelectionElement<TaxonNameBase> selection_typeName;
|
|
42 | 41 |
private TermComboElement<NameTypeDesignationStatus> combo_typeStatus; |
43 | 42 |
|
44 | 43 |
/** |
... | ... | |
74 | 73 |
"Rejected Type", false, style); |
75 | 74 |
checkbox_conservedType = formFactory.createCheckbox(formElement, |
76 | 75 |
"Conserved Type", false, style); |
77 |
selection_typeName = (NameSelectionElement) formFactory
|
|
78 |
.createSelectionElement(SelectionType.NAME,
|
|
76 |
selection_typeName = formFactory |
|
77 |
.createSelectionElement(TaxonNameBase.class,
|
|
79 | 78 |
getConversationHolder(), formElement, "Name", null, |
80 |
NameSelectionElement.DEFAULT, style);
|
|
79 |
EntitySelectionElement.ALL, style);
|
|
81 | 80 |
combo_typeStatus = formFactory.createTermComboElement( |
82 | 81 |
NameTypeDesignationStatus.class, formElement, |
83 | 82 |
"Designation Status", null, style); |
Also available in: Unified diff
Refactoring of selection elements. Additional minor refactoring. Fixed a bug with Translation Editor (#2752)