Drastically reducing code by using field editors for preferences
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / io / AbstractIOManager.java
index 09b5afca00d2e8472cf84901c9368d610cedb8a7..2c552df0c2447f6754695c1447bdee6e493f0846 100644 (file)
@@ -1,12 +1,12 @@
 // $Id$
 /**
-* Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
-* http://www.e-taxonomy.eu
-* 
-* 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.
-*/
+ * Copyright (C) 2007 EDIT
+ * European Distributed Institute of Taxonomy 
+ * http://www.e-taxonomy.eu
+ 
+ * 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;
 
@@ -17,8 +17,10 @@ import eu.etaxonomy.cdm.api.application.CdmApplicationController;
 import eu.etaxonomy.cdm.io.common.IIoConfigurator;
 
 /**
- * <p>Abstract AbstractIOHandler class.</p>
- *
+ * <p>
+ * Abstract AbstractIOHandler class.
+ * </p>
+ * 
  * @author n.hoffmann
  * @created Sep 11, 2009
  * @version 1.0
@@ -26,27 +28,34 @@ import eu.etaxonomy.cdm.io.common.IIoConfigurator;
 public abstract class AbstractIOManager<CONFIGURATOR extends IIoConfigurator> {
 
        protected CdmApplicationController applicationController;
-       
+
        public static enum TYPE {
                BerlinModel, Jaxb, Tcs, Excel_Taxa, Endnote, Sdd, Abcd
        }
 
        /**
-        * <p>Constructor for AbstractIOHandler.</p>
-        *
-        * @param applicationController a {@link eu.etaxonomy.cdm.api.application.CdmApplicationController} object.
-        * @param <CONFIGURATOR> a CONFIGURATOR object.
+        * <p>
+        * Constructor for AbstractIOHandler.
+        * </p>
+        * 
+        * @param applicationController
+        *            a
+        *            {@link eu.etaxonomy.cdm.api.application.CdmApplicationController}
+        *            object.
+        * @param <CONFIGURATOR>
+        *            a CONFIGURATOR object.
         */
-       protected AbstractIOManager(CdmApplicationController applicationController){
+       protected AbstractIOManager(CdmApplicationController applicationController) {
                this.applicationController = applicationController;
        }
-       
+
        /**
         * Starts the IO process
-        *
-        * @param configurator a CONFIGURATOR object.
+        * 
+        * @param configurator
+        *            a CONFIGURATOR object.
         */
-       public void run(final CONFIGURATOR configurator){
+       public void run(final CONFIGURATOR configurator) {
                // create job
                Job job = createIOJob(configurator);
                // configure the job
@@ -54,13 +63,16 @@ public abstract class AbstractIOManager<CONFIGURATOR extends IIoConfigurator> {
                job.setUser(true);
                // schedule job
                job.schedule();
-               
+
        }
-       
+
        /**
-        * <p>createIOJob</p>
-        *
-        * @param configurator a CONFIGURATOR object.
+        * <p>
+        * createIOJob
+        * </p>
+        * 
+        * @param configurator
+        *            a CONFIGURATOR object.
         * @return a {@link org.eclipse.core.runtime.jobs.Job} object.
         */
        protected abstract Job createIOJob(CONFIGURATOR configurator);