1
|
/**
|
2
|
* Copyright (C) 2007 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
|
10
|
package eu.etaxonomy.taxeditor.editor.e4;
|
11
|
|
12
|
import java.util.ArrayList;
|
13
|
import java.util.Arrays;
|
14
|
import java.util.HashMap;
|
15
|
import java.util.HashSet;
|
16
|
import java.util.Iterator;
|
17
|
import java.util.List;
|
18
|
import java.util.Map;
|
19
|
import java.util.Map.Entry;
|
20
|
import java.util.Set;
|
21
|
import java.util.UUID;
|
22
|
|
23
|
import org.eclipse.core.commands.ExecutionException;
|
24
|
import org.eclipse.core.commands.operations.IOperationHistory;
|
25
|
import org.eclipse.core.runtime.IAdaptable;
|
26
|
import org.eclipse.core.runtime.IStatus;
|
27
|
import org.eclipse.core.runtime.NullProgressMonitor;
|
28
|
import org.eclipse.core.runtime.Status;
|
29
|
import org.eclipse.e4.ui.di.UISynchronize;
|
30
|
import org.eclipse.ui.ide.undo.WorkspaceUndoUtil;
|
31
|
|
32
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
|
33
|
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
|
34
|
import eu.etaxonomy.cdm.api.service.IClassificationService;
|
35
|
import eu.etaxonomy.cdm.api.service.INameService;
|
36
|
import eu.etaxonomy.cdm.api.service.ITaxonNodeService;
|
37
|
import eu.etaxonomy.cdm.api.service.ITaxonService;
|
38
|
import eu.etaxonomy.cdm.api.service.config.SynonymDeletionConfigurator;
|
39
|
import eu.etaxonomy.cdm.api.service.config.TaxonBaseDeletionConfigurator;
|
40
|
import eu.etaxonomy.cdm.api.service.config.TaxonDeletionConfigurator;
|
41
|
import eu.etaxonomy.cdm.model.common.CdmBase;
|
42
|
import eu.etaxonomy.cdm.model.name.HybridRelationship;
|
43
|
import eu.etaxonomy.cdm.model.name.TaxonName;
|
44
|
import eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode;
|
45
|
import eu.etaxonomy.cdm.model.taxon.Synonym;
|
46
|
import eu.etaxonomy.cdm.model.taxon.Taxon;
|
47
|
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
|
48
|
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
|
49
|
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship;
|
50
|
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
|
51
|
import eu.etaxonomy.taxeditor.editor.CdmEntitySessionInput;
|
52
|
import eu.etaxonomy.taxeditor.editor.ChooseFromMultipleAcceptedTaxaDialog;
|
53
|
import eu.etaxonomy.taxeditor.editor.ChooseFromMultipleTaxonNodesDialog;
|
54
|
import eu.etaxonomy.taxeditor.editor.l10n.Messages;
|
55
|
import eu.etaxonomy.taxeditor.model.AbstractUtility;
|
56
|
import eu.etaxonomy.taxeditor.model.DataChangeBridge;
|
57
|
import eu.etaxonomy.taxeditor.model.MessagingUtils;
|
58
|
import eu.etaxonomy.taxeditor.operation.AbstractPostOperation;
|
59
|
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
|
60
|
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
|
61
|
import eu.etaxonomy.taxeditor.store.CdmStore;
|
62
|
import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin;
|
63
|
|
64
|
|
65
|
/**
|
66
|
*
|
67
|
* @author pplitzner
|
68
|
* @date Aug 24, 2017
|
69
|
*
|
70
|
*/
|
71
|
public class TaxonEditorInputE4 extends CdmEntitySessionInput implements IConversationEnabled {
|
72
|
|
73
|
private static final String INCORRECT_STATE = Messages.TaxonEditorInput_INCORRECT_STATE;
|
74
|
|
75
|
private final ConversationHolder conversation;
|
76
|
|
77
|
private TaxonNode taxonNode;
|
78
|
|
79
|
private Map<TaxonBase, TaxonBaseDeletionConfigurator> toDeletes = new HashMap<>();
|
80
|
private Set<Synonym> toSaveNewSynonyms = new HashSet<>();
|
81
|
private List<TaxonBase> toSaveNewConcepts = new ArrayList<>();
|
82
|
private List<TaxonName> toSaveNewNames = new ArrayList<>();
|
83
|
|
84
|
|
85
|
private Set<AbstractPostOperation> operations = new HashSet<>();
|
86
|
|
87
|
private TaxonEditorInputDataChangeBehaviourE4 dataChangeBehavior;
|
88
|
|
89
|
private TaxonBase<?> initiallySelectedTaxonBase;
|
90
|
|
91
|
private UISynchronize sync;
|
92
|
|
93
|
|
94
|
public void setSync(UISynchronize sync) {
|
95
|
this.sync = sync;
|
96
|
}
|
97
|
|
98
|
private enum CdmType {
|
99
|
TAXON_NODE,
|
100
|
TAXON_BASE,
|
101
|
PARENT_TAXON_NODE
|
102
|
}
|
103
|
|
104
|
private TaxonEditorInputE4(UUID uuid, CdmType type) {
|
105
|
super(true);
|
106
|
this.conversation = CdmStore.createConversation();
|
107
|
switch(type) {
|
108
|
case PARENT_TAXON_NODE:
|
109
|
initForParentTaxonNode(uuid);
|
110
|
break;
|
111
|
case TAXON_BASE:
|
112
|
initForTaxonBase(uuid);
|
113
|
break;
|
114
|
case TAXON_NODE:
|
115
|
initForTaxonNode(uuid);
|
116
|
break;
|
117
|
}
|
118
|
}
|
119
|
|
120
|
private void init(TaxonNode taxonNode) {
|
121
|
this.taxonNode = taxonNode;
|
122
|
}
|
123
|
|
124
|
|
125
|
private void initForTaxonNode(UUID taxonNodeUuid) {
|
126
|
this.getCdmEntitySession().bind();
|
127
|
TaxonNode taxonNode = CdmStore.getService(ITaxonNodeService.class).load(taxonNodeUuid, getTaxonNodePropertyPaths());
|
128
|
// TaxonNode taxonNode = getCdmEntitySession().remoteLoad(CdmStore.getService(ITaxonNodeService.class), taxonNodeUuid, getTaxonNodePropertyPaths());
|
129
|
if(taxonNode == null){
|
130
|
MessagingUtils.warningDialog(Messages.TaxonEditorInput_NOT_IMPLEMENTED, TaxonEditorInputE4.class, Messages.TaxonEditorInput_NOT_IMPLEMENTED_MESSAGE);
|
131
|
}
|
132
|
init(taxonNode);
|
133
|
setInitiallySelectedTaxonBase(getTaxon());
|
134
|
|
135
|
}
|
136
|
|
137
|
private void initForTaxonBase(UUID taxonBaseUuid) {
|
138
|
this.getCdmEntitySession().bind();
|
139
|
// TaxonBase taxonBase = CdmStore.getService(ITaxonService.class).load(taxonBaseUuid, getTaxonBasePropertyPaths());
|
140
|
TaxonBase taxonBase = getCdmEntitySession().remoteLoad(CdmStore.getService(ITaxonService.class), taxonBaseUuid, getTaxonBasePropertyPaths());
|
141
|
if (taxonBase != null){
|
142
|
if(taxonBase.isInstanceOf(Taxon.class)){
|
143
|
Taxon taxon = CdmBase.deproxy(taxonBase, Taxon.class);
|
144
|
setInitiallySelectedTaxonBase(taxon);
|
145
|
|
146
|
if ( taxon.isMisapplication() || taxon.isProparteSynonym()){
|
147
|
// TODO get accepted taxon
|
148
|
MessagingUtils.info(Messages.TaxonEditorInput_OPEN_MISSAPPLIED_NAME);
|
149
|
|
150
|
Set<Taxon> acceptedTaxa = new HashSet<Taxon>();
|
151
|
Set<TaxonRelationship> relations = taxon.getRelationsFromThisTaxon();
|
152
|
for(TaxonRelationship relation : relations){
|
153
|
if(relation.getType().isAnyMisappliedName() || relation.getType().isAnySynonym()){
|
154
|
acceptedTaxa.add(relation.getToTaxon());
|
155
|
}
|
156
|
}
|
157
|
if (taxon.getTaxonNodes().size() > 0){
|
158
|
acceptedTaxa.add(taxon);
|
159
|
}
|
160
|
setInputForRelatedTaxa(conversation, acceptedTaxa);
|
161
|
|
162
|
}else{
|
163
|
setInputForMultipleNodes(conversation, taxon.getTaxonNodes());
|
164
|
}
|
165
|
}else if(taxonBase instanceof Synonym){
|
166
|
Synonym synonym = (Synonym) taxonBase;
|
167
|
|
168
|
Set<Taxon> taxa = new HashSet<>();
|
169
|
Taxon taxon = synonym.getAcceptedTaxon();
|
170
|
if (taxon != null){
|
171
|
taxa.add(taxon);
|
172
|
}
|
173
|
setInputForMultipleTaxa(conversation, taxa);
|
174
|
setInitiallySelectedTaxonBase(synonym);
|
175
|
}
|
176
|
}
|
177
|
}
|
178
|
|
179
|
|
180
|
private void initForParentTaxonNode(UUID parentNodeUuid){
|
181
|
this.getCdmEntitySession().bind();
|
182
|
TaxonName name = PreferencesUtil.getPreferredNomenclaturalCode().getNewTaxonNameInstance(null);
|
183
|
ITaxonTreeNode parentNode = CdmStore.getService(IClassificationService.class).getTreeNodeByUuid(parentNodeUuid);
|
184
|
|
185
|
Taxon newTaxon = Taxon.NewInstance(name, parentNode.getReference());
|
186
|
TaxonNode newTaxonNode = parentNode.addChildTaxon(newTaxon, parentNode.getReference(), parentNode.getMicroReference());
|
187
|
|
188
|
// add the new taxon to the editors persistence context
|
189
|
UUID newTaxonNodeUuid = CdmStore.getService(ITaxonNodeService.class).save(newTaxonNode).getUuid();
|
190
|
|
191
|
initForTaxonNode(newTaxonNodeUuid);
|
192
|
}
|
193
|
|
194
|
private void setInputForMultipleNodes(ConversationHolder conversation, Set<TaxonNode> taxonNodes){
|
195
|
if(taxonNodes.size() == 1){
|
196
|
TaxonNode taxonNode = taxonNodes.iterator().next();
|
197
|
taxonNode = getCdmEntitySession().remoteLoad(CdmStore.getService(ITaxonNodeService.class), taxonNode.getUuid(), getTaxonNodePropertyPaths());
|
198
|
init(taxonNode);
|
199
|
}else if(taxonNodes.size() > 1){
|
200
|
|
201
|
TaxonNode taxonNode = ChooseFromMultipleTaxonNodesDialog.choose(taxonNodes);
|
202
|
if(taxonNode != null){
|
203
|
taxonNode = CdmStore.getService(ITaxonNodeService.class).load(taxonNode.getUuid(), getTaxonNodePropertyPaths());
|
204
|
}
|
205
|
if(taxonNode != null){
|
206
|
init(taxonNode);
|
207
|
}
|
208
|
} else if (taxonNodes.size() == 0) {
|
209
|
// this is an undesired state
|
210
|
MessagingUtils.warningDialog(INCORRECT_STATE,TaxonEditorInputE4.class,Messages.TaxonEditorInput_TAXON_NOT_IN_CLASSIFICATION);
|
211
|
}
|
212
|
}
|
213
|
|
214
|
private void setInputForMultipleTaxa(ConversationHolder conversation, Set<Taxon> taxa){
|
215
|
if(taxa.size() == 1){
|
216
|
Taxon taxon = taxa.iterator().next();
|
217
|
Set<TaxonNode> nodes = taxon.getTaxonNodes();
|
218
|
setInputForMultipleNodes(conversation, nodes);
|
219
|
}else if(taxa.size() > 1){
|
220
|
Set<TaxonNode> taxonNodes = new HashSet<TaxonNode>();
|
221
|
for ( Taxon taxon : taxa ){
|
222
|
taxonNodes.addAll(taxon.getTaxonNodes());
|
223
|
}
|
224
|
setInputForMultipleNodes(conversation, taxonNodes);
|
225
|
}else if(taxa.size() == 0){
|
226
|
// this is an undesired state
|
227
|
MessagingUtils.warningDialog(INCORRECT_STATE, TaxonEditorInputE4.class, Messages.TaxonEditorInput_NO_ACCEPTED_TAXON_PRESENT);
|
228
|
}
|
229
|
}
|
230
|
|
231
|
private void setInputForRelatedTaxa(ConversationHolder conversation, Set<Taxon> taxa){
|
232
|
if(taxa.size() == 1){
|
233
|
Taxon taxon = taxa.iterator().next();
|
234
|
Set<TaxonNode> nodes = taxon.getTaxonNodes();
|
235
|
TaxonNode taxonNode = null;
|
236
|
if (nodes.size()>1){
|
237
|
taxonNode = ChooseFromMultipleTaxonNodesDialog.choose(nodes);
|
238
|
}else if (nodes.size()==1){
|
239
|
taxonNode = nodes.iterator().next();
|
240
|
}else{
|
241
|
MessagingUtils.warningDialog(INCORRECT_STATE,TaxonEditorInputE4.class,Messages.TaxonEditorInput_TAXON_NOT_IN_CLASSIFICATION);
|
242
|
}
|
243
|
init(taxonNode);
|
244
|
}else if(taxa.size() > 1){
|
245
|
Iterator<Taxon> taxonIterator = taxa.iterator();
|
246
|
Set<TaxonNode> nodes = new HashSet<>();
|
247
|
while (taxonIterator.hasNext()){
|
248
|
|
249
|
nodes.addAll(taxonIterator.next().getTaxonNodes());
|
250
|
}
|
251
|
TaxonNode taxonNode = ChooseFromMultipleAcceptedTaxaDialog.choose(nodes);
|
252
|
if(taxonNode != null){
|
253
|
taxonNode = CdmStore.getService(ITaxonNodeService.class).load(taxonNode.getUuid(), getTaxonNodePropertyPaths());
|
254
|
}
|
255
|
if(taxonNode != null){
|
256
|
init(taxonNode);
|
257
|
}
|
258
|
} else if (taxa.size() == 0) {
|
259
|
// this is an undesired state
|
260
|
MessagingUtils.warningDialog(INCORRECT_STATE,TaxonEditorInputE4.class,Messages.TaxonEditorInput_TAXON_NOT_IN_CLASSIFICATION);
|
261
|
}
|
262
|
}
|
263
|
|
264
|
public static TaxonEditorInputE4 NewInstance(UUID taxonNodeUuid) {
|
265
|
return new TaxonEditorInputE4(taxonNodeUuid, CdmType.TAXON_NODE);
|
266
|
|
267
|
}
|
268
|
|
269
|
public static TaxonEditorInputE4 NewInstanceFromTaxonBase(UUID taxonBaseUuid){
|
270
|
return new TaxonEditorInputE4(taxonBaseUuid, CdmType.TAXON_BASE);
|
271
|
}
|
272
|
|
273
|
|
274
|
public static TaxonEditorInputE4 NewEmptyInstance(UUID parentNodeUuid){
|
275
|
return new TaxonEditorInputE4(parentNodeUuid, CdmType.PARENT_TAXON_NODE);
|
276
|
}
|
277
|
|
278
|
public Object getAdapter(Class adapter) {
|
279
|
|
280
|
if (adapter == Taxon.class) {
|
281
|
return getTaxon();
|
282
|
}
|
283
|
|
284
|
if (adapter == TaxonNode.class) {
|
285
|
return taxonNode;
|
286
|
}
|
287
|
|
288
|
return null;
|
289
|
}
|
290
|
|
291
|
/**
|
292
|
* {@inheritDoc}
|
293
|
*
|
294
|
* Overrides equals to ensure that a taxon can only be edited by
|
295
|
* one editor at a time.
|
296
|
*/
|
297
|
@Override
|
298
|
public boolean equals(Object obj) {
|
299
|
if (TaxonEditorInputE4.class.equals(obj.getClass())
|
300
|
&& getTaxon() != null
|
301
|
&& getTaxon().equals(((TaxonEditorInputE4) obj).getTaxon())) {
|
302
|
if (((TaxonEditorInputE4) obj).getInitiallySelectedTaxonBase() != null){
|
303
|
setInitiallySelectedTaxonBase(((TaxonEditorInputE4) obj).getInitiallySelectedTaxonBase());
|
304
|
}
|
305
|
return true;
|
306
|
}
|
307
|
return false;
|
308
|
}
|
309
|
|
310
|
public Taxon getTaxon(){
|
311
|
if(taxonNode!=null){
|
312
|
Taxon taxon = CdmBase.deproxy(taxonNode.getTaxon(), Taxon.class);
|
313
|
return taxon;
|
314
|
}
|
315
|
return null;
|
316
|
}
|
317
|
|
318
|
public TaxonNode getTaxonNode() {
|
319
|
return taxonNode;
|
320
|
}
|
321
|
|
322
|
@Override
|
323
|
public ConversationHolder getConversationHolder() {
|
324
|
return conversation;
|
325
|
}
|
326
|
|
327
|
/** {@inheritDoc} */
|
328
|
@Override
|
329
|
public void update(CdmDataChangeMap events) {
|
330
|
if(dataChangeBehavior == null){
|
331
|
dataChangeBehavior = new TaxonEditorInputDataChangeBehaviourE4(this);
|
332
|
}
|
333
|
|
334
|
DataChangeBridge.handleDataChange(events, dataChangeBehavior);
|
335
|
}
|
336
|
|
337
|
public void setInitiallySelectedTaxonBase(TaxonBase taxonBase) {
|
338
|
this.initiallySelectedTaxonBase = taxonBase;
|
339
|
}
|
340
|
|
341
|
public TaxonBase getInitiallySelectedTaxonBase() {
|
342
|
return initiallySelectedTaxonBase;
|
343
|
}
|
344
|
|
345
|
public void addOperation(AbstractPostOperation operation) {
|
346
|
this.operations.add(operation);
|
347
|
}
|
348
|
|
349
|
public void addToSaveNewSynonym(Synonym toSaveNew) {
|
350
|
this.toSaveNewSynonyms.add(toSaveNew);
|
351
|
}
|
352
|
public void addToSaveNewConcept(Taxon toSaveNew) {
|
353
|
this.toSaveNewConcepts.add(toSaveNew);
|
354
|
|
355
|
}
|
356
|
|
357
|
@Override
|
358
|
public List<TaxonNode> getRootEntities() {
|
359
|
return Arrays.asList(taxonNode);
|
360
|
}
|
361
|
|
362
|
@Override
|
363
|
public void merge() {
|
364
|
if (!this.getCdmEntitySession().isActive()){
|
365
|
this.getCdmEntitySession().bind();
|
366
|
}
|
367
|
for(Entry<TaxonBase, TaxonBaseDeletionConfigurator> entry:toDeletes.entrySet()){
|
368
|
delete(entry.getKey(), entry.getValue());
|
369
|
}
|
370
|
toDeletes.clear();
|
371
|
for(AbstractPostOperation entry:operations){
|
372
|
IStatus status = Status.CANCEL_STATUS;
|
373
|
final IAdaptable uiInfoAdapter = WorkspaceUndoUtil
|
374
|
.getUIInfoAdapter(AbstractUtility.getShell());
|
375
|
String operationlabel = entry.getLabel();
|
376
|
try {
|
377
|
entry.addContext(IOperationHistory.GLOBAL_UNDO_CONTEXT);
|
378
|
status = entry.execute(new NullProgressMonitor(), uiInfoAdapter);
|
379
|
} catch (ExecutionException e) {
|
380
|
|
381
|
MessagingUtils.operationDialog(AbstractUtility.class, e, TaxeditorStorePlugin.PLUGIN_ID, operationlabel, null);
|
382
|
|
383
|
}
|
384
|
|
385
|
String statusString = status.equals(Status.OK_STATUS) ? "completed"
|
386
|
: "cancelled";
|
387
|
|
388
|
IPostOperationEnabled postOperationEnabled = entry
|
389
|
.getPostOperationEnabled();
|
390
|
if (postOperationEnabled != null) {
|
391
|
postOperationEnabled.onComplete();
|
392
|
}
|
393
|
|
394
|
|
395
|
//AbstractUtility.executeOperation(entry,sync);
|
396
|
}
|
397
|
|
398
|
operations.clear();
|
399
|
for (Synonym syn: toSaveNewSynonyms){
|
400
|
for (HybridRelationship rel : syn.getName().getHybridChildRelations()){
|
401
|
// if (!rel.getParentName().isPersited()) {
|
402
|
toSaveNewNames.add(rel.getParentName());
|
403
|
// }
|
404
|
// if (!rel.getHybridName().isPersited()) {
|
405
|
toSaveNewNames.add(rel.getHybridName());
|
406
|
// }
|
407
|
|
408
|
}
|
409
|
}
|
410
|
|
411
|
for (TaxonBase concept: toSaveNewConcepts){
|
412
|
for (HybridRelationship rel : concept.getName().getHybridChildRelations()){
|
413
|
// if (!rel.getParentName().isPersited()) {
|
414
|
toSaveNewNames.add(rel.getParentName());
|
415
|
// }
|
416
|
// if (!rel.getHybridName().isPersited()) {
|
417
|
toSaveNewNames.add(rel.getHybridName());
|
418
|
// }
|
419
|
|
420
|
}
|
421
|
}
|
422
|
CdmStore.getService(INameService.class).merge(toSaveNewNames, true);
|
423
|
CdmStore.getService(ITaxonService.class).merge(toSaveNewConcepts, true);
|
424
|
|
425
|
toSaveNewNames.clear();
|
426
|
toSaveNewConcepts.clear();
|
427
|
|
428
|
CdmStore.getService(ITaxonNodeService.class).merge(taxonNode, true);
|
429
|
|
430
|
|
431
|
}
|
432
|
|
433
|
/**
|
434
|
* @param key
|
435
|
* @param value
|
436
|
*/
|
437
|
private void delete(TaxonBase key, TaxonBaseDeletionConfigurator value) {
|
438
|
if (key instanceof Synonym){
|
439
|
CdmStore.getService(ITaxonService.class).deleteSynonym(((Synonym)key).getUuid(), (SynonymDeletionConfigurator) value);
|
440
|
}else{
|
441
|
CdmStore.getService(ITaxonService.class).deleteTaxon(((Taxon)key).getUuid(), (TaxonDeletionConfigurator) value, null);
|
442
|
}
|
443
|
|
444
|
}
|
445
|
|
446
|
@Override
|
447
|
public Map<Object, List<String>> getPropertyPathsMap() {
|
448
|
return null;
|
449
|
}
|
450
|
|
451
|
private List<String> getTaxonNodePropertyPaths() {
|
452
|
List<String> taxonNodePropertyPaths = new ArrayList<String>();
|
453
|
for(String propertyPath : getTaxonBasePropertyPaths()) {
|
454
|
taxonNodePropertyPaths.add("taxon." + propertyPath); //$NON-NLS-1$
|
455
|
}
|
456
|
return taxonNodePropertyPaths;
|
457
|
}
|
458
|
|
459
|
private List<String> getTaxonBasePropertyPaths() {
|
460
|
List<String> taxonBasePropertyPaths = Arrays.asList(new String[] {
|
461
|
"sec", //$NON-NLS-1$
|
462
|
"createdBy", //$NON-NLS-1$
|
463
|
"updatedBy", //$NON-NLS-1$
|
464
|
"annotations", //$NON-NLS-1$
|
465
|
"markers", //$NON-NLS-1$
|
466
|
"credits", //$NON-NLS-1$
|
467
|
"extensions", //$NON-NLS-1$
|
468
|
"rights", //$NON-NLS-1$
|
469
|
"sources", //$NON-NLS-1$
|
470
|
"identifiers",
|
471
|
"descriptions", //$NON-NLS-1$
|
472
|
"taxonNodes", //$NON-NLS-1$
|
473
|
"descriptions.descriptionElements.feature", //$NON-NLS-1$
|
474
|
"descriptions.descriptionElements.area", //$NON-NLS-1$
|
475
|
"descriptions.descriptionElements.status", //$NON-NLS-1$
|
476
|
"descriptions.markers", //$NON-NLS-1$
|
477
|
"name.descriptions", //$NON-NLS-1$
|
478
|
"name.typeDesignations.typeSpecimen.derivedFrom.originals", //$NON-NLS-1$
|
479
|
"name.status", //$NON-NLS-1$
|
480
|
"name.nomenclaturalReference.inReference", //$NON-NLS-1$
|
481
|
"name.taxonBases.taxonNodes", //$NON-NLS-1$
|
482
|
"name.relationsFromThisName", //$NON-NLS-1$
|
483
|
"name.relationsToThisName", //$NON-NLS-1$
|
484
|
"name.homotypicalGroup.typifiedNames.taxonBases.synonyms.synonym.name.status", //$NON-NLS-1$
|
485
|
"name.homotypicalGroup.typifiedNames.relationsToThisName.fromName", //$NON-NLS-1$
|
486
|
"synonyms.name.status.type", //$NON-NLS-1$
|
487
|
"synonyms.name.relationsToThisName.fromName", //$NON-NLS-1$
|
488
|
"synonyms.name.nomenclaturalReference.inReference.authorship", //$NON-NLS-1$
|
489
|
"synonyms.name.nomenclaturalReference.authorship", //$NON-NLS-1$
|
490
|
"synonyms.name.homotypicalGroup.typifiedNames.taxonBases.synonyms" //$NON-NLS-1$
|
491
|
});
|
492
|
|
493
|
return taxonBasePropertyPaths;
|
494
|
}
|
495
|
|
496
|
/**
|
497
|
* @param selectedElement
|
498
|
* @param deleteConfig
|
499
|
*/
|
500
|
public void addTaxonBaseToDelete(TaxonBase selectedElement, TaxonBaseDeletionConfigurator deleteConfig) {
|
501
|
this.toDeletes.put(selectedElement, deleteConfig);
|
502
|
|
503
|
}
|
504
|
|
505
|
/**
|
506
|
* @param newName
|
507
|
*/
|
508
|
public void addToSaveNewName(TaxonName newName) {
|
509
|
this.toSaveNewNames.add(newName);
|
510
|
}
|
511
|
|
512
|
}
|