import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection;
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
-import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.SelectionType;
import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionElement;
-import eu.etaxonomy.taxeditor.ui.selection.ReferenceSelectionElement;
+import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
/**
* <p>
public class DescriptionSourceElement extends
AbstractEntityCollectionElement<Reference> {
- private ReferenceSelectionElement selection_descriptionSource;
+ private EntitySelectionElement<Reference> selection_descriptionSource;
/**
* <p>
/** {@inheritDoc} */
@Override
public void createControls(ICdmFormElement element, int style) {
- selection_descriptionSource = (ReferenceSelectionElement) formFactory
- .createSelectionElement(SelectionType.REFERENCE,
+ selection_descriptionSource = formFactory
+ .createSelectionElement(Reference.class,
getConversationHolder(), element, "Description Source",
- null, ReferenceSelectionElement.DEFAULT, style);
+ null, EntitySelectionElement.ALL, style);
}
/** {@inheritDoc} */