Revision c918301b
Added by Katja Luther about 10 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/operation/ChangeSynonymToMisapplicationOperation.java | ||
---|---|---|
17 | 17 |
import org.eclipse.core.runtime.IProgressMonitor; |
18 | 18 |
import org.eclipse.core.runtime.IStatus; |
19 | 19 |
|
20 |
import eu.etaxonomy.cdm.api.service.ITaxonNodeService; |
|
20 | 21 |
import eu.etaxonomy.cdm.api.service.ITaxonService; |
21 | 22 |
import eu.etaxonomy.cdm.model.name.TaxonNameBase; |
22 | 23 |
import eu.etaxonomy.cdm.model.taxon.Synonym; |
... | ... | |
62 | 63 |
public IStatus execute(IProgressMonitor monitor, IAdaptable info) |
63 | 64 |
throws ExecutionException { |
64 | 65 |
|
65 |
// get name from synonym |
|
66 |
/*// get name from synonym
|
|
66 | 67 |
TaxonNameBase<?, ?> synonymName = synonym.getName(); |
67 | 68 |
|
68 | 69 |
// make misapplied name with synonym name |
... | ... | |
79 | 80 |
|
80 | 81 |
// add misapplied name to taxon |
81 | 82 |
// TODO add microcitation for misapplied name to property sheet (if microcitation is indeed needed?!) |
82 |
element.addMisappliedName(misapplication, null, null); |
|
83 |
|
|
83 |
element.addMisappliedName(misapplication, null, null);*/
|
|
84 |
misapplication = CdmStore.getService(ITaxonService.class).changeSynonymToRelatedTaxon(synonym, element, TaxonRelationshipType.MISAPPLIED_NAME_FOR(), null, null); |
|
84 | 85 |
// redraw editor if exists |
85 | 86 |
return postExecute(misapplication); |
86 | 87 |
} |
Also available in: Unified diff
move the change accepted to Synonym Operation to taxon navigator.