Revision 08ef23e2
Added by Katja Luther almost 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/combo/MisappliedRelationshipComboElement.java | ||
---|---|---|
38 | 38 |
String labelString, TaxonRelationshipType selection, boolean addEmptyElement, int style, boolean useAbbrevLabel) { |
39 | 39 |
super(formFactory, parentElement, TaxonRelationshipType.class, labelString, selection, addEmptyElement, style); |
40 | 40 |
List<TaxonRelationshipType> relTypes = new ArrayList<>(); |
41 |
relTypes.add(TaxonRelationshipType.MISAPPLIED_NAME_FOR()); |
|
42 |
relTypes.add(TaxonRelationshipType.PRO_PARTE_MISAPPLIED_NAME_FOR()); |
|
41 |
if (selection.isAnyMisappliedName()){ |
|
42 |
relTypes.add(TaxonRelationshipType.MISAPPLIED_NAME_FOR()); |
|
43 |
relTypes.add(TaxonRelationshipType.PRO_PARTE_MISAPPLIED_NAME_FOR()); |
|
44 |
relTypes.add(TaxonRelationshipType.PARTIAL_MISAPPLIED_NAME_FOR()); |
|
45 |
}else if (selection.isAnySynonym()){ |
|
46 |
relTypes.add(TaxonRelationshipType.PRO_PARTE_SYNONYM_FOR()); |
|
47 |
relTypes.add(TaxonRelationshipType.PARTIAL_SYNONYM_FOR()); |
|
48 |
} |
|
43 | 49 |
populateTerms(relTypes); |
44 | 50 |
setSelection(selection); |
45 | 51 |
} |
Also available in: Unified diff
adapt non-editable part of proparte/partial synonyms in name editor and adapt icons