merge-update from trunk
[taxeditor.git] / eu.etaxonomy.taxeditor.navigation / plugin.xml
index 78ff843f3c5f4da5f134f8b7a0fad9adf118164c..43a4eb2976d9108954297170ffc78c20736fea30 100644 (file)
               </and>
             </visibleWhen>
          </command>
+         <command
+               commandId="eu.etaxonomy.taxeditor.editor.handler.OpenFixClassificationHierarchyHandler"
+               label="%command.label.fixClassificationHierarchy"
+               style="push">
+            <visibleWhen
+                  checkEnabled="true">
+               <and>
+                  <reference
+                        definitionId="isShowExperimentalFeatures">
+                  </reference>
+                  <reference
+                        definitionId="isClassification">
+                  </reference>
+               </and>
+            </visibleWhen>
+         </command>
          <separator
                name="taxeditor-navigation.separator1"
                visible="true">
          </command>
          <command
                commandId="eu.etaxonomy.taxeditor.navigation.moveFactualData"
-               label="Move factual data to another taxon"
+               label="%command.label.moveFactualData"
                style="push">
             <visibleWhen
                   checkEnabled="true">
       <command
             defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.MoveFactualDataHandler"
             id="eu.etaxonomy.taxeditor.navigation.moveFactualData"
-            name="Move Factual Data">
+            name="%command.name.moveFactualData">
       </command>
    </extension>
    <extension
          properties="isCdmStoreConnected"
          type="org.eclipse.jface.viewers.IStructuredSelection">
    </propertyTester>
+   <propertyTester
+         class="eu.etaxonomy.taxeditor.preference.PreferencePropertyTester"
+         id="eu.etaxonomy.taxeditor.preferences.propertyTester"
+         namespace="eu.etaxonomy.taxeditor.preferences.propertyTester"
+         properties="isShowExperimentalFeatures"
+         type="org.eclipse.jface.viewers.IStructuredSelection">
+   </propertyTester>
    </extension>
    <extension
          point="org.eclipse.core.expressions.definitions">
             </test>
          </with>
       </definition>
+      <definition
+            id="isShowExperimentalFeatures">
+         <with
+               variable="selection">
+            <test
+                  property="eu.etaxonomy.taxeditor.preferences.propertyTester.isShowExperimentalFeatures">
+            </test>
+         </with>
+      </definition>
    </extension>
 </plugin>