private Combo nomenclaturalCodeSelectionCombo;
private Combo checkBoxMapUnitId;
private Combo textDNAProviderString;
+ Button checkBoxReuseDescriptiveGroups;
protected AbcdImportConfiguratorWizardPage(String title, String description, Abcd206ImportConfigurator configurator) {
this(title, description, configurator, false, false);
}
- Button checkBoxReuseDescriptiveGroups = new Button(composite, SWT.CHECK);
+ checkBoxReuseDescriptiveGroups = new Button(composite, SWT.CHECK);
gridData = new GridData();
gridData.horizontalAlignment = GridData.FILL_HORIZONTAL;
gridData.horizontalSpan = 2;
abcdImportConfigurator.setReuseExistingDescriptiveGroups(!abcdImportConfigurator.isReuseExistingDescriptiveGroups());
}
});
+
+ if (!abcdImportConfigurator.isAddIndividualsAssociations()) {
+ checkBoxReuseDescriptiveGroups.setEnabled(false);
+ }
Label labelSpecimen = new Label(composite, SWT.NONE);
if (index == 0) {
this.abcdImportConfigurator.setAddIndividualsAssociations(true);
this.abcdImportConfigurator.setAddDeterminations(false);
+ this.checkBoxReuseDescriptiveGroups.setEnabled(true);
}
if (index == 1) {
this.abcdImportConfigurator.setAddIndividualsAssociations(false);
this.abcdImportConfigurator.setAddDeterminations(true);
+ this.checkBoxReuseDescriptiveGroups.setEnabled(false);
}
if (index == 2) {
this.abcdImportConfigurator.setAddIndividualsAssociations(true);
this.abcdImportConfigurator.setAddDeterminations(true);
+ this.checkBoxReuseDescriptiveGroups.setEnabled(true);
}
}