1
|
/**
|
2
|
* Copyright (C) 2018 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
|
package eu.etaxonomy.taxeditor.databaseAdmin.preferencePage;
|
10
|
|
11
|
import java.net.URI;
|
12
|
|
13
|
import org.eclipse.swt.SWT;
|
14
|
import org.eclipse.swt.custom.CLabel;
|
15
|
import org.eclipse.swt.events.SelectionAdapter;
|
16
|
import org.eclipse.swt.events.SelectionEvent;
|
17
|
import org.eclipse.swt.events.SelectionListener;
|
18
|
import org.eclipse.swt.layout.GridData;
|
19
|
import org.eclipse.swt.layout.GridLayout;
|
20
|
import org.eclipse.swt.widgets.Button;
|
21
|
import org.eclipse.swt.widgets.Combo;
|
22
|
import org.eclipse.swt.widgets.Composite;
|
23
|
import org.eclipse.swt.widgets.Control;
|
24
|
import org.eclipse.swt.widgets.Label;
|
25
|
import org.eclipse.swt.widgets.Text;
|
26
|
|
27
|
import eu.etaxonomy.cdm.api.application.ICdmRepository;
|
28
|
import eu.etaxonomy.cdm.api.service.IPreferenceService;
|
29
|
import eu.etaxonomy.cdm.io.specimen.abcd206.in.Abcd206ImportConfigurator;
|
30
|
import eu.etaxonomy.cdm.model.metadata.CdmPreference;
|
31
|
import eu.etaxonomy.cdm.model.metadata.CdmPreference.PrefKey;
|
32
|
import eu.etaxonomy.cdm.model.metadata.PreferencePredicate;
|
33
|
import eu.etaxonomy.cdm.model.metadata.PreferenceSubject;
|
34
|
import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
|
35
|
import eu.etaxonomy.taxeditor.l10n.Messages;
|
36
|
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
|
37
|
import eu.etaxonomy.taxeditor.preference.menu.CdmPreferencePage;
|
38
|
import eu.etaxonomy.taxeditor.store.CdmStore;
|
39
|
|
40
|
/**
|
41
|
* @author k.luther
|
42
|
* @since 23.03.2018
|
43
|
*
|
44
|
*/
|
45
|
public class AbcdImportPreference extends CdmPreferencePage implements IE4AdminPreferencePage, SelectionListener {
|
46
|
|
47
|
private Abcd206ImportConfigurator configurator;
|
48
|
|
49
|
private Combo nomenclaturalCodeSelectionCombo;
|
50
|
|
51
|
private boolean allowOverride = true;
|
52
|
private CdmPreference preference = null;
|
53
|
Text textDNAProviderString;
|
54
|
|
55
|
@Override
|
56
|
protected Control createContents(Composite parent) {
|
57
|
final Composite composite = new Composite(parent, SWT.NULL);
|
58
|
|
59
|
GridLayout gridLayout = new GridLayout();
|
60
|
composite.setLayout(gridLayout);
|
61
|
configurator = Abcd206ImportConfigurator.NewInstance(null,null);
|
62
|
ICdmRepository controller;
|
63
|
controller = CdmStore.getCurrentApplicationConfiguration();
|
64
|
PrefKey key = CdmPreference.NewKey(PreferenceSubject.NewTaxEditorInstance(), PreferencePredicate.AbcdImportConfig);
|
65
|
|
66
|
if (controller == null){
|
67
|
return null;
|
68
|
}
|
69
|
preference = controller.getPreferenceService().find(key);
|
70
|
|
71
|
if (preference != null ){
|
72
|
allowOverride = preference.isAllowOverride();
|
73
|
}else{
|
74
|
preference = CdmPreference.NewTaxEditorInstance(PreferencePredicate.AbcdImportConfig, configurator.toString());
|
75
|
}
|
76
|
|
77
|
if (preference != null){
|
78
|
|
79
|
String configString = preference.getValue();
|
80
|
if(configString!=null){
|
81
|
String[] configArray = configString.split(";"); //$NON-NLS-1$
|
82
|
|
83
|
for (String configItem: configArray){
|
84
|
String[] keyValue = configItem.split(":"); //$NON-NLS-1$
|
85
|
if(keyValue.length==2){
|
86
|
String keyString = keyValue[0];
|
87
|
String valueString = keyValue[1];
|
88
|
if (keyString.equals("ignoreImportOfExistingSpecimen")){ //$NON-NLS-1$
|
89
|
configurator.setIgnoreImportOfExistingSpecimen(Boolean.valueOf(valueString));
|
90
|
}else if (keyString.equals("addIndividualsAssociationsSuchAsSpecimenAndObservations")){ //$NON-NLS-1$
|
91
|
configurator.setAddIndividualsAssociationsSuchAsSpecimenAndObservations(Boolean.valueOf(valueString));
|
92
|
}else if (keyString.equals("reuseExistingTaxaWhenPossible")){ //$NON-NLS-1$
|
93
|
configurator.setReuseExistingTaxaWhenPossible(Boolean.valueOf(valueString));
|
94
|
}else if (keyString.equals("ignoreAuthorship")){ //$NON-NLS-1$
|
95
|
configurator.setIgnoreAuthorship(Boolean.valueOf(valueString));
|
96
|
}else if (keyString.equals("addMediaAsMediaSpecimen")){ //$NON-NLS-1$
|
97
|
configurator.setAddMediaAsMediaSpecimen(Boolean.valueOf(valueString));
|
98
|
}else if (keyString.equals("reuseExistingMetaData")){ //$NON-NLS-1$
|
99
|
configurator.setReuseExistingMetaData(Boolean.valueOf(valueString));
|
100
|
}else if (keyString.equals("reuseExistingDescriptiveGroups")){ //$NON-NLS-1$
|
101
|
configurator.setReuseExistingDescriptiveGroups(Boolean.valueOf(valueString));
|
102
|
}else if (keyString.equals("allowReuseOtherClassifications")){ //$NON-NLS-1$
|
103
|
configurator.setAllowReuseOtherClassifications(Boolean.valueOf(valueString));
|
104
|
}else if (keyString.equals("deduplicateReferences")){ //$NON-NLS-1$
|
105
|
configurator.setDeduplicateReferences(Boolean.valueOf(valueString));
|
106
|
}else if (keyString.equals("deduplicateClassifications")){ //$NON-NLS-1$
|
107
|
configurator.setDeduplicateClassifications(Boolean.valueOf(valueString));
|
108
|
}else if (keyString.equals("moveNewTaxaToDefaultClassification")){ //$NON-NLS-1$
|
109
|
configurator.setMoveNewTaxaToDefaultClassification(Boolean.valueOf(valueString));
|
110
|
}else if (keyString.equals("mapUnitIdToCatalogNumber")){ //$NON-NLS-1$
|
111
|
configurator.setMapUnitIdToCatalogNumber(Boolean.valueOf(valueString));
|
112
|
}else if (keyString.equals("mapUnitIdToAccessionNumber")){ //$NON-NLS-1$
|
113
|
configurator.setMapUnitIdToAccessionNumber(Boolean.valueOf(valueString));
|
114
|
}else if (keyString.equals("mapUnitIdToBarcode")){ //$NON-NLS-1$
|
115
|
configurator.setMapUnitIdToBarcode(Boolean.valueOf(valueString));
|
116
|
}else if (keyString.equals("overwriteExistingSpecimens")){ //$NON-NLS-1$
|
117
|
configurator.setOverwriteExistingSpecimens(Boolean.valueOf(valueString));
|
118
|
}else if (keyString.equals("nomenclaturalCode")){ //$NON-NLS-1$
|
119
|
configurator.setNomenclaturalCode(NomenclaturalCode.fromString(valueString));
|
120
|
}else if (keyString.equals("getSiblings")){ //$NON-NLS-1$
|
121
|
configurator.setGetSiblings(Boolean.valueOf(valueString));
|
122
|
}else if (keyString.equals("removeCountryFromLocalityText")){ //$NON-NLS-1$
|
123
|
configurator.setRemoveCountryFromLocalityText(Boolean.valueOf(valueString));
|
124
|
}else if (keyString.equals("dnaSource")){ //$NON-NLS-1$
|
125
|
configurator.setDnaSoure(URI.create(valueString));
|
126
|
}
|
127
|
|
128
|
}
|
129
|
}
|
130
|
}
|
131
|
}
|
132
|
|
133
|
|
134
|
//configurator = PreferencesUtil.getAbcdImportConfigurationPreference();
|
135
|
final CLabel description = new CLabel(composite, SWT.NULL);
|
136
|
description.setText(Messages.AbcdImportPreference_description);
|
137
|
Button checkBoxMediaSpecimen = new Button(composite, SWT.CHECK);
|
138
|
checkBoxMediaSpecimen.setSelection(configurator.isAddMediaAsMediaSpecimen());
|
139
|
checkBoxMediaSpecimen.setText(Messages.AbcdImportPreference_media_as_mediaSpecimen);
|
140
|
checkBoxMediaSpecimen
|
141
|
.setToolTipText(Messages.AbcdImportPreference_media_as_subUnit);
|
142
|
checkBoxMediaSpecimen.addSelectionListener(new SelectionAdapter() {
|
143
|
@Override
|
144
|
public void widgetSelected(SelectionEvent e) {
|
145
|
configurator.setAddMediaAsMediaSpecimen(!configurator.isAddMediaAsMediaSpecimen());
|
146
|
setApply(true);
|
147
|
}
|
148
|
});
|
149
|
|
150
|
Button checkBoxIgnoreExisting = new Button(composite, SWT.CHECK);
|
151
|
checkBoxIgnoreExisting.setSelection(configurator.isIgnoreImportOfExistingSpecimen());
|
152
|
checkBoxIgnoreExisting.setText(Messages.AbcdImportPreference_not_import_existing_specimen);
|
153
|
checkBoxIgnoreExisting
|
154
|
.setToolTipText(Messages.AbcdImportPreference_not_import_existing_specimen_tooltip);
|
155
|
checkBoxIgnoreExisting.addSelectionListener(new SelectionAdapter() {
|
156
|
@Override
|
157
|
public void widgetSelected(SelectionEvent e) {
|
158
|
configurator.setIgnoreImportOfExistingSpecimen(!configurator.isIgnoreImportOfExistingSpecimen());
|
159
|
setApply(true);
|
160
|
}
|
161
|
});
|
162
|
|
163
|
Button checkBoxIgnoreAuthorship = new Button(composite, SWT.CHECK);
|
164
|
checkBoxIgnoreAuthorship.setSelection(configurator.isIgnoreAuthorship());
|
165
|
checkBoxIgnoreAuthorship.setText(Messages.AbcdImportPreference_ignore_author);
|
166
|
checkBoxIgnoreAuthorship
|
167
|
.setToolTipText(Messages.AbcdImportPreference_ignore_author_tooltip);
|
168
|
checkBoxIgnoreAuthorship.addSelectionListener(new SelectionAdapter() {
|
169
|
@Override
|
170
|
public void widgetSelected(SelectionEvent e) {
|
171
|
configurator.setIgnoreAuthorship(!configurator.isIgnoreAuthorship());
|
172
|
setApply(true);
|
173
|
}
|
174
|
});
|
175
|
|
176
|
Button checkBoxMapUnitIdToCatalogNumber = new Button(composite, SWT.CHECK);
|
177
|
checkBoxMapUnitIdToCatalogNumber.setSelection(configurator.isMapUnitIdToCatalogNumber());
|
178
|
checkBoxMapUnitIdToCatalogNumber.setText(Messages.AbcdImportPreference_map_unit_nr_catalog_number);
|
179
|
checkBoxMapUnitIdToCatalogNumber
|
180
|
.setToolTipText(Messages.AbcdImportPreference_map_unit_number_catalog_number_tooltip);
|
181
|
checkBoxMapUnitIdToCatalogNumber.addSelectionListener(new SelectionAdapter() {
|
182
|
@Override
|
183
|
public void widgetSelected(SelectionEvent e) {
|
184
|
configurator.setMapUnitIdToCatalogNumber(!configurator.isMapUnitIdToCatalogNumber());
|
185
|
setApply(true);
|
186
|
}
|
187
|
});
|
188
|
//TODO: only one of the mappings can be checked!
|
189
|
Button checkBoxMapUnitIdToAccessionNumber = new Button(composite, SWT.CHECK);
|
190
|
checkBoxMapUnitIdToAccessionNumber.setSelection(configurator.isMapUnitIdToAccessionNumber());
|
191
|
checkBoxMapUnitIdToAccessionNumber.setText(Messages.AbcdImportPreference_map_unit_number_to_accession_number);
|
192
|
checkBoxMapUnitIdToAccessionNumber
|
193
|
.setToolTipText(Messages.AbcdImportPreference_map_unit_number_accession_number_tooltip);
|
194
|
checkBoxMapUnitIdToAccessionNumber.addSelectionListener(new SelectionAdapter() {
|
195
|
@Override
|
196
|
public void widgetSelected(SelectionEvent e) {
|
197
|
configurator.setMapUnitIdToAccessionNumber(!configurator.isMapUnitIdToAccessionNumber());
|
198
|
setApply(true);
|
199
|
}
|
200
|
});
|
201
|
|
202
|
Button checkBoxMapUnitIdToBarcode = new Button(composite, SWT.CHECK);
|
203
|
checkBoxMapUnitIdToBarcode.setSelection(configurator.isMapUnitIdToBarcode());
|
204
|
checkBoxMapUnitIdToBarcode.setText(Messages.AbcdImportPreference_map_unit_number_barcode);
|
205
|
checkBoxMapUnitIdToBarcode
|
206
|
.setToolTipText(Messages.AbcdImportPreference_map_unit_number_barcode_tooltip);
|
207
|
checkBoxMapUnitIdToBarcode.addSelectionListener(new SelectionAdapter() {
|
208
|
@Override
|
209
|
public void widgetSelected(SelectionEvent e) {
|
210
|
configurator.setMapUnitIdToBarcode(!configurator.isMapUnitIdToBarcode());
|
211
|
setApply(true);
|
212
|
}
|
213
|
});
|
214
|
|
215
|
Button checkBoxRemoveCountry = new Button(composite, SWT.CHECK);
|
216
|
checkBoxRemoveCountry.setSelection(configurator.isRemoveCountryFromLocalityText());
|
217
|
checkBoxRemoveCountry.setText(Messages.AbcdImportPreference_remove_country_from_locality);
|
218
|
checkBoxRemoveCountry
|
219
|
.setToolTipText(Messages.AbcdImportPreference_remove_country_from_locality_tooltip);
|
220
|
checkBoxRemoveCountry.addSelectionListener(new SelectionAdapter() {
|
221
|
@Override
|
222
|
public void widgetSelected(SelectionEvent e) {
|
223
|
configurator.setRemoveCountryFromLocalityText(!configurator.isRemoveCountryFromLocalityText());
|
224
|
setApply(true);
|
225
|
}
|
226
|
});
|
227
|
|
228
|
Button checkBoxMoveToDefaultClassification = new Button(composite, SWT.CHECK);
|
229
|
checkBoxMoveToDefaultClassification.setSelection(configurator.isMoveNewTaxaToDefaultClassification());
|
230
|
checkBoxMoveToDefaultClassification.setText(Messages.AbcdImportPreference_create_new_classification_new_taxa);
|
231
|
checkBoxMoveToDefaultClassification
|
232
|
.setToolTipText(Messages.AbcdImportPreference_create_new_classification_new_taxa_tooltip);
|
233
|
checkBoxMoveToDefaultClassification.addSelectionListener(new SelectionAdapter() {
|
234
|
@Override
|
235
|
public void widgetSelected(SelectionEvent e) {
|
236
|
configurator.setMoveNewTaxaToDefaultClassification(!configurator.isMoveNewTaxaToDefaultClassification());
|
237
|
setApply(true);
|
238
|
}
|
239
|
});
|
240
|
|
241
|
Button checkBoxImportSiblings = new Button(composite, SWT.CHECK);
|
242
|
checkBoxImportSiblings.setSelection(configurator.isGetSiblings());
|
243
|
checkBoxImportSiblings.setText(Messages.AbcdImportPreference_import_all_children_for_cultures_or_tissues);
|
244
|
checkBoxImportSiblings
|
245
|
.setToolTipText(Messages.AbcdImportPreference_import_all_children_for_cultures_or_tissues_tooltip);
|
246
|
checkBoxImportSiblings.addSelectionListener(new SelectionAdapter() {
|
247
|
@Override
|
248
|
public void widgetSelected(SelectionEvent e) {
|
249
|
configurator.setGetSiblings(!configurator.isGetSiblings());
|
250
|
setApply(true);
|
251
|
}
|
252
|
});
|
253
|
|
254
|
Button checkBoxAddIndividualsAssociations = new Button(composite, SWT.CHECK);
|
255
|
checkBoxAddIndividualsAssociations.setSelection(configurator.isAddIndividualsAssociationsSuchAsSpecimenAndObservations());
|
256
|
checkBoxAddIndividualsAssociations.setText(Messages.AbcdImportPreference_create_Individual_Association);
|
257
|
checkBoxAddIndividualsAssociations
|
258
|
.setToolTipText(Messages.AbcdImportPreference_create_Individual_Association_tooltip);
|
259
|
checkBoxAddIndividualsAssociations.addSelectionListener(new SelectionAdapter() {
|
260
|
@Override
|
261
|
public void widgetSelected(SelectionEvent e) {
|
262
|
configurator.setAddIndividualsAssociationsSuchAsSpecimenAndObservations(!configurator.isAddIndividualsAssociationsSuchAsSpecimenAndObservations());
|
263
|
setApply(true);
|
264
|
}
|
265
|
});
|
266
|
|
267
|
Button checkBoxReuseDescriptiveGroups = new Button(composite, SWT.CHECK);
|
268
|
checkBoxReuseDescriptiveGroups.setSelection(configurator.isReuseExistingDescriptiveGroups());
|
269
|
checkBoxReuseDescriptiveGroups.setText(Messages.AbcdImportPreference_reuse_descriptive_group);
|
270
|
checkBoxReuseDescriptiveGroups
|
271
|
.setToolTipText(Messages.AbcdImportPreference_reuse_descriptive_group_tooltip);
|
272
|
checkBoxReuseDescriptiveGroups.addSelectionListener(new SelectionAdapter() {
|
273
|
@Override
|
274
|
public void widgetSelected(SelectionEvent e) {
|
275
|
configurator.setReuseExistingDescriptiveGroups(!configurator.isReuseExistingDescriptiveGroups());
|
276
|
setApply(true);
|
277
|
}
|
278
|
});
|
279
|
|
280
|
Button checkBoxReuseExistingTaxa = new Button(composite, SWT.CHECK);
|
281
|
checkBoxReuseExistingTaxa.setSelection(configurator.isReuseExistingTaxaWhenPossible());
|
282
|
checkBoxReuseExistingTaxa.setText(Messages.AbcdImportPreference_reuse_existing_taxa);
|
283
|
checkBoxReuseExistingTaxa
|
284
|
.setToolTipText(Messages.AbcdImportPreference_reuse_existing_taxa_tooltip);
|
285
|
checkBoxReuseExistingTaxa.addSelectionListener(new SelectionAdapter() {
|
286
|
@Override
|
287
|
public void widgetSelected(SelectionEvent e) {
|
288
|
configurator.setReuseExistingTaxaWhenPossible(!configurator.isReuseExistingTaxaWhenPossible());
|
289
|
setApply(true);
|
290
|
}
|
291
|
});
|
292
|
|
293
|
Label labelRef = new Label(composite, SWT.NONE);
|
294
|
labelRef.setText("Biocase provider for associated DNA");
|
295
|
new Label(composite, SWT.NONE);
|
296
|
textDNAProviderString = new Text(composite, SWT.NONE);
|
297
|
textDNAProviderString.setEnabled(true);
|
298
|
textDNAProviderString.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, true, 1, 1));
|
299
|
textDNAProviderString.setText(configurator.getDnaSoure().toString());
|
300
|
GridData gridData = new GridData();
|
301
|
gridData = new GridData(GridData.BEGINNING, GridData.CENTER, true, false);
|
302
|
gridData.horizontalIndent = 5;
|
303
|
// classificationSelection.setLayoutData(gridData);
|
304
|
|
305
|
nomenclaturalCodeSelectionCombo = new Combo(composite, SWT.BORDER| SWT.READ_ONLY);
|
306
|
nomenclaturalCodeSelectionCombo.setLayoutData(gridData);
|
307
|
for(NomenclaturalCode code: NomenclaturalCode.values()){
|
308
|
nomenclaturalCodeSelectionCombo.add(code.getKey());
|
309
|
}
|
310
|
int index = 0;
|
311
|
if (configurator.getNomenclaturalCode() != null){
|
312
|
for (String label : nomenclaturalCodeSelectionCombo.getItems()){
|
313
|
if (label.equals(configurator.getNomenclaturalCode().getKey())){
|
314
|
nomenclaturalCodeSelectionCombo.select(index);
|
315
|
|
316
|
}
|
317
|
index++;
|
318
|
}
|
319
|
}
|
320
|
|
321
|
// TODO remember last selection
|
322
|
nomenclaturalCodeSelectionCombo.addSelectionListener(this);
|
323
|
if (preference != null){
|
324
|
allowOverride = preference.isAllowOverride();
|
325
|
}
|
326
|
Button checkAllowOverride = new Button(composite, SWT.CHECK);
|
327
|
checkAllowOverride.setSelection(allowOverride);
|
328
|
checkAllowOverride.setText(Messages.AbcdImportPreference_allow_override);
|
329
|
checkAllowOverride
|
330
|
.setToolTipText(Messages.AbcdImportPreference_allow_override_tooltip);
|
331
|
checkAllowOverride.addSelectionListener(new SelectionAdapter() {
|
332
|
@Override
|
333
|
public void widgetSelected(SelectionEvent e) {
|
334
|
allowOverride = !allowOverride;
|
335
|
setApply(true);
|
336
|
}
|
337
|
});
|
338
|
|
339
|
return composite;
|
340
|
}
|
341
|
|
342
|
@Override
|
343
|
public void widgetSelected(SelectionEvent e) {
|
344
|
this.configurator.setNomenclaturalCode(NomenclaturalCode.getByKey(nomenclaturalCodeSelectionCombo.getText()));
|
345
|
setApply(true);
|
346
|
}
|
347
|
|
348
|
@Override
|
349
|
public boolean performOk() {
|
350
|
if (preference == null){
|
351
|
return true;
|
352
|
}
|
353
|
if (configurator != null){
|
354
|
String configString = configurator.toString();
|
355
|
Abcd206ImportConfigurator defaultConfig = Abcd206ImportConfigurator.NewInstance(null,null);
|
356
|
if (configString.equals(defaultConfig.toString())){
|
357
|
configString = null;
|
358
|
}
|
359
|
CdmPreference pref = CdmPreference.NewTaxEditorInstance(PreferencePredicate.AbcdImportConfig, configString);
|
360
|
pref.setAllowOverride(allowOverride);
|
361
|
|
362
|
ICdmRepository controller = CdmStore.getCurrentApplicationConfiguration();
|
363
|
if (controller == null){
|
364
|
return false;
|
365
|
}
|
366
|
IPreferenceService service = controller.getPreferenceService();
|
367
|
service.set(pref);
|
368
|
PreferencesUtil.updateDBPreferences();
|
369
|
|
370
|
}
|
371
|
return true;
|
372
|
}
|
373
|
|
374
|
/**
|
375
|
* {@inheritDoc}
|
376
|
*/
|
377
|
@Override
|
378
|
public void widgetDefaultSelected(SelectionEvent e) {
|
379
|
// TODO Auto-generated method stub
|
380
|
|
381
|
}
|
382
|
|
383
|
@Override
|
384
|
protected void performDefaults() {
|
385
|
configurator = Abcd206ImportConfigurator.NewInstance(null,null);
|
386
|
preference = CdmPreference.NewTaxEditorInstance(PreferencePredicate.AbcdImportConfig, configurator.toString());
|
387
|
preference.setAllowOverride(true);
|
388
|
super.performDefaults();
|
389
|
}
|
390
|
|
391
|
// private void createAbcdImportConfig() {
|
392
|
// this.configurator.setAddIndividualsAssociationsSuchAsSpecimenAndObservations(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_ADD_INDIVIDUALS_ASSOCIATIONS_SUCH_AS_SPECIMEN_AND_OBSERVATIONS));
|
393
|
// this.configurator.setAddMediaAsMediaSpecimen(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_ADD_MEDIA_AS_MEDIASPECIMEN));
|
394
|
// this.configurator.setAllowReuseOtherClassifications(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_ALLOW_REUSE_OTHER_CLASSIFICATIONS));
|
395
|
// //this.abcdImportConfigurator.setClassificationUuid(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_CLASSIFICATION_UUID));
|
396
|
// this.configurator.setDeduplicateClassifications(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_DEDUPLICATE_CLASSIFICATIONS));
|
397
|
// this.configurator.setDeduplicateReferences(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_DEDUPLICATE_REFERENCES));
|
398
|
// // this.abcdImportConfigurator.setDefaultAuthor(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_DEFAULT_AUTHOR));
|
399
|
// this.configurator.setGetSiblings(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_DO_SIBLINGS));
|
400
|
// this.configurator.setIgnoreAuthorship(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_IGNORE_AUTHORSHIP));
|
401
|
// this.configurator.setIgnoreImportOfExistingSpecimen(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_IGNORE_IMPORT_OF_EXISTING_SPECIMEN));
|
402
|
// this.configurator.setMapUnitIdToAccessionNumber(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_MAP_UNIT_ID_TO_ACCESSION_NUMBER));
|
403
|
// this.configurator.setMapUnitIdToBarcode(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_MAP_UNIT_ID_TO_BARCODE));
|
404
|
// this.configurator.setMapUnitIdToCatalogNumber(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_MAP_UNIT_ID_TOCATALOG_NUMBER));
|
405
|
// this.configurator.setMoveNewTaxaToDefaultClassification(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_MOVE_NEW_TAXA_TO_DEFAULT_CLASSIFICATION));
|
406
|
// this.configurator.setReuseExistingDescriptiveGroups(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_REUSE_EXISTING_DESCRIPTIVE_GROUPS));
|
407
|
// this.configurator.setReuseExistingTaxaWhenPossible(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_REUSE_EXISTING_TAXA_WHEN_POSSIBLE));
|
408
|
// this.configurator.setNomenclaturalCode(PreferencesUtil.getPreferredNomenclaturalCode(doGetPreferenceStore().getString(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_NOMENCLATURAL_CODE)));
|
409
|
//
|
410
|
// }
|
411
|
|
412
|
}
|