Revision ddb074af
Added by Katja Luther almost 4 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/configurator/StructuredDescriptionAggregationConfigurationWizardPage.java | ||
---|---|---|
265 | 265 |
|
266 | 266 |
comboSourceModeWithinTaxon.setEnabled(false); |
267 | 267 |
comboSourceModeWithinTaxon.select(0); |
268 |
|
|
268 |
comboSourceModeWithinTaxon.addListener(SWT.Selection, this); |
|
269 | 269 |
Label sourceModeLabel = new Label(control, SWT.NULL); |
270 | 270 |
|
271 | 271 |
sourceModeLabel.setText(Messages.DistributionAggregationWizardPage_SOURCEMODE_CHILD_PARENT); |
... | ... | |
282 | 282 |
|
283 | 283 |
comboSourceModeChildParent.setEnabled(false); |
284 | 284 |
comboSourceModeChildParent.select(0); |
285 |
comboSourceModeChildParent.addListener(SWT.Selection, this); |
|
285 | 286 |
GridLayoutFactory.fillDefaults(); |
286 | 287 |
Label sourceTypeLabel = new Label(control, SWT.NULL); |
287 | 288 |
sourceTypeLabel.setText(Messages.DistributionAggregationWizardPage_SOURCE_TYPE); |
... | ... | |
330 | 331 |
updateLowerRankCombo(); |
331 | 332 |
} |
332 | 333 |
|
334 |
if (event.widget.equals(this.comboSourceModeChildParent) || event.widget.equals(this.comboSourceModeWithinTaxon)){ |
|
335 |
if (getSourceModeChildParent().equals(AggregationSourceMode.NONE) && getSourceModeWithinTaxon().equals(AggregationSourceMode.NONE)){ |
|
336 |
sourceTypeViewer.getTable().setEnabled(false); |
|
337 |
}else { |
|
338 |
sourceTypeViewer.getTable().setEnabled(true); |
|
339 |
} |
|
340 |
} |
|
341 |
|
|
333 | 342 |
} |
334 | 343 |
|
335 | 344 |
public List<TaxonNode> getSelectedTaxonNodes(){ |
Also available in: Unified diff
ref #8785: fix enable/disable sourcetype selection