fix compile errors and cleanup
[taxeditor.git] / eu.etaxonomy.taxeditor.navigation / src / main / java / eu / etaxonomy / taxeditor / navigation / navigator / e4 / handler / AggregateDistributionForSubTreeHandler.java
index b3fdc45ec360d5da5ca87e89e1e93b1f3b305f41..88ea9031a7ed3555d763bd8b7b9bbda8efb4ac63 100755 (executable)
@@ -46,23 +46,16 @@ import eu.etaxonomy.taxeditor.workbench.part.IE4SavablePart;
  */
 public class AggregateDistributionForSubTreeHandler extends CdmHandlerE4 {
 
-
-
     private TaxonNodeDto taxonNode;
     private DistributionAggregationConfiguration configurator;
     private static final String NO = Messages.NO;
     private static final String CANCEL = Messages.RemotingMoveTaxonNodeHandler_CANCEL;
     private static final String YES = Messages.YES;
 
-    /**
-     * @param label
-     */
     public AggregateDistributionForSubTreeHandler() {
         super("");
-
     }
 
-
     @Override
     public IStatus allowOperations(IStructuredSelection selection, Shell shell, MPart activePart,
             MHandledMenuItem menuItem) {
@@ -112,8 +105,7 @@ public class AggregateDistributionForSubTreeHandler extends CdmHandlerE4 {
             }
         }
 
-
-        configurator = DistributionAggregationConfiguration.NewInstance(AggregationMode.byAreasAndRanks(), null, TaxonNodeFilter.NewSubtreeInstance(taxonNode.getUuid()), null);
+        configurator = DistributionAggregationConfiguration.NewInstance(AggregationMode.byWithinTaxonAndToParent(), null, TaxonNodeFilter.NewSubtreeInstance(taxonNode.getUuid()), null);
         DistributionAggregationConfiguratorWizard wizard = new DistributionAggregationConfiguratorWizard(configurator);
 
         WizardDialog dialog = new WizardDialog(shell, wizard);
@@ -135,7 +127,6 @@ public class AggregateDistributionForSubTreeHandler extends CdmHandlerE4 {
     @Override
     public void onComplete() {
         // TODO Auto-generated method stub
-
     }
 
     @Override