Revision 11f1f24f
Added by Katja Luther over 7 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/operation/MoveSynonymToAnotherAcceptedTaxonOperation.java | ||
---|---|---|
11 | 11 |
import org.eclipse.core.runtime.IStatus; |
12 | 12 |
|
13 | 13 |
import eu.etaxonomy.cdm.api.service.ITaxonService; |
14 |
import eu.etaxonomy.cdm.api.service.UpdateResult; |
|
14 | 15 |
import eu.etaxonomy.cdm.api.service.exception.HomotypicalGroupChangeException; |
15 | 16 |
import eu.etaxonomy.cdm.model.name.TaxonNameBase; |
16 | 17 |
import eu.etaxonomy.cdm.model.taxon.Synonym; |
... | ... | |
76 | 77 |
|
77 | 78 |
|
78 | 79 |
((TaxonNameEditor)EditorUtil.getActiveMultiPageTaxonEditor().getActiveEditor()).getConversationHolder().commit(); |
79 |
|
|
80 |
UpdateResult result; |
|
80 | 81 |
|
81 | 82 |
|
82 | 83 |
try { |
83 |
synRel = (SynonymRelationship) CdmStore.getService(ITaxonService.class).moveSynonymToAnotherTaxon(synRel,
|
|
84 |
result = CdmStore.getService(ITaxonService.class).moveSynonymToAnotherTaxon(synRel,
|
|
84 | 85 |
this.element.getUuid(), |
85 | 86 |
true, |
86 | 87 |
synRel.getType(), |
87 | 88 |
null, |
88 | 89 |
null, |
89 |
true).getCdmEntity();
|
|
90 |
true); |
|
90 | 91 |
} catch (HomotypicalGroupChangeException e) { |
91 | 92 |
// TODO Auto-generated catch block |
92 | 93 |
e.printStackTrace(); |
Also available in: Unified diff
fix move synonym to another taxon