import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Text;
import eu.etaxonomy.cdm.io.specimen.abcd206.in.Abcd206ImportConfigurator;
import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
private boolean isPreferencePage = false;
private Combo nomenclaturalCodeSelectionCombo;
+ private Text textDNAProviderString;
protected AbcdImportConfiguratorWizardPage(String title, String description, Abcd206ImportConfigurator configurator) {
super(PAGE_NAME);
}
});
+ Label labelRef = new Label(composite, SWT.NONE);
+ labelRef.setText("Biocase provider for associated DNA");
+ new Label(composite, SWT.NONE);
+ textDNAProviderString = new Text(composite, SWT.NONE);
+ textDNAProviderString.setEnabled(true);
+ textDNAProviderString.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, true, 1, 1));
+ if (abcdImportConfigurator.getDnaSoure() != null){
+ textDNAProviderString.setText(abcdImportConfigurator.getDnaSoure().toString());
+ }
+
GridData gridData = new GridData();
gridData = new GridData(GridData.BEGINNING, GridData.CENTER, true, false);
gridData.horizontalIndent = 5;
if ( abcdImportConfigurator.getNomenclaturalCode() != null){
PreferencesUtil.setStringValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_NOMENCLATURAL_CODE, abcdImportConfigurator.getNomenclaturalCode().getKey());
}
+ if ( textDNAProviderString.getText() != null){
+ PreferencesUtil.setStringValue(IPreferenceKeys.ABCD_IMPORT_CONFIGURATOR_DNA_PROVIDER, textDNAProviderString.getText());
+ }
}