Project

General

Profile

« Previous | Next » 

Revision 9744113d

Added by Katja Luther almost 5 years ago

adapt io wizards to changes in properties and taxonnavigator

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/out/cdmlight/CdmLightExportWizardE4.java
26 26
import eu.etaxonomy.cdm.filter.TaxonNodeFilter;
27 27
import eu.etaxonomy.cdm.io.cdmLight.CdmLightExportConfigurator;
28 28
import eu.etaxonomy.cdm.model.taxon.Classification;
29
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
29
import eu.etaxonomy.cdm.persistence.dto.TaxonNodeDto;
30 30
import eu.etaxonomy.taxeditor.io.e4.out.AbstractExportWizardE4;
31 31
import eu.etaxonomy.taxeditor.io.wizard.ExportToFileDestinationWizardPage;
32 32
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
......
54 54
    public void init() {
55 55
        configurator = new CdmLightExportConfigurator(null);
56 56
        if (selection instanceof TreeSelection && !selection.isEmpty()){
57
            TaxonNode node = (TaxonNode)selection.getFirstElement();
58
            if (node.getParent() == null){
59
                configurator.setTaxonNodeFilter(TaxonNodeFilter.NewClassificationInstance(node.getClassification().getUuid()));
57
            TaxonNodeDto node = (TaxonNodeDto)selection.getFirstElement();
58
            if (node.getParentUUID() == null){
59
                configurator.setTaxonNodeFilter(TaxonNodeFilter.NewClassificationInstance(node.getClassificationUUID()));
60 60
            }else{
61 61
                configurator.setTaxonNodeFilter(TaxonNodeFilter.NewSubtreeInstance(node.getUuid()));
62 62
            }
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/out/csv/print/CsvPrintExportWizardE4.java
49 49
		String urlString = page.getFolderText() + File.separator
50 50
				+ page.getExportFileName();
51 51

  
52
//	    configurator.setClassificationUUID(page.getSelectedClassificationUUID());
53 52
	    configurator.setTaxonNodeFilter(TaxonNodeFilter.NewClassificationInstance(page.getSelectedClassificationUUID()));
54 53
	    configurator.setResultType(ExportResultType.BYTE_ARRAY);
55
		// create job
54

  
56 55
	    CdmStore.getExportManager().runMoniteredOperation(configurator, urlString);
57 56
		return true;
58 57
	}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/out/dwca/DarwinCoreArchiveExportWizardE4.java
52 52
		configurator = DwcaTaxExportConfigurator.NewInstance(null, null, null);
53 53
		if (selection instanceof TreeSelection && !selection.isEmpty()){
54 54
			Iterator it = selection.iterator();
55
			
55

  
56 56
			while(it.hasNext()){
57 57
				Object obj = it.next();
58 58
				if (obj instanceof TaxonNode){
......
69 69
						}else{
70 70
							configurator.getTaxonNodeFilter().orSubtree(node.getUuid());
71 71
						}
72
						
72

  
73 73
					}
74 74
				}
75 75
			}
......
86 86
	public boolean performFinish() {
87 87
		String urlString = page.getFolderText() + File.separator
88 88
				+ page.getExportFileName();
89
		
89

  
90 90
		if (!page.getCheckUseSelectedTaxonNode()){
91 91
			configurator.getTaxonNodeFilter().reset();
92 92
			if (!page.getCheckUseAllClassifications()){
......
95 95
				for (UUID classificationUuid: page.getAllClassificationUuids()){
96 96
					configurator.getTaxonNodeFilter().orClassification(classificationUuid);
97 97
				}
98
				
98

  
99 99
			}
100 100
		}
101
		
102

  
103 101
		CdmStore.getExportManager().runMoniteredOperation(configurator, urlString);
104 102
		return true;
105 103
	}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/AbcdImportConfiguratorWizardPage.java
39 39

  
40 40
	public static final String PAGE_NAME = "AbcdImportConfiguratorWizardPage";
41 41

  
42
	private Abcd206ImportConfigurator configurator;
42
	private Abcd206ImportConfigurator abcdImportConfigurator;
43 43

  
44 44
	private List<URI> biocaseProvider = new ArrayList<>();
45 45

  
......
49 49

  
50 50
	protected AbcdImportConfiguratorWizardPage(String title, String description, Abcd206ImportConfigurator configurator) {
51 51
        super(PAGE_NAME);
52
        this.configurator = configurator;
52
        this.abcdImportConfigurator = configurator;
53 53
        setTitle(title);
54 54
        setDescription(description);
55 55
    }
56 56

  
57 57
	protected AbcdImportConfiguratorWizardPage(String title, String description, Abcd206ImportConfigurator configurator, boolean isPreferencePage) {
58 58
		super(PAGE_NAME);
59
		this.configurator = configurator;
59
		this.abcdImportConfigurator = configurator;
60 60
		setTitle(title);
61 61
		setDescription(description);
62 62
		this.isPreferencePage = isPreferencePage;
......
86 86
//        }
87 87

  
88 88
		Button checkBoxMediaSpecimen = new Button(composite, SWT.CHECK);
89
		checkBoxMediaSpecimen.setSelection(configurator.isAddMediaAsMediaSpecimen());
89
		checkBoxMediaSpecimen.setSelection(abcdImportConfigurator.isAddMediaAsMediaSpecimen());
90 90
		checkBoxMediaSpecimen.setText("Import media as media specimen");
91 91
		checkBoxMediaSpecimen
92 92
				.setToolTipText("Any media attached to a ABCD unit will be imported as a sub derivative of the specimen created from this unit");
93 93
		checkBoxMediaSpecimen.addSelectionListener(new SelectionAdapter() {
94 94
			@Override
95 95
			public void widgetSelected(SelectionEvent e) {
96
				configurator.setAddMediaAsMediaSpecimen(!configurator.isAddMediaAsMediaSpecimen());
96
				abcdImportConfigurator.setAddMediaAsMediaSpecimen(!abcdImportConfigurator.isAddMediaAsMediaSpecimen());
97 97
			}
98 98
		});
99 99

  
100 100
		Button checkBoxIgnoreExisting = new Button(composite, SWT.CHECK);
101
		checkBoxIgnoreExisting.setSelection(configurator.isIgnoreImportOfExistingSpecimen());
101
		checkBoxIgnoreExisting.setSelection(abcdImportConfigurator.isIgnoreImportOfExistingSpecimen());
102 102
		checkBoxIgnoreExisting.setText("Do not import existing specimens");
103 103
		checkBoxIgnoreExisting
104 104
		.setToolTipText("Specimens that have previously been imported will be ignored in this import");
105 105
		checkBoxIgnoreExisting.addSelectionListener(new SelectionAdapter() {
106 106
			@Override
107 107
			public void widgetSelected(SelectionEvent e) {
108
				configurator.setIgnoreImportOfExistingSpecimen(!configurator.isIgnoreImportOfExistingSpecimen());
108
				abcdImportConfigurator.setIgnoreImportOfExistingSpecimen(!abcdImportConfigurator.isIgnoreImportOfExistingSpecimen());
109 109
			}
110 110
		});
111 111

  
112 112
		Button checkBoxIgnoreAuthorship = new Button(composite, SWT.CHECK);
113
		checkBoxIgnoreAuthorship.setSelection(configurator.isIgnoreAuthorship());
113
		checkBoxIgnoreAuthorship.setSelection(abcdImportConfigurator.isIgnoreAuthorship());
114 114
		checkBoxIgnoreAuthorship.setText("Ignore Authorship for name matching");
115 115
		checkBoxIgnoreAuthorship
116 116
		.setToolTipText("Name matching with existing names will be done without "
......
118 118
		checkBoxIgnoreAuthorship.addSelectionListener(new SelectionAdapter() {
119 119
			@Override
120 120
			public void widgetSelected(SelectionEvent e) {
121
				configurator.setIgnoreAuthorship(!configurator.isIgnoreAuthorship());
121
				abcdImportConfigurator.setIgnoreAuthorship(!abcdImportConfigurator.isIgnoreAuthorship());
122 122
			}
123 123
		});
124 124

  
125 125
		Button checkBoxMapUnitIdToCatalogNumber = new Button(composite, SWT.CHECK);
126
		checkBoxMapUnitIdToCatalogNumber.setSelection(configurator.isMapUnitIdToCatalogNumber());
126
		checkBoxMapUnitIdToCatalogNumber.setSelection(abcdImportConfigurator.isMapUnitIdToCatalogNumber());
127 127
		checkBoxMapUnitIdToCatalogNumber.setText("Map UnitID to catalog number");
128 128
		checkBoxMapUnitIdToCatalogNumber
129 129
		.setToolTipText("The UnitID of every ABCD unit will be mapped the catalog number "
......
131 131
		checkBoxMapUnitIdToCatalogNumber.addSelectionListener(new SelectionAdapter() {
132 132
			@Override
133 133
			public void widgetSelected(SelectionEvent e) {
134
				configurator.setMapUnitIdToCatalogNumber(!configurator.isMapUnitIdToCatalogNumber());
134
				abcdImportConfigurator.setMapUnitIdToCatalogNumber(!abcdImportConfigurator.isMapUnitIdToCatalogNumber());
135 135
			}
136 136
		});
137 137
//TODO: only one of the mappings can be checked!
138 138
		Button checkBoxMapUnitIdToAccessionNumber = new Button(composite, SWT.CHECK);
139
		checkBoxMapUnitIdToAccessionNumber.setSelection(configurator.isMapUnitIdToAccessionNumber());
139
		checkBoxMapUnitIdToAccessionNumber.setSelection(abcdImportConfigurator.isMapUnitIdToAccessionNumber());
140 140
		checkBoxMapUnitIdToAccessionNumber.setText("Map UnitID to accession number");
141 141
		checkBoxMapUnitIdToAccessionNumber
142 142
		.setToolTipText("The UnitID of every ABCD unit will be mapped the accession number "
......
144 144
		checkBoxMapUnitIdToAccessionNumber.addSelectionListener(new SelectionAdapter() {
145 145
			@Override
146 146
			public void widgetSelected(SelectionEvent e) {
147
				configurator.setMapUnitIdToAccessionNumber(!configurator.isMapUnitIdToAccessionNumber());
147
				abcdImportConfigurator.setMapUnitIdToAccessionNumber(!abcdImportConfigurator.isMapUnitIdToAccessionNumber());
148 148
			}
149 149
		});
150 150

  
151 151
		Button checkBoxMapUnitIdToBarcode = new Button(composite, SWT.CHECK);
152
		checkBoxMapUnitIdToBarcode.setSelection(configurator.isMapUnitIdToBarcode());
152
		checkBoxMapUnitIdToBarcode.setSelection(abcdImportConfigurator.isMapUnitIdToBarcode());
153 153
		checkBoxMapUnitIdToBarcode.setText("Map UnitID to barcode");
154 154
		checkBoxMapUnitIdToBarcode
155 155
		.setToolTipText("The UnitID of every ABCD unit will be mapped the barcode "
......
157 157
		checkBoxMapUnitIdToBarcode.addSelectionListener(new SelectionAdapter() {
158 158
			@Override
159 159
			public void widgetSelected(SelectionEvent e) {
160
				configurator.setMapUnitIdToBarcode(!configurator.isMapUnitIdToBarcode());
160
				abcdImportConfigurator.setMapUnitIdToBarcode(!abcdImportConfigurator.isMapUnitIdToBarcode());
161 161
			}
162 162
		});
163 163

  
164 164
		Button checkBoxRemoveCountry = new Button(composite, SWT.CHECK);
165
		checkBoxRemoveCountry.setSelection(configurator.isRemoveCountryFromLocalityText());
165
		checkBoxRemoveCountry.setSelection(abcdImportConfigurator.isRemoveCountryFromLocalityText());
166 166
		checkBoxRemoveCountry.setText("Remove country from locality text");
167 167
		checkBoxRemoveCountry
168 168
		.setToolTipText("If the locality text contains information about the "
......
171 171
		checkBoxRemoveCountry.addSelectionListener(new SelectionAdapter() {
172 172
			@Override
173 173
			public void widgetSelected(SelectionEvent e) {
174
				configurator.setRemoveCountryFromLocalityText(!configurator.isRemoveCountryFromLocalityText());
174
				abcdImportConfigurator.setRemoveCountryFromLocalityText(!abcdImportConfigurator.isRemoveCountryFromLocalityText());
175 175
			}
176 176
		});
177 177

  
178 178
		Button checkBoxMoveToDefaultClassification = new Button(composite, SWT.CHECK);
179
		checkBoxMoveToDefaultClassification.setSelection(configurator.isMoveNewTaxaToDefaultClassification());
179
		checkBoxMoveToDefaultClassification.setSelection(abcdImportConfigurator.isMoveNewTaxaToDefaultClassification());
180 180
		checkBoxMoveToDefaultClassification.setText("Create new classification for new taxa");
181 181
		checkBoxMoveToDefaultClassification
182 182
		.setToolTipText("For taxa that do not exist in the data base "
......
184 184
		checkBoxMoveToDefaultClassification.addSelectionListener(new SelectionAdapter() {
185 185
			@Override
186 186
			public void widgetSelected(SelectionEvent e) {
187
				configurator.setMoveNewTaxaToDefaultClassification(!configurator.isMoveNewTaxaToDefaultClassification());
187
				abcdImportConfigurator.setMoveNewTaxaToDefaultClassification(!abcdImportConfigurator.isMoveNewTaxaToDefaultClassification());
188 188
			}
189 189
		});
190 190

  
191 191
		Button checkBoxImportSiblings = new Button(composite, SWT.CHECK);
192
		checkBoxImportSiblings.setSelection(configurator.isGetSiblings());
192
		checkBoxImportSiblings.setSelection(abcdImportConfigurator.isGetSiblings());
193 193
		checkBoxImportSiblings.setText("Import all children of cultures or tissue samples");
194 194
		checkBoxImportSiblings
195 195
        	.setToolTipText("For a tissue sample or culture all children will be searched and imported");
196 196
		checkBoxImportSiblings.addSelectionListener(new SelectionAdapter() {
197 197
            @Override
198 198
            public void widgetSelected(SelectionEvent e) {
199
                configurator.setGetSiblings(checkBoxImportSiblings.getSelection());
199
                abcdImportConfigurator.setGetSiblings(checkBoxImportSiblings.getSelection());
200 200
            }
201 201
        });
202 202

  
203 203
        Button checkBoxAddIndividualsAssociations = new Button(composite, SWT.CHECK);
204
        checkBoxAddIndividualsAssociations.setSelection(configurator.isAddIndividualsAssociationsSuchAsSpecimenAndObservations());
204
        checkBoxAddIndividualsAssociations.setSelection(abcdImportConfigurator.isAddIndividualsAssociationsSuchAsSpecimenAndObservations());
205 205
        checkBoxAddIndividualsAssociations.setText("Create an Individual Association for each Specimen");
206 206
        checkBoxAddIndividualsAssociations
207 207
        	.setToolTipText("For each specimen associated to a taxon an indiviadual association to this taxon is created");
208 208
        checkBoxAddIndividualsAssociations.addSelectionListener(new SelectionAdapter() {
209 209
            @Override
210 210
            public void widgetSelected(SelectionEvent e) {
211
                configurator.setAddIndividualsAssociationsSuchAsSpecimenAndObservations(!configurator.isAddIndividualsAssociationsSuchAsSpecimenAndObservations());
211
                abcdImportConfigurator.setAddIndividualsAssociationsSuchAsSpecimenAndObservations(!abcdImportConfigurator.isAddIndividualsAssociationsSuchAsSpecimenAndObservations());
212 212
            }
213 213
        });
214 214

  
215 215
        Button checkBoxReuseDescriptiveGroups = new Button(composite, SWT.CHECK);
216
        checkBoxReuseDescriptiveGroups.setSelection(configurator.isReuseExistingDescriptiveGroups());
216
        checkBoxReuseDescriptiveGroups.setSelection(abcdImportConfigurator.isReuseExistingDescriptiveGroups());
217 217
        checkBoxReuseDescriptiveGroups.setText("Reuse existing descriptive group");
218 218
        checkBoxReuseDescriptiveGroups
219 219
        	.setToolTipText("Reuse one of the existing descriptive groups or create a new one for every import");
220 220
        checkBoxReuseDescriptiveGroups.addSelectionListener(new SelectionAdapter() {
221 221
            @Override
222 222
            public void widgetSelected(SelectionEvent e) {
223
                configurator.setReuseExistingDescriptiveGroups(!configurator.isReuseExistingDescriptiveGroups());
223
                abcdImportConfigurator.setReuseExistingDescriptiveGroups(!abcdImportConfigurator.isReuseExistingDescriptiveGroups());
224 224
            }
225 225
        });
226 226

  
227 227
        Button checkBoxReuseExistingTaxa = new Button(composite, SWT.CHECK);
228
        checkBoxReuseExistingTaxa.setSelection(configurator.isReuseExistingTaxaWhenPossible());
228
        checkBoxReuseExistingTaxa.setSelection(abcdImportConfigurator.isReuseExistingTaxaWhenPossible());
229 229
        checkBoxReuseExistingTaxa.setText("Reuse existing taxa when possible");
230 230
        checkBoxReuseExistingTaxa
231 231
        	.setToolTipText("Reuse existing taxa when the name matches the identified name of the specimen");
232 232
        checkBoxReuseExistingTaxa.addSelectionListener(new SelectionAdapter() {
233 233
            @Override
234 234
            public void widgetSelected(SelectionEvent e) {
235
                configurator.setReuseExistingDescriptiveGroups(!configurator.isReuseExistingDescriptiveGroups());
235
                abcdImportConfigurator.setReuseExistingDescriptiveGroups(!abcdImportConfigurator.isReuseExistingDescriptiveGroups());
236 236
            }
237 237
        });
238 238

  
......
256 256

  
257 257
	@Override
258 258
    public void widgetSelected(SelectionEvent e) {
259
        this.configurator.setNomenclaturalCode(NomenclaturalCode.getByKey(nomenclaturalCodeSelectionCombo.getText()));
259
        this.abcdImportConfigurator.setNomenclaturalCode(NomenclaturalCode.getByKey(nomenclaturalCodeSelectionCombo.getText()));
260 260

  
261 261
    }
262 262

  
263 263
	 public void saveConfigToPrefernceStore() {
264 264
	        PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_ADD_INDIVIDUALS_ASSOCIATIONS_SUCH_AS_SPECIMEN_AND_OBSERVATIONS,
265
	                configurator.isAddIndividualsAssociationsSuchAsSpecimenAndObservations());
265
	                abcdImportConfigurator.isAddIndividualsAssociationsSuchAsSpecimenAndObservations());
266 266
	        PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_ADD_MEDIA_AS_MEDIASPECIMEN,
267
                    configurator.isAddMediaAsMediaSpecimen());
267
                    abcdImportConfigurator.isAddMediaAsMediaSpecimen());
268 268
	        PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_ALLOW_REUSE_OTHER_CLASSIFICATIONS,
269
                    configurator.isAllowReuseOtherClassifications());
269
                    abcdImportConfigurator.isAllowReuseOtherClassifications());
270 270
	        PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_DEDUPLICATE_CLASSIFICATIONS,
271
                    configurator.isDeduplicateClassifications());
271
                    abcdImportConfigurator.isDeduplicateClassifications());
272 272
	        PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_DEDUPLICATE_REFERENCES,
273
                    configurator.isDeduplicateReferences());
