Trim code
authorPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 14 Sep 2016 05:07:27 +0000 (07:07 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 14 Sep 2016 05:07:27 +0000 (07:07 +0200)
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/command/BulkEditorPropertyTester.java

index bbfe04df5fd667756cad809a46a1dec119c85e39..20a4c5de0b37c61dd97605476d325ebdc7a1de99 100644 (file)
@@ -22,8 +22,6 @@ import eu.etaxonomy.taxeditor.bulkeditor.input.OccurrenceEditorInput;
 import eu.etaxonomy.taxeditor.bulkeditor.input.TaxonEditorInput;
 
 /**
- * <p>BulkEditorPropertyTester class.</p>
- *
  * @author p.ciardelli
  * @created 21.09.2009
  * @version 1.0
@@ -43,16 +41,13 @@ public class BulkEditorPropertyTester extends PropertyTester {
     public static final String IS_PERSON = "isPerson";
     public static final String IS_TEAM = "isTeam";
     public static final String IS_MEDIA_EDITOR = "isMediaEditor";
-       /* (non-Javadoc)
-        * @see org.eclipse.core.expressions.IPropertyTester#test(java.lang.Object, java.lang.String, java.lang.Object[], java.lang.Object)
-        */
-       /** {@inheritDoc} */
+
+    /** {@inheritDoc} */
        @Override
     public boolean test(Object receiver, String property, Object[] args,
                        Object expectedValue) {
                BulkEditor bulkEditor = null;
 
-
                bulkEditor = (BulkEditor) receiver;
                if (IS_MERGING_ENABLED.equals(property)) {
                        IEditorInput input = bulkEditor.getEditorInput();
@@ -74,16 +69,10 @@ public class BulkEditorPropertyTester extends PropertyTester {
                }
         else if(IS_TAXON_EDITOR.equals(property)){
             return bulkEditor.getEditorInput() instanceof TaxonEditorInput;
-        } else if(IS_MEDIA_EDITOR.equals(property)){
+        }
+        else if(IS_MEDIA_EDITOR.equals(property)){
             return bulkEditor.getEditorInput() instanceof MediaEditorInput;
         }
-
-//             if (("isPublishFlagEditingEnabled").equals(property)) {
-//                     IEditorInput input = bulkEditor.getEditorInput();
-//                     if (input instanceof NameEditorInput) {
-//                             return ((NameEditorInput) input).isPublishFlagEnabled();
-//                     }
-//             }
                return false;
        }
 }