Revision f9b7a561
Added by Katja Luther almost 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/AbcdImportConfiguratorWizardPage.java | ||
---|---|---|
22 | 22 |
import org.eclipse.swt.widgets.Button; |
23 | 23 |
import org.eclipse.swt.widgets.Combo; |
24 | 24 |
import org.eclipse.swt.widgets.Composite; |
25 |
import org.eclipse.swt.widgets.Label; |
|
26 |
import org.eclipse.swt.widgets.Text; |
|
25 | 27 |
|
26 | 28 |
import eu.etaxonomy.cdm.io.specimen.abcd206.in.Abcd206ImportConfigurator; |
27 | 29 |
import eu.etaxonomy.cdm.model.name.NomenclaturalCode; |
... | ... | |
45 | 47 |
private boolean isPreferencePage = false; |
46 | 48 |
|
47 | 49 |
private Combo nomenclaturalCodeSelectionCombo; |
50 |
private Text textDNAProviderString; |
|
48 | 51 |
|
49 | 52 |
protected AbcdImportConfiguratorWizardPage(String title, String description, Abcd206ImportConfigurator configurator) { |
50 | 53 |
super(PAGE_NAME); |
... | ... | |
235 | 238 |
} |
236 | 239 |
}); |
237 | 240 |
|
241 |
Label labelRef = new Label(composite, SWT.NONE); |
|
242 |
labelRef.setText("Biocase provider for associated DNA"); |
|
243 |
new Label(composite, SWT.NONE); |
|
244 |
textDNAProviderString = new Text(composite, SWT.NONE); |
|
245 |
textDNAProviderString.setEnabled(true); |
|
246 |
textDNAProviderString.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, true, 1, 1)); |
|
247 |
textDNAProviderString.setText(abcdImportConfigurator.getDnaSoure().toString()); |
|
248 |
|
|
238 | 249 |
GridData gridData = new GridData(); |
239 | 250 |
gridData = new GridData(GridData.BEGINNING, GridData.CENTER, true, false); |
240 | 251 |
gridData.horizontalIndent = 5; |
... | ... | |
307 | 318 |
if ( abcdImportConfigurator.getNomenclaturalCode() != null){ |
308 | 319 |
PreferencesUtil.setStringValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_NOMENCLATURAL_CODE, abcdImportConfigurator.getNomenclaturalCode().getKey()); |
309 | 320 |
} |
321 |
if ( textDNAProviderString.getText() != null){ |
|
322 |
PreferencesUtil.setStringValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_DNA_PROVIDER, textDNAProviderString.getText()); |
|
323 |
} |
|
310 | 324 |
|
311 | 325 |
|
312 | 326 |
} |
Also available in: Unified diff
add dnaSource in abcd import wizard