273
                    abcdImportConfigurator.isDeduplicateReferences());
274 274
	        PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_DO_SIBLINGS,
275
                    configurator.isGetSiblings());
275
                    abcdImportConfigurator.isGetSiblings());
276 276
	        PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_IGNORE_AUTHORSHIP,
277
                    configurator.isIgnoreAuthorship());
277
                    abcdImportConfigurator.isIgnoreAuthorship());
278 278
	        PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_IGNORE_IMPORT_OF_EXISTING_SPECIMEN,
279
                    configurator.isIgnoreImportOfExistingSpecimen());
279
                    abcdImportConfigurator.isIgnoreImportOfExistingSpecimen());
280 280
	        PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_MAP_UNIT_ID_TO_ACCESSION_NUMBER,
281
                    configurator.isMapUnitIdToAccessionNumber());
281
                    abcdImportConfigurator.isMapUnitIdToAccessionNumber());
282 282
	        PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_MAP_UNIT_ID_TO_BARCODE,
283
                    configurator.isMapUnitIdToBarcode());
283
                    abcdImportConfigurator.isMapUnitIdToBarcode());
284 284
	        PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_MAP_UNIT_ID_TOCATALOG_NUMBER,
285
                    configurator.isMapUnitIdToCatalogNumber());
285
                    abcdImportConfigurator.isMapUnitIdToCatalogNumber());
