cleanup
authorAndreas Müller <a.mueller@bgbm.org>
Tue, 5 Jan 2021 20:02:26 +0000 (21:02 +0100)
committerAndreas Müller <a.mueller@bgbm.org>
Tue, 5 Jan 2021 20:02:26 +0000 (21:02 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/in/ImportFromFileDataSourceWithReferenceWizardPage.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/in/ImportFromFileDataSourceWizardPage.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/in/sdd/SddImportWizardE4.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/AbcdImportConfiguratorWizardPage.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/ExcelNormalExplicitTaxaImportWizard.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/SddImportWizard.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/ImageElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/openurl/OpenUrlSelectorWizard.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/dataimport/e4/SaveImportedSpecimenActionE4.java

index a04379620e759069e596b5b09f17f13edac40da4..f7b53f1ada58f2608cfc02cb40632de468d3f13a 100644 (file)
@@ -18,10 +18,8 @@ import org.eclipse.swt.widgets.Label;
 import org.eclipse.swt.widgets.Text;
 
 /**
- *
  * @author pplitzner
  * @since Oct 5, 2017
- *
  */
 public class ImportFromFileDataSourceWithReferenceWizardPage extends ImportFromFileDataSourceWizardPage {
 
@@ -32,7 +30,6 @@ public class ImportFromFileDataSourceWithReferenceWizardPage extends ImportFromF
         super();
        }
 
-       /** {@inheritDoc} */
        @Override
     public void createControl(Composite parent) {
                super.createControl(parent);
@@ -53,5 +50,4 @@ public class ImportFromFileDataSourceWithReferenceWizardPage extends ImportFromF
        public void setTextReferenceString(Text textReferenceString) {
                this.textReferenceString = textReferenceString;
        }
-
-}
+}
\ No newline at end of file
index 1e324bd4056e6ac1be69b1f943a525f9fafbe2c0..7f6022f8a968af30be013314bdd63ed668dd5f0a 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.io.e4.in;
 
 import java.io.File;
@@ -112,5 +111,4 @@ public class ImportFromFileDataSourceWizardPage extends WizardPage {
        public boolean isPageComplete() {
                return CdmUtils.isNotBlank(text_source.getText());
        }
-
-}
+}
\ No newline at end of file
index 4077176836c0e227a6a63785426da89530bd8ff9..b2f20b315d1513156a5da8be21e74015083f2be4 100644 (file)
@@ -27,14 +27,11 @@ import eu.etaxonomy.taxeditor.io.e4.in.ImportFromFileDataSourceWithReferenceWiza
 import eu.etaxonomy.taxeditor.store.CdmStore;
 
 /**
- *
  * @author pplitzner
  * @since Oct 5, 2017
- *
  */
 public class SddImportWizardE4 extends AbstractImportWizardE4<SDDImportConfigurator> {
 
-
     private SDDImportConfigurator configurator;
 
        private ImportFromFileDataSourceWithReferenceWizardPage dataSourcePage;
@@ -44,7 +41,6 @@ public class SddImportWizardE4 extends AbstractImportWizardE4<SDDImportConfigura
            super(context, partService);
        }
 
-       /** {@inheritDoc} */
        @Override
        public SDDImportConfigurator getConfigurator() {
                return configurator;
@@ -62,7 +58,6 @@ public class SddImportWizardE4 extends AbstractImportWizardE4<SDDImportConfigura
                super.addPages();
        }
 
-       /** {@inheritDoc} */
        @Override
        public boolean performFinish() {
                URI source = dataSourcePage.getUri();
@@ -74,9 +69,8 @@ public class SddImportWizardE4 extends AbstractImportWizardE4<SDDImportConfigura
                return true;
        }
 
-       /** {@inheritDoc} */
        @Override
     public void init() {
                configurator =  CdmStore.getImportManager().SddConfigurator();
        }
-}
+}
\ No newline at end of file
index 81449f2ba9c3ffe3aa0697eb993e5967e322ab6a..bdc1bb5ad186eb2ffd527fbb95fb4301c9950238 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.io.wizard;
 
 import java.net.URI;
@@ -46,9 +45,7 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
 import eu.etaxonomy.taxeditor.ui.dialog.selection.SelectionDialogFactory;
 
 /**
- *
  * @author pplitzner
- *
  */
 public class AbcdImportConfiguratorWizardPage extends AbstractPreferenceWizard implements SelectionListener {
 
@@ -105,9 +102,6 @@ public class AbcdImportConfiguratorWizardPage extends AbstractPreferenceWizard i
                 "Tooltips will explain parameters in more detail", configurator, true, false);
     }
 
