cleanup
authorAndreas Müller <a.mueller@bgbm.org>
Tue, 9 Jun 2020 00:31:36 +0000 (02:31 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Tue, 9 Jun 2020 00:31:36 +0000 (02:31 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/e4/ReconnectHandlerE4.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/ExportToFileDestinationWizardPage.java

index 10dc1b01a8ad7ce9a6d86bea23d7fea1f989ad28..a55c97d4066c1bc23f55feac654b2b6293bed171 100644 (file)
@@ -25,10 +25,8 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
 import eu.etaxonomy.taxeditor.ui.dialog.RemotingLoginDialog;
 
 /**
- *
  * @author pplitzner
  * @date 10.10.2017
- *
  */
 public class ReconnectHandlerE4 {
 
index 94d361254f3b56511ef85df40f06e902be08193d..cc505ec59334ecc16dd59236d162f7543f417779 100644 (file)
@@ -58,13 +58,10 @@ import eu.etaxonomy.taxeditor.remoting.source.ICdmRemoteSource;
 import eu.etaxonomy.taxeditor.store.CdmStore;
 
 /**
- * <p>
  * ExportToFileDestinationWizardPage class.
- * </p>
  *
  * @author n.hoffmann
  * @created 15.06.2009
- * @version 1.0
  */
 public class ExportToFileDestinationWizardPage extends WizardPage implements SelectionListener {
 
@@ -149,7 +146,6 @@ public class ExportToFileDestinationWizardPage extends WizardPage implements Sel
                   case DWCA_EXPORT:
                           dwcaExport = true;
                           break;
-
                }
                this.extension = extension;
                this.setTitle(title);
@@ -248,7 +244,8 @@ public class ExportToFileDestinationWizardPage extends WizardPage implements Sel
                if (outputModelExport || dwcaExport){
             checkExportUnpublished = new Button(composite,  SWT.CHECK);
             checkExportUnpublished.setText("Export unpublished taxa");
-            Label label = new Label(composite, SWT.NONE);
+            @SuppressWarnings("unused")
+            Label nope = new Label(composite, SWT.NONE);
 
             Label separator = new Label(composite, SWT.HORIZONTAL | SWT.SEPARATOR);
             GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
@@ -397,15 +394,11 @@ public class ExportToFileDestinationWizardPage extends WizardPage implements Sel
                     @Override
                     public void widgetDefaultSelected(SelectionEvent e) {
                         // TODO Auto-generated method stub
-
                     }
                 });
-
                        }
 
-
                        if (checkUseSelectedtaxonNode != null){
-
                                if (checkUseSelectedtaxonNode.getSelection()){
                                         classificationSelectionCombo.setEnabled(false);
                                }
@@ -464,7 +457,6 @@ public class ExportToFileDestinationWizardPage extends WizardPage implements Sel
                                        true, false));
                }
 
-
                // make the composite the wizard pages control
                setControl(composite);
        }
@@ -531,7 +523,6 @@ public class ExportToFileDestinationWizardPage extends WizardPage implements Sel
                classificationSelectionCombo.setLayoutData(gridData);
                for(Classification tree : classifications){
                        classificationSelectionCombo.add(tree.getName().getText(), classifications.indexOf(tree));
-
                }
 
                classificationSelectionCombo.select(classifications.indexOf(selectedClassification));
@@ -539,8 +530,6 @@ public class ExportToFileDestinationWizardPage extends WizardPage implements Sel
                // TODO remember last selection
                classificationSelectionCombo.addSelectionListener(this);
 
-
-
                //return classificationSelection;
        }
 
@@ -551,17 +540,14 @@ public class ExportToFileDestinationWizardPage extends WizardPage implements Sel
        @Override
        public void widgetSelected(SelectionEvent e) {
                selectedClassification = classifications.get(classificationSelectionCombo.getSelectionIndex());
-
        }
 
        @Override
        public void widgetDefaultSelected(SelectionEvent e) {
                //not needed here
-
        }
 
        public UUID getSelectedClassificationUUID() {
-
                return selectedClassification.getUuid();
        }
 
@@ -579,7 +565,7 @@ public class ExportToFileDestinationWizardPage extends WizardPage implements Sel
        }
 
        public Set<UUID> getAllClassificationUuids(){
-               Set<UUID> allClassificationUuids = new HashSet();
+               Set<UUID> allClassificationUuids = new HashSet<>();
                for (Classification classification: this.classifications){
                        allClassificationUuids.add(classification.getUuid());
                }
@@ -588,7 +574,6 @@ public class ExportToFileDestinationWizardPage extends WizardPage implements Sel
 
        @Override
        public boolean canFlipToNextPage() {
-        return  getFolderText() != null;
+        return getFolderText() != null;
     }
-
 }