286 286
	        PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_MOVE_NEW_TAXA_TO_DEFAULT_CLASSIFICATION,
287
                    configurator.isMoveNewTaxaToDefaultClassification());
287
                    abcdImportConfigurator.isMoveNewTaxaToDefaultClassification());
288 288
	        PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_OVERWRITE_EXISTING_SPECIMEN,
289
                    configurator.isOverwriteExistingSpecimens());
289
                    abcdImportConfigurator.isOverwriteExistingSpecimens());
290 290
	        PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_REUSE_EXISTING_DESCRIPTIVE_GROUPS,
291
                    configurator.isReuseExistingDescriptiveGroups());
291
                    abcdImportConfigurator.isReuseExistingDescriptiveGroups());
292 292
	        PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_REUSE_EXISTING_META_DATA,
293
                    configurator.isReuseExistingMetaData());
293
                    abcdImportConfigurator.isReuseExistingMetaData());
294 294
	        PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_REUSE_EXISTING_TAXA_WHEN_POSSIBLE,
295
                    configurator.isReuseExistingTaxaWhenPossible());
296
	        if ( configurator.getNomenclaturalCode() != null){
297
	            PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_NOMENCLATURAL_CODE, configurator.getNomenclaturalCode().getKey());
295
                    abcdImportConfigurator.isReuseExistingTaxaWhenPossible());
