Revision 272b6c5d
Added by Katja Luther almost 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/e4/TaxonEditorInputE4.java | ||
---|---|---|
40 | 40 |
import eu.etaxonomy.cdm.model.taxon.TaxonBase; |
41 | 41 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
42 | 42 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship; |
43 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType; |
|
44 | 43 |
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap; |
45 | 44 |
import eu.etaxonomy.taxeditor.editor.CdmEntitySessionInput; |
46 | 45 |
import eu.etaxonomy.taxeditor.editor.ChooseFromMultipleAcceptedTaxaDialog; |
... | ... | |
143 | 142 |
Set<Taxon> acceptedTaxa = new HashSet<Taxon>(); |
144 | 143 |
Set<TaxonRelationship> relations = taxon.getRelationsFromThisTaxon(); |
145 | 144 |
for(TaxonRelationship relation : relations){ |
146 |
if(relation.getType().equals(TaxonRelationshipType.MISAPPLIED_NAME_FOR())){
|
|
145 |
if(relation.getType().isAnyMisappliedName() || relation.getType().isAnySynonym()){
|
|
147 | 146 |
acceptedTaxa.add(relation.getToTaxon()); |
148 | 147 |
} |
149 | 148 |
} |
Also available in: Unified diff
handle all MAN and Synonyms in setInputForRelatedTaxa to open in name editor