-
-
-       /** {@inheritDoc} */
        @Override
     public void createControl(Composite parent) {
            Composite composite = new Composite(parent, SWT.NULL);
@@ -169,8 +163,6 @@ public class AbcdImportConfiguratorWizardPage extends AbstractPreferenceWizard i
             }
         });
 
-
-
         Button checkBoxMoveToDefaultClassification = new Button(composite, SWT.CHECK);
         gridData = new GridData();
         gridData.horizontalAlignment = GridData.FILL_HORIZONTAL;
@@ -537,11 +529,9 @@ public class AbcdImportConfiguratorWizardPage extends AbstractPreferenceWizard i
                 abcdImportConfigurator.setDnaSoure(null);
             }
         }
-
-
     }
 
-        public void saveConfigToPrefernceStore() {
+       public void saveConfigToPrefernceStore() {
             try{
                 abcdImportConfigurator.setDnaSoure(URI.create(textDNAProviderString.getText()));
             }catch(IllegalArgumentException e){
@@ -549,10 +539,7 @@ public class AbcdImportConfiguratorWizardPage extends AbstractPreferenceWizard i
                 abcdImportConfigurator.setDnaSoure(null);
             }
 
-
             PreferencesUtil.setStringValue(IPreferenceKeys.LAST_USED_ABCD_CONFIG, abcdImportConfigurator.toString());
-
-
            }
 
         public String createConfigString(){
@@ -560,19 +547,12 @@ public class AbcdImportConfiguratorWizardPage extends AbstractPreferenceWizard i
 
         }
 
-
-
-    /* (non-Javadoc)
-     * @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent)
-     */
     @Override
     public void widgetDefaultSelected(SelectionEvent e) {
         // TODO Auto-generated method stub
-
     }
 
     public void createAbcdImportConfig() {
         this.abcdImportConfigurator = PreferencesUtil.getLocalAbcdImportConfigurator(false);
-
     }
 }
index 46ab6ef20299348a40a61bb9cf950ca87e5bc6a9..5d55d0531fa1b08b6f80c6f5fc62f5c8a0eced63 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.io.wizard;
 
 import java.io.File;
@@ -28,13 +27,11 @@ import eu.etaxonomy.cdm.io.excel.taxa.NormalExplicitImportConfigurator;
 import eu.etaxonomy.cdm.model.taxon.TaxonNode;
 import eu.etaxonomy.taxeditor.store.CdmStore;
 
-
 /**
  * <p>ExcelNormalExplicitTaxaImportWizard class.</p>
  *
  * @author n.hoffmann
  * @created Sep 22, 2009
- * @version 1.0
  */
 public class ExcelNormalExplicitTaxaImportWizard extends AbstractImportWizard<NormalExplicitImportConfigurator>{
 
@@ -43,19 +40,11 @@ public class ExcelNormalExplicitTaxaImportWizard extends AbstractImportWizard<No
        private ImportFromFileDataSourceWizardPage dataSourcePage;
        private static final Logger logger = Logger.getLogger(ExcelNormalExplicitTaxaImportWizard.class);
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.io.wizard.AbstractImportWizard#getConfigurator()
-        */
-       /** {@inheritDoc} */
        @Override
        public NormalExplicitImportConfigurator getConfigurator() {
                return configurator;
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.jface.wizard.Wizard#performFinish()
-        */
-       /** {@inheritDoc} */
        @Override
        public boolean performFinish() {
                URI source = dataSourcePage.getUri();
@@ -82,10 +71,6 @@ public class ExcelNormalExplicitTaxaImportWizard extends AbstractImportWizard<No
                return true;
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
-        */
-       /** {@inheritDoc} */
        @Override
     public void init(IWorkbench workbench, IStructuredSelection selection) {
                super.init(workbench, selection);
@@ -97,10 +82,6 @@ public class ExcelNormalExplicitTaxaImportWizard extends AbstractImportWizard<No
                }
        }
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.io.wizard.AbstractImportWizard#addPages()
-        */
-       /** {@inheritDoc} */
        @Override
        public void addPages() {
                super.addPages();
@@ -109,4 +90,4 @@ public class ExcelNormalExplicitTaxaImportWizard extends AbstractImportWizard<No
                                "Please choose an xls file in the NormalExplicit format.", new String[]{"*.xlsx", "*.xls", "*.*"});
                addPage(dataSourcePage);
        }
-}
+}
\ No newline at end of file
index 5159c2086c47b120147e6172f95f5eb7ca21f78b..dc3460afd2195e6eb885d6b5b937d15022ff567b 100644 (file)
@@ -26,7 +26,6 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
  *
  * @author n.hoffmann
  * @created Jun 16, 2010
- * @version 1.0
  */
 public class SddImportWizard extends AbstractImportWizard<SDDImportConfigurator> {
 
@@ -34,20 +33,11 @@ public class SddImportWizard extends AbstractImportWizard<SDDImportConfigurator>
 
        private ImportFromFileDataSourceWizardPage dataSourcePage;
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.io.wizard.AbstractImportWizard#getConfigurator()
-        */
-       /** {@inheritDoc} */
        @Override
        public SDDImportConfigurator getConfigurator() {
                return configurator;
        }
 
-       /*
-        * (non-Javadoc)
-        * @see org.eclipse.jface.wizard.Wizard#addPage(org.eclipse.jface.wizard.IWizardPage)
-        */
-       /** {@inheritDoc} */
        @Override
        public void addPages() {
                super.addPages();
@@ -57,10 +47,6 @@ public class SddImportWizard extends AbstractImportWizard<SDDImportConfigurator>
                addPage(dataSourcePage);
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.jface.wizard.Wizard#performFinish()
-        */
-       /** {@inheritDoc} */
        @Override
        public boolean performFinish() {
                URI source = dataSourcePage.getUri();
@@ -72,13 +58,9 @@ public class SddImportWizard extends AbstractImportWizard<SDDImportConfigurator>
                return true;
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
-        */
-       /** {@inheritDoc} */
        @Override
     public void init(IWorkbench workbench, IStructuredSelection selection) {
                super.init(workbench, selection);
                configurator =  CdmStore.getImportManager().SddConfigurator();
        }
-}
+}
\ No newline at end of file
index 4e004bf0ff54cf87074f790c7d3dede4b90a0519..ab2db090107e923aef88008bf03802cf4ab09a23 100644 (file)
@@ -6,7 +6,6 @@
  * The contents of this file are subject to the Mozilla Public License Version 1.1
  * See LICENSE.TXT at the top of this package for the full license terms.
  */
-
 package eu.etaxonomy.taxeditor.ui.element;
 
 import java.io.IOException;
@@ -44,14 +43,12 @@ import eu.etaxonomy.taxeditor.view.e4.supplementaldata.SupplementalDataPartE4;
 /**
  * @author n.hoffmann
  * @created Sep 24, 2010
- * @version 1.0
  */
 public class ImageElement extends AbstractCdmFormElement implements PaintListener{
 
     /**
      * @author pplitzner
      * @since Jul 17, 2019
-     *
      */
     public class LoadImageJob extends Job {
         public LoadImageJob(String name) {
index 6327d4f3b31e98bb358fbaab6f77780a4d9ea473..bad56dc80c1e5dab95844a45f06a649b4407a7dc 100644 (file)
@@ -6,7 +6,6 @@
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
-
 package eu.etaxonomy.taxeditor.ui.openurl;
 
 import java.net.URI;
@@ -27,7 +26,6 @@ import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
 /**
  * @author n.hoffmann
  * @created Jan 31, 2011
- * @version 1.0
  */
 public class OpenUrlSelectorWizard extends Wizard {
 
@@ -45,8 +43,6 @@ public class OpenUrlSelectorWizard extends Wizard {
 
        private final String referenceDetail;
 
-
-
        /**
         * @param openUrlSelectorElement
         * @param reference
@@ -89,9 +85,6 @@ public class OpenUrlSelectorWizard extends Wizard {
                query.startPage = referenceDetail;
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.jface.wizard.Wizard#addPages()
-        */
        @Override
        public void addPages() {
 
@@ -101,54 +94,32 @@ public class OpenUrlSelectorWizard extends Wizard {
                super.addPages();
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.jface.wizard.Wizard#performFinish()
-        */
        @Override
        public boolean performFinish() {
                return true;
        }
 
-       /**
-        * @param openUrlReference the openUrlReference to set
-        */
        public void setOpenUrlReference(OpenUrlReference openUrlReference) {
                this.openUrlReference = openUrlReference;
                this.openUrlReferenceImageUri = openUrlReference.getJpegImage(PreferencesUtil.getIntValue(PreferencePredicate.MobotOpenUrlServiceMaxWidth.getKey(), true)
                                , PreferencesUtil.getIntValue(PreferencePredicate.MobotOpenUrlServiceMaxHeight.getKey(), true));
        }
-
-       /**
-        * @return the openUrlReference
-        */
        public OpenUrlReference getOpenUrlReference() {
                return openUrlReference;
        }
 
-       /**
-        * @return
-        */
        public List<OpenUrlReference> getResult() {
                return openUrlServiceWrapper.doResolve(query);
        }
 
-       /**
-        * @return the formFactory
-        */
        public CdmFormFactory getFormFactory() {
                return formFactory;
        }
 
-       /**
-        * @return the openUrlServiceWrapper
-        */
        public MobotOpenUrlServiceWrapper getOpenUrlServiceWrapper() {
                return openUrlServiceWrapper;
        }
 
-       /**
-        * @return
-        */
        public URI getOpenUrlReferenceImageUri() {
                return openUrlReferenceImageUri;
        }
@@ -160,4 +131,4 @@ public class OpenUrlSelectorWizard extends Wizard {
        public String getReferenceDetail() {
                return referenceDetail;
        }
-}
+}
\ No newline at end of file
index d624967e35bc5250814e9984fda9560df78a86fd..4a12261fdff64c0d4b0276a83b670018916e114b 100644 (file)
@@ -31,10 +31,8 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
 import eu.etaxonomy.taxeditor.view.dataimport.GbifResponseComparator;
 
 /**
- *
  * @author pplitzner
  * @since Oct 4, 2017
- *
  */
 public class SaveImportedSpecimenActionE4 extends Action {
 
@@ -50,12 +48,12 @@ public class SaveImportedSpecimenActionE4 extends Action {
     @Override
     public void run() {
         Table table = dataImportView.getTable();
-        Collection<GbifResponse> checkedResults = new HashSet<GbifResponse>();
-        Collection<BioCaseResponse> checkedAbcdResults = new HashSet<BioCaseResponse>();
+        Collection<GbifResponse> checkedResults = new HashSet<>();
+        Collection<BioCaseResponse> checkedAbcdResults = new HashSet<>();
         Object data;
-        Set<String[]> unitIdsGbif = new HashSet<String[]>();
-        Set<String[]> unitIdsBioCase = new HashSet<String[]>();
-        List<GbifResponse> biocaseResponses = new ArrayList<GbifResponse>();
+        Set<String[]> unitIdsGbif = new HashSet<>();
+        Set<String[]> unitIdsBioCase = new HashSet<>();
+        List<GbifResponse> biocaseResponses = new ArrayList<>();
 
         for(TableItem item:table.getItems()){
             if(item.getChecked()){
@@ -80,14 +78,12 @@ public class SaveImportedSpecimenActionE4 extends Action {
                 }else{
                     unitIdsGbif.add(tripleId);
                 }
-
-
             }
         }
         Collections.sort(biocaseResponses, getComparator());
 
         Abcd206ImportConfigurator configuratorAbcd;
-        List<Abcd206ImportConfigurator> abcdConfigurators = new ArrayList<Abcd206ImportConfigurator>();
+        List<Abcd206ImportConfigurator> abcdConfigurators = new ArrayList<>();
         DataSetResponse dataSetResponse;
         OccurenceQuery bioCaseOccurrenceQuery = null;
         URI dataSetUri = null;
@@ -118,7 +114,7 @@ public class SaveImportedSpecimenActionE4 extends Action {
                     configuratorAbcd.setSourceReferenceTitle(sourceRef);
                 }
 
-                unitIdsBioCase = new HashSet<String[]>();
+                unitIdsBioCase = new HashSet<>();
                 bioCaseOccurrenceQuery = new OccurenceQuery(unitIdsBioCase);
                 configuratorAbcd.setOccurenceQuery(bioCaseOccurrenceQuery);
 
@@ -202,7 +198,6 @@ public class SaveImportedSpecimenActionE4 extends Action {
             Job gbifJob = CdmStore.getImportManager().createIOServiceJob(configurator);
             CdmStore.getImportManager().run(gbifJob);
         }
-
     }
 
     private void persistTerm(DefinedTermBase<?> term, ITermService termService, ConversationHolder conversation){
@@ -225,5 +220,4 @@ public class SaveImportedSpecimenActionE4 extends Action {
         }
         return comparator;
     }
-
-}
+}
\ No newline at end of file