ref #7981 fill DDS aggregation dialogue with correct values for aggregation mode
authorAndreas Müller <a.mueller@bgbm.org>
Thu, 30 Sep 2021 10:02:50 +0000 (12:02 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Thu, 30 Sep 2021 10:04:28 +0000 (12:04 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/configurator/StructuredDescriptionAggregationConfigurationWizardPage.java

index 047853e824f443437bf3d9b39b7045a1eda2080a..7ffadf97ccfbe7ded4a5fbf01d4f2be784686126 100755 (executable)
@@ -203,12 +203,9 @@ public class StructuredDescriptionAggregationConfigurationWizardPage extends Agg
             }
 
         });
-        List<AggregationMode> aggregationModeList = new ArrayList<>();
-        for (AggregationMode mode: AggregationMode.values()){
-            aggregationModeList.add(mode);
-        }
-
+        List<AggregationMode> aggregationModeList = AggregationMode.list(AggregationType.StructuredDescription);
         aggregationModeViewer.setInput(aggregationModeList);
+        aggregationModeViewer.setCheckedElements(configurator.getAggregationModes().toArray());
 
         aggregationModeViewer.addCheckStateListener(new ICheckStateListener(){
             @Override