performed javacscript:fix and worked on documentation
[taxeditor.git] / taxeditor-bulkeditor / src / main / java / eu / etaxonomy / taxeditor / bulkeditor / command / BulkEditorPropertyTester.java
index 4883940078c51d9a3f2838144a88fc88c9838b31..378729b3541c080a2db6257680d886c29f9c2e3a 100644 (file)
@@ -1,49 +1,52 @@
-// $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.command;\r
-\r
-import org.apache.log4j.Logger;\r
-import org.eclipse.core.expressions.PropertyTester;\r
-import org.eclipse.ui.IEditorInput;\r
-\r
-import eu.etaxonomy.taxeditor.bulkeditor.BulkEditor;\r
-import eu.etaxonomy.taxeditor.bulkeditor.input.AbstractBulkEditorInput;\r
-\r
-/**\r
- * @author p.ciardelli\r
- * @created 21.09.2009\r
- * @version 1.0\r
- */\r
-public class BulkEditorPropertyTester extends PropertyTester {\r
-       private static final Logger logger = Logger\r
-                       .getLogger(BulkEditorPropertyTester.class);\r
-\r
-       /* (non-Javadoc)\r
-        * @see org.eclipse.core.expressions.IPropertyTester#test(java.lang.Object, java.lang.String, java.lang.Object[], java.lang.Object)\r
-        */\r
-       public boolean test(Object receiver, String property, Object[] args,\r
-                       Object expectedValue) {\r
-               BulkEditor bulkEditor = (BulkEditor) receiver;\r
-               if ("isMergingEnabled".equals(property)) {                      \r
-                       IEditorInput input = bulkEditor.getEditorInput();\r
-                       if (input instanceof AbstractBulkEditorInput) {\r
-                               return ((AbstractBulkEditorInput) input).isMergingEnabled();\r
-                       }\r
-               }\r
-//             if (("isPublishFlagEditingEnabled").equals(property)) {\r
-//                     IEditorInput input = bulkEditor.getEditorInput();\r
-//                     if (input instanceof NameEditorInput) {\r
-//                             return ((NameEditorInput) input).isPublishFlagEnabled();\r
-//                     }\r
-//             }\r
-               return false;\r
-       }\r
-}
\ No newline at end of file
+// $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.command;
+
+import org.apache.log4j.Logger;
+import org.eclipse.core.expressions.PropertyTester;
+import org.eclipse.ui.IEditorInput;
+
+import eu.etaxonomy.taxeditor.bulkeditor.BulkEditor;
+import eu.etaxonomy.taxeditor.bulkeditor.input.AbstractBulkEditorInput;
+
+/**
+ * <p>BulkEditorPropertyTester class.</p>
+ *
+ * @author p.ciardelli
+ * @created 21.09.2009
+ * @version 1.0
+ */
+public class BulkEditorPropertyTester extends PropertyTester {
+       private static final Logger logger = Logger
+                       .getLogger(BulkEditorPropertyTester.class);
+
+       /* (non-Javadoc)
+        * @see org.eclipse.core.expressions.IPropertyTester#test(java.lang.Object, java.lang.String, java.lang.Object[], java.lang.Object)
+        */
+       /** {@inheritDoc} */
+       public boolean test(Object receiver, String property, Object[] args,
+                       Object expectedValue) {
+               BulkEditor bulkEditor = (BulkEditor) receiver;
+               if ("isMergingEnabled".equals(property)) {                      
+                       IEditorInput input = bulkEditor.getEditorInput();
+                       if (input instanceof AbstractBulkEditorInput) {
+                               return ((AbstractBulkEditorInput) input).isMergingEnabled();
+                       }
+               }
+//             if (("isPublishFlagEditingEnabled").equals(property)) {
+//                     IEditorInput input = bulkEditor.getEditorInput();
+//                     if (input instanceof NameEditorInput) {
+//                             return ((NameEditorInput) input).isPublishFlagEnabled();
+//                     }
+//             }
+               return false;
+       }
+}