Revision 682f52a4
Added by Katja Luther over 4 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/operation/SwapSynonymAndAcceptedOperation.java | ||
---|---|---|
39 | 39 |
// TODO store the old relationship for undo reasons |
40 | 40 |
private SynonymType synonymType; |
41 | 41 |
|
42 |
private boolean setNameInSource; |
|
43 |
|
|
42 | 44 |
/** |
43 | 45 |
* <p>Constructor for SwapSynonymAndAcceptedOperation.</p> |
44 | 46 |
* |
... | ... | |
50 | 52 |
*/ |
51 | 53 |
public SwapSynonymAndAcceptedOperation(String label, IUndoContext undoContext, |
52 | 54 |
Taxon taxon, Synonym synonym, IPostOperationEnabled postOperationEnabled, |
53 |
ICdmEntitySessionEnabled cdmEntitySessionEnabled) { |
|
55 |
ICdmEntitySessionEnabled cdmEntitySessionEnabled, boolean setNameInSource) {
|
|
54 | 56 |
super(Messages.SwapSynonymAndAcceptedOperation_SWAP_SYN_ACC_TAXON, undoContext, taxon, postOperationEnabled, cdmEntitySessionEnabled); |
55 |
|
|
57 |
this.setNameInSource = setNameInSource; |
|
56 | 58 |
this.synonym = synonym; |
57 | 59 |
} |
58 | 60 |
|
... | ... | |
63 | 65 |
|
64 | 66 |
monitor.worked(20); |
65 | 67 |
|
66 |
UpdateResult result = CdmStore.getService(ITaxonService.class).swapSynonymAndAcceptedTaxon(synonym.getUuid(), element.getUuid());
|
|
68 |
UpdateResult result = CdmStore.getService(ITaxonService.class).swapSynonymAndAcceptedTaxon(synonym.getUuid(), element.getUuid(), setNameInSource);//TODO
|
|
67 | 69 |
|
68 | 70 |
monitor.worked(40); |
69 | 71 |
|
Also available in: Unified diff
ref #3472: adapt editor to changes in methods moving descriptions