performed javacscript:fix and worked on documentation
[taxeditor.git] / taxeditor-bulkeditor / src / main / java / eu / etaxonomy / taxeditor / bulkeditor / input / NameEditorInput.java
index f6058db6f4c42da63a23de8c437fe79d5425af97..4f7df060dda480f54c2ae1b0ba3242960d737ef0 100644 (file)
-// $Id$\r
-/**\r
-* Copyright (C) 2007 EDIT\r
-* European Distributed Institute of Taxonomy \r
-* http://www.e-taxonomy.eu\r
-* \r
-* The contents of this file are subject to the Mozilla Public License Version 1.1\r
-* See LICENSE.TXT at the top of this package for the full license terms.\r
-*/\r
-\r
-package eu.etaxonomy.taxeditor.bulkeditor.input;\r
-\r
-import java.util.Arrays;\r
-import java.util.List;\r
-import java.util.UUID;\r
-\r
-import org.apache.log4j.Logger;\r
-\r
-import eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator;\r
-import eu.etaxonomy.cdm.model.name.TaxonNameBase;\r
-import eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorInputTypeValues.BulkEditorInputType;\r
-import eu.etaxonomy.taxeditor.store.CdmStore;\r
-\r
-/**\r
- * @author p.ciardelli\r
- * @created 20.08.2009\r
- * @version 1.0\r
- */\r
-public class NameEditorInput extends AbstractBulkEditorInput<TaxonNameBase> {\r
-       private static final Logger logger = Logger\r
-                       .getLogger(NameEditorInput.class);\r
-       \r
-       private static NameEditorInput instance;\r
-\r
-       /**\r
-        * @param sourceBean\r
-        */\r
-       public NameEditorInput() {\r
-               super(new Object());\r
-       }\r
-\r
-       public static final String ID = "bulkeditor.input.name";\r
-       \r
-       public static AbstractBulkEditorInput getInstance() {\r
-               if (instance == null) {\r
-                       instance = new NameEditorInput();\r
-               }\r
-               return instance;\r
-       }\r
-       \r
-       /* (non-Javadoc)\r
-        * @see org.eclipse.ui.IEditorInput#getName()\r
-        */\r
-       public String getName() {\r
-               return BulkEditorInputType.NAME.label;\r
-       }\r
-\r
-       /* (non-Javadoc)\r
-        * @see org.eclipse.ui.IEditorInput#getToolTipText()\r
-        */\r
-       public String getToolTipText() {\r
-               return getName();\r
-       }\r
-\r
-       /**\r
-        * @return\r
-        */\r
-       public static Object getID() {\r
-               return ID;\r
-       }\r
-\r
-       /* (non-Javadoc)\r
-        * @see eu.etaxonomy.taxeditor.bulkeditor.input.BulkEditorInput#isMergingEnabled()\r
-        */\r
-       @Override\r
-       public boolean isMergingEnabled() {\r
-               return false;\r
-       }\r
-\r
-       @Override\r
-       public List listEntities(IIdentifiableEntityServiceConfigurator configurator) {\r
-               return CdmStore.findNames(configurator);\r
-       }\r
-\r
-       @Override\r
-       public TaxonNameBase loadEntity(UUID uuid) {\r
-               List<String> propertyPaths = Arrays.asList(new String[]{}); \r
-               return CdmStore.getNameService().load(uuid, propertyPaths);\r
-       }\r
-\r
-       public boolean delete(Object entity) {\r
-               return CdmStore.getNameService().delete((TaxonNameBase) entity) != null;\r
-       }\r
-\r
-       public boolean save(Object entity) {\r
-               return CdmStore.getNameService().saveOrUpdate((TaxonNameBase) entity) != null;\r
-       }\r
-\r
-}\r
+// $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.
+*/
+
+package eu.etaxonomy.taxeditor.bulkeditor.input;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.UUID;
+
+import org.apache.log4j.Logger;
+
+import eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator;
+import eu.etaxonomy.cdm.model.name.TaxonNameBase;
+import eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorInputTypeValues.BulkEditorInputType;
+import eu.etaxonomy.taxeditor.store.CdmStore;
+
+/**
+ * <p>NameEditorInput class.</p>
+ *
+ * @author p.ciardelli
+ * @created 20.08.2009
+ * @version 1.0
+ */
+public class NameEditorInput extends AbstractBulkEditorInput<TaxonNameBase> {
+       private static final Logger logger = Logger
+                       .getLogger(NameEditorInput.class);
+       
+       private static NameEditorInput instance;
+
+       /**
+        * <p>Constructor for NameEditorInput.</p>
+        */
+       public NameEditorInput() {
+               super(new Object());
+       }
+
+       /** Constant <code>ID="bulkeditor.input.name"</code> */
+       public static final String ID = "bulkeditor.input.name";
+       
+       /**
+        * <p>Getter for the field <code>instance</code>.</p>
+        *
+        * @return a {@link eu.etaxonomy.taxeditor.bulkeditor.input.AbstractBulkEditorInput} object.
+        */
+       public static AbstractBulkEditorInput getInstance() {
+               if (instance == null) {
+                       instance = new NameEditorInput();
+               }
+               return instance;
+       }
+       
+       /* (non-Javadoc)
+        * @see org.eclipse.ui.IEditorInput#getName()
+        */
+       /**
+        * <p>getName</p>
+        *
+        * @return a {@link java.lang.String} object.
+        */
+       public String getName() {
+               return BulkEditorInputType.NAME.label;
+       }
+
+       /* (non-Javadoc)
+        * @see org.eclipse.ui.IEditorInput#getToolTipText()
+        */
+       /**
+        * <p>getToolTipText</p>
+        *
+        * @return a {@link java.lang.String} object.
+        */
+       public String getToolTipText() {
+               return getName();
+       }
+
+       /**
+        * <p>getID</p>
+        *
+        * @return a {@link java.lang.Object} object.
+        */
+       public static Object getID() {
+               return ID;
+       }
+
+       /* (non-Javadoc)
+        * @see eu.etaxonomy.taxeditor.bulkeditor.input.BulkEditorInput#isMergingEnabled()
+        */
+       /** {@inheritDoc} */
+       @Override
+       public boolean isMergingEnabled() {
+               return false;
+       }
+
+       /** {@inheritDoc} */
+       @Override
+       public List listEntities(IIdentifiableEntityServiceConfigurator configurator) {
+               return CdmStore.findNames(configurator);
+       }
+
+       /** {@inheritDoc} */
+       @Override
+       public TaxonNameBase loadEntity(UUID uuid) {
+               List<String> propertyPaths = Arrays.asList(new String[]{}); 
+               return CdmStore.getNameService().load(uuid, propertyPaths);
+       }
+
+       /** {@inheritDoc} */
+       public boolean delete(Object entity) {
+               return CdmStore.getNameService().delete((TaxonNameBase) entity) != null;
+       }
+
+       /** {@inheritDoc} */
+       public boolean save(Object entity) {
+               return CdmStore.getNameService().saveOrUpdate((TaxonNameBase) entity) != null;
+       }
+
+}