Revision 682f52a4
Added by Katja Luther over 4 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/operation/MoveDescriptionToOtherTaxonOperation.java | ||
---|---|---|
37 | 37 |
|
38 | 38 |
private final TaxonDescription description; |
39 | 39 |
|
40 |
private boolean setNameInSource; |
|
41 |
|
|
40 | 42 |
/** |
41 | 43 |
* <p>Constructor for ChangeAcceptedTaxonToSynonymOperation.</p> |
42 | 44 |
* |
... | ... | |
53 | 55 |
TaxonNode targetTaxonNode, |
54 | 56 |
IPostOperationEnabled postOperationEnabled, |
55 | 57 |
IConversationEnabled conversationEnabled, |
56 |
ICdmEntitySessionEnabled cdmEntitySessionEnabled) { |
|
58 |
ICdmEntitySessionEnabled cdmEntitySessionEnabled, |
|
59 |
boolean setNameInSource) { |
|
57 | 60 |
super(label, undoContext, postOperationEnabled, conversationEnabled, cdmEntitySessionEnabled); // FIXME is this the right constructor ??? |
58 | 61 |
this.description = description; |
62 |
this.setNameInSource = setNameInSource; |
|
59 | 63 |
this.newAcceptedTaxonNode = targetTaxonNode; |
60 | 64 |
} |
61 | 65 |
|
... | ... | |
71 | 75 |
monitor.worked(20); |
72 | 76 |
} |
73 | 77 |
bind(); |
74 |
CdmStore.getService(IDescriptionService.class).moveTaxonDescription(description.getUuid(), newAcceptedTaxonNode.getTaxon().getUuid()); |
|
78 |
CdmStore.getService(IDescriptionService.class).moveTaxonDescription(description.getUuid(), newAcceptedTaxonNode.getTaxon().getUuid(), setNameInSource);
|
|
75 | 79 |
if (monitor != null){ |
76 | 80 |
monitor.worked(40); |
77 | 81 |
} |
Also available in: Unified diff
ref #3472: adapt editor to changes in methods moving descriptions