Revision 23783f7a
Added by Niels Hoffmann about 12 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/TaxonRelationshipDetailElement.java | ||
---|---|---|
19 | 19 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
20 | 20 |
import eu.etaxonomy.taxeditor.ui.element.CdmPropertyChangeEvent; |
21 | 21 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
22 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.SelectionType; |
|
23 | 22 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement; |
24 |
import eu.etaxonomy.taxeditor.ui.selection.TaxonSelectionElement;
|
|
23 |
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
|
|
25 | 24 |
|
26 | 25 |
/** |
27 | 26 |
* @author n.hoffmann |
... | ... | |
32 | 31 |
|
33 | 32 |
private TermComboElement<TaxonRelationshipTypeInverseContainer> combo_taxonRelationshipType; |
34 | 33 |
|
35 |
private TaxonSelectionElement selection_relatedTaxon;
|
|
34 |
private EntitySelectionElement<Taxon> selection_relatedTaxon;
|
|
36 | 35 |
|
37 | 36 |
public TaxonRelationshipDetailElement(CdmFormFactory formFactory, |
38 | 37 |
ICdmFormElement formElement) { |
... | ... | |
47 | 46 |
formElement, "Relationship Type", |
48 | 47 |
getTaxonRelationshipTypeInverseContainer(), style); |
49 | 48 |
combo_taxonRelationshipType.setEnabled(false); |
50 |
selection_relatedTaxon = (TaxonSelectionElement) formFactory.createSelectionElement(
|
|
51 |
SelectionType.TAXON, getConversationHolder(),
|
|
49 |
selection_relatedTaxon = formFactory.createSelectionElement( |
|
50 |
Taxon.class, getConversationHolder(),
|
|
52 | 51 |
formElement, "Related Taxon", getRelatedTaxon(), |
53 |
TaxonSelectionElement.SELECTABLE, style);
|
|
52 |
EntitySelectionElement.SELECTABLE, style);
|
|
54 | 53 |
} |
55 | 54 |
|
56 | 55 |
private Taxon getRelatedTaxon() { |
Also available in: Unified diff
Refactoring of selection elements. Additional minor refactoring. Fixed a bug with Translation Editor (#2752)