Revision f9b7a561
Added by Katja Luther almost 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/preferencePage/AbcdImportPreference.java | ||
---|---|---|
8 | 8 |
*/ |
9 | 9 |
package eu.etaxonomy.taxeditor.databaseAdmin.preferencePage; |
10 | 10 |
|
11 |
import java.net.URI; |
|
12 |
|
|
11 | 13 |
import org.eclipse.swt.SWT; |
12 | 14 |
import org.eclipse.swt.custom.CLabel; |
13 | 15 |
import org.eclipse.swt.events.SelectionAdapter; |
... | ... | |
19 | 21 |
import org.eclipse.swt.widgets.Combo; |
20 | 22 |
import org.eclipse.swt.widgets.Composite; |
21 | 23 |
import org.eclipse.swt.widgets.Control; |
24 |
import org.eclipse.swt.widgets.Label; |
|
25 |
import org.eclipse.swt.widgets.Text; |
|
22 | 26 |
|
23 | 27 |
import eu.etaxonomy.cdm.api.application.ICdmRepository; |
24 | 28 |
import eu.etaxonomy.cdm.api.service.IPreferenceService; |
... | ... | |
46 | 50 |
|
47 | 51 |
private boolean allowOverride = true; |
48 | 52 |
private CdmPreference preference = null; |
53 |
Text textDNAProviderString; |
|
49 | 54 |
|
50 | 55 |
@Override |
51 | 56 |
protected Control createContents(Composite parent) { |
... | ... | |
115 | 120 |
configurator.setGetSiblings(Boolean.valueOf(valueString)); |
116 | 121 |
}else if (keyString.equals("removeCountryFromLocalityText")){ //$NON-NLS-1$ |
117 | 122 |
configurator.setRemoveCountryFromLocalityText(Boolean.valueOf(valueString)); |
123 |
}else if (keyString.equals("dnaSource")){ //$NON-NLS-1$ |
|
124 |
configurator.setDnaSoure(URI.create(valueString)); |
|
118 | 125 |
} |
119 | 126 |
|
120 | 127 |
} |
... | ... | |
282 | 289 |
} |
283 | 290 |
}); |
284 | 291 |
|
292 |
Label labelRef = new Label(composite, SWT.NONE); |
|
293 |
labelRef.setText("Biocase provider for associated DNA"); |
|
294 |
new Label(composite, SWT.NONE); |
|
295 |
textDNAProviderString = new Text(composite, SWT.NONE); |
|
296 |
textDNAProviderString.setEnabled(true); |
|
297 |
textDNAProviderString.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, true, 1, 1)); |
|
298 |
textDNAProviderString.setText(configurator.getDnaSoure().toString()); |
|
285 | 299 |
GridData gridData = new GridData(); |
286 | 300 |
gridData = new GridData(GridData.BEGINNING, GridData.CENTER, true, false); |
287 | 301 |
gridData.horizontalIndent = 5; |
Also available in: Unified diff
add dnaSource in abcd import wizard