corrected visibility check for edit authorities editor
[taxeditor.git] / eu.etaxonomy.taxeditor.bulkeditor / src / main / java / eu / etaxonomy / taxeditor / bulkeditor / command / BulkEditorPropertyTester.java
index 7368adc1d835f5dbfda890534210eee434e8af07..bd8494c00e191d78ae57d11ed21123cd58d5c243 100644 (file)
@@ -12,7 +12,6 @@ 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;
@@ -36,7 +35,7 @@ public class BulkEditorPropertyTester extends PropertyTester {
 
        private static final String IS_MERGING_ENABLED = "isMergingEnabled";
 
-       private static final String IS_GROUP_EDITOR = "isGroupEditor";
+       public static final String IS_GROUP_EDITOR = "isGroupEditor";
     public static final String IS_DERIVED_UNIT_EDITOR = "isDerivedUnitEditor";
     public static final String IS_TAXON_EDITOR = "isTaxonEditor";
     public static final String IS_CONVERT_ENABLED = "isConvertingEnabled";
@@ -50,8 +49,8 @@ public class BulkEditorPropertyTester extends PropertyTester {
     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,7 +73,7 @@ public class BulkEditorPropertyTester extends PropertyTester {
         else if(IS_TAXON_EDITOR.equals(property)){
             return bulkEditor.getEditorInput() instanceof TaxonEditorInput;
         }
-               
+
 //             if (("isPublishFlagEditingEnabled").equals(property)) {
 //                     IEditorInput input = bulkEditor.getEditorInput();
 //                     if (input instanceof NameEditorInput) {