ref #9805: adapt labels
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / dialog / configurator / StructuredDescriptionAggregationConfigurationWizardPage.java
index 153001717fb7068b1ffbbe89f5ef8cfdd4d49b61..aca8c9a8ef8da151c8cdc0713f2ca755d487710c 100755 (executable)
@@ -236,6 +236,11 @@ public class StructuredDescriptionAggregationConfigurationWizardPage
             @Override
             public String getText(Object element){
                 if (element instanceof AggregationMode){
+                       if (((AggregationMode)element).getKey().equals("INTAX")){
+                               return Messages.StructuredDescriptionAggregationWizardPage_SOURCEMODE_WITHIN_TAXON;
+                       }else if (((AggregationMode)element).getKey().equals("TOPAR")){
+                               return Messages.StructuredDescriptionAggregationWizardPage_SOURCEMODE_CHILD_PARENT;
+                       }
                    return ((AggregationMode)element).getLabel();
                 }
                 return null;
@@ -269,7 +274,7 @@ public class StructuredDescriptionAggregationConfigurationWizardPage
 
         //source mode within taxon
         Label sourceModeLabelWithin = new Label(control, SWT.NULL);
-        sourceModeLabelWithin.setText(Messages.DistributionAggregationWizardPage_SOURCEMODE_WITHIN_TAXON);
+        sourceModeLabelWithin.setText(Messages.StructuredDescriptionAggregationWizardPage_SOURCEMODE_WITHIN_TAXON);
         sourceModeLabelWithin.setToolTipText(Messages.DistributionAggregationWizardPage_TOOLTIP_SOURCEMODE_WITHIN_TAXON);
         comboSourceModeWithinTaxon = new Combo(control,  SWT.BORDER| SWT.READ_ONLY);
         comboSourceModeWithinTaxon.setText(Messages.DistributionAggregationWizardPage_AGGREGATION_MODE);
@@ -291,7 +296,7 @@ public class StructuredDescriptionAggregationConfigurationWizardPage
 
         //source mode child parent
         Label sourceModeChildParentLabel = new Label(control, SWT.NULL);
-        sourceModeChildParentLabel.setText(Messages.DistributionAggregationWizardPage_SOURCEMODE_CHILD_PARENT);
+        sourceModeChildParentLabel.setText(Messages.StructuredDescriptionAggregationWizardPage_SOURCEMODE_CHILD_PARENT);
         sourceModeChildParentLabel.setToolTipText(Messages.DistributionAggregationWizardPage_TOOLTIP_SOURCEMODE_CHILD_PARENT);
         comboSourceModeChildParent = new Combo(control,  SWT.BORDER| SWT.READ_ONLY);
         comboSourceModeChildParent.setText(Messages.DistributionAggregationWizardPage_AGGREGATION_MODE);