Revision 23783f7a
Added by Niels Hoffmann about 12 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/DescriptionSourceElement.java | ||
---|---|---|
16 | 16 |
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection; |
17 | 17 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
18 | 18 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
19 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.SelectionType; |
|
20 | 19 |
import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionElement; |
21 |
import eu.etaxonomy.taxeditor.ui.selection.ReferenceSelectionElement;
|
|
20 |
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
|
|
22 | 21 |
|
23 | 22 |
/** |
24 | 23 |
* <p> |
... | ... | |
32 | 31 |
public class DescriptionSourceElement extends |
33 | 32 |
AbstractEntityCollectionElement<Reference> { |
34 | 33 |
|
35 |
private ReferenceSelectionElement selection_descriptionSource;
|
|
34 |
private EntitySelectionElement<Reference> selection_descriptionSource;
|
|
36 | 35 |
|
37 | 36 |
/** |
38 | 37 |
* <p> |
... | ... | |
62 | 61 |
/** {@inheritDoc} */ |
63 | 62 |
@Override |
64 | 63 |
public void createControls(ICdmFormElement element, int style) { |
65 |
selection_descriptionSource = (ReferenceSelectionElement) formFactory
|
|
66 |
.createSelectionElement(SelectionType.REFERENCE,
|
|
64 |
selection_descriptionSource = formFactory |
|
65 |
.createSelectionElement(Reference.class,
|
|
67 | 66 |
getConversationHolder(), element, "Description Source", |
68 |
null, ReferenceSelectionElement.DEFAULT, style);
|
|
67 |
null, EntitySelectionElement.ALL, style);
|
|
69 | 68 |
} |
70 | 69 |
|
71 | 70 |
/** {@inheritDoc} */ |
Also available in: Unified diff
Refactoring of selection elements. Additional minor refactoring. Fixed a bug with Translation Editor (#2752)