296
	        if ( abcdImportConfigurator.getNomenclaturalCode() != null){
297
	            PreferencesUtil.getPreferenceStore().setValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_NOMENCLATURAL_CODE, abcdImportConfigurator.getNomenclaturalCode().getKey());
298 298
	        }
299 299

  
300 300

  
301 301
	    }
302 302

  
303 303
	 public String createConfigString(){
304
	    return configurator.toString();
304
	    return abcdImportConfigurator.toString();
305 305

  
306 306
	 }
307 307

  
......
317 317
        // TODO Auto-generated method stub
318 318

  
319 319
    }
320

  
321
    public void createAbcdImportConfig() {
322
        this.abcdImportConfigurator.setAddIndividualsAssociationsSuchAsSpecimenAndObservations(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_ADD_INDIVIDUALS_ASSOCIATIONS_SUCH_AS_SPECIMEN_AND_OBSERVATIONS));
323
        this.abcdImportConfigurator.setAddMediaAsMediaSpecimen(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_ADD_MEDIA_AS_MEDIASPECIMEN));
324
        this.abcdImportConfigurator.setAllowReuseOtherClassifications(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_ALLOW_REUSE_OTHER_CLASSIFICATIONS));
325
        //this.abcdImportConfigurator.setClassificationUuid(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_CLASSIFICATION_UUID));
326
        this.abcdImportConfigurator.setDeduplicateClassifications(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_DEDUPLICATE_CLASSIFICATIONS));
327
        this.abcdImportConfigurator.setDeduplicateReferences(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_DEDUPLICATE_REFERENCES));
328
       // this.abcdImportConfigurator.setDefaultAuthor(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_DEFAULT_AUTHOR));
329
        this.abcdImportConfigurator.setGetSiblings(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_DO_SIBLINGS));
330
        this.abcdImportConfigurator.setIgnoreAuthorship(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_IGNORE_AUTHORSHIP));
331
        this.abcdImportConfigurator.setIgnoreImportOfExistingSpecimen(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_IGNORE_IMPORT_OF_EXISTING_SPECIMEN));
332
        this.abcdImportConfigurator.setMapUnitIdToAccessionNumber(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_MAP_UNIT_ID_TO_ACCESSION_NUMBER));
333
        this.abcdImportConfigurator.setMapUnitIdToBarcode(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_MAP_UNIT_ID_TO_BARCODE));
334
        this.abcdImportConfigurator.setMapUnitIdToCatalogNumber(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_MAP_UNIT_ID_TOCATALOG_NUMBER));
335
        this.abcdImportConfigurator.setMoveNewTaxaToDefaultClassification(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_MOVE_NEW_TAXA_TO_DEFAULT_CLASSIFICATION));
336
        this.abcdImportConfigurator.setReuseExistingDescriptiveGroups(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_REUSE_EXISTING_DESCRIPTIVE_GROUPS));
337
        this.abcdImportConfigurator.setReuseExistingTaxaWhenPossible(doGetPreferenceStore().getBoolean(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_REUSE_EXISTING_TAXA_WHEN_POSSIBLE));
338

  
339
    }
320 340
}

Also available in: Unified diff