corrected visibility check for edit authorities editor
authorCherian Mathew <c.mathew@bgbm.org>
Thu, 21 May 2015 13:07:59 +0000 (15:07 +0200)
committerCherian Mathew <c.mathew@bgbm.org>
Thu, 21 May 2015 13:16:10 +0000 (15:16 +0200)
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/command/BulkEditorPropertyTester.java
eu.etaxonomy.taxeditor.editor/plugin.xml

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) {
index c6a2b41c22bd7b9d7449ed6de835ddd9d0c2a217..d06b782aa811d6b29e2875ed6f37b4a6d63f1d12 100644 (file)
                style="push">
             <visibleWhen>
                <reference
-                     definitionId="isGroup">
+                     definitionId="isGroupEditor">
                </reference>
             </visibleWhen>
          </command>
          </with>
       </definition>
       <definition
-            id="isGroup">
+            id="isGroupEditor">
          <with
                variable="activeEditor">
             <test
-                  property="taxeditor-bulkeditor.propertyTester.isGroup">
+                  property="taxeditor-bulkeditor.propertyTester.isGroupEditor">
             </test>
          </with>
       </definition>
             class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"
             id="taxeditor-bulkeditor.PropertyTester"
             namespace="taxeditor-bulkeditor.propertyTester"
-            properties="isGroup"
+            properties="isGroupEditor"
             type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
       </propertyTester>
    </extension>