Revision f35fc088
Added by Andreas Müller almost 3 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/operation/SwapSynonymAndAcceptedOperation.java | ||
---|---|---|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
9 |
|
|
10 | 9 |
package eu.etaxonomy.taxeditor.editor.name.operation; |
11 | 10 |
|
12 | 11 |
import java.util.ArrayList; |
... | ... | |
21 | 20 |
import eu.etaxonomy.cdm.api.service.ITaxonService; |
22 | 21 |
import eu.etaxonomy.cdm.api.service.UpdateResult; |
23 | 22 |
import eu.etaxonomy.cdm.model.taxon.Synonym; |
24 |
import eu.etaxonomy.cdm.model.taxon.SynonymType; |
|
25 | 23 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
26 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
|
27 | 24 |
import eu.etaxonomy.taxeditor.editor.l10n.Messages; |
28 | 25 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
29 | 26 |
import eu.etaxonomy.taxeditor.operation.AbstractPostTaxonOperation; |
... | ... | |
40 | 37 |
public class SwapSynonymAndAcceptedOperation extends AbstractPostTaxonOperation { |
41 | 38 |
|
42 | 39 |
private final Synonym synonym; |
43 |
// TODO store the old relationship for undo reasons |
|
44 |
private SynonymType synonymType; |
|
45 |
|
|
46 |
private List<TaxonNode> nodes; |
|
47 | 40 |
|
48 | 41 |
private boolean setNameInSource; |
49 | 42 |
|
... | ... | |
62 | 55 |
super(Messages.SwapSynonymAndAcceptedOperation_SWAP_SYN_ACC_TAXON, undoContext, taxon, postOperationEnabled, cdmEntitySessionEnabled); |
63 | 56 |
this.setNameInSource = setNameInSource; |
64 | 57 |
this.synonym = synonym; |
65 |
this.nodes = new ArrayList<TaxonNode>(taxon.getTaxonNodes()); |
|
66 |
|
|
67 | 58 |
} |
68 | 59 |
|
69 | 60 |
@Override |
... | ... | |
85 | 76 |
@Override |
86 | 77 |
public IStatus redo(IProgressMonitor monitor, IAdaptable info) |
87 | 78 |
throws ExecutionException { |
88 |
// TODO Auto-generated method stub |
|
89 | 79 |
return execute(monitor, info); |
90 | 80 |
} |
91 | 81 |
|
Also available in: Unified diff
cleanup