Fix potential overlap of handlers for opening derivative editor
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / plugin.xml
index 6b19c3ee2b2d22fc41771d411066123cf3484d5c..22b08f1933de631fb02b789fb6967a0fea5ddb21 100644 (file)
@@ -81,7 +81,7 @@
                default="false"
                icon="icons/derivate_view-16x16-32.png"
                id="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView"
-               name="Derivative Editor">
+               name="%editor.name.DERIVATIVE_EDITOR">
          </editor>
    </extension>
       <extension
       </menuContribution>
       <menuContribution
             locationURI="menu:eu.etaxonomy.taxeditor.menu.showView?before=eu.etaxonomy.taxeditor.store.showViewMenu.details">
+         <separator
+               name="eu.etaxonomy.taxeditor.editor.showViewMenu"
+               visible="true">
+         </separator>
          <command
                commandId="org.eclipse.ui.views.showView"
                label="%command.label.4"
                </reference>
             </visibleWhen>
          </command>
-         <separator
-               name="eu.etaxonomy.taxeditor.editor.showViewMenu"
-               visible="true">
-         </separator>
          <command
                commandId="org.eclipse.ui.views.showView"
                label="%command.label.5"
                visible="true">
          </separator>
          <command
-               commandId="eu.etaxonomy.taxeditor.editor.openSpecimenEditor"
-               label="Derivative Editor"
+               commandId="eu.etaxonomy.taxeditor.editor.openSpecimenEditorFromMenu"
+               label="%command.label.DERIVATIVE_EDITOR"
                style="push">
             <visibleWhen
                   checkEnabled="true">
          </separator>
       </menuContribution>
       <menuContribution
-            locationURI="menu:eu.etaxonomy.taxeditor.menu.showView?after=org.eclipse.ui.views.showView.supplemental">
+            locationURI="menu:eu.etaxonomy.taxeditor.menu.showView?before=eu.etaxonomy.taxeditor.store.showViewMenu.internal">
          <separator
                name="eu.etaxonomy.taxeditor.store.showViewMenu.validation.separator"
                visible="true">
                label="%command.label.27"
                style="push">
          </command>
+         <menu
+               label="%menu.label.1">
+            <dynamic
+                  class="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.DynamicFeatureMenu"
+                  id="eu.etaxonomy.taxeditor.dynamicFeatureMenu">
+            </dynamic>
+            <visibleWhen
+                  checkEnabled="true">
+               <or>
+                  <reference
+                        definitionId="isDescription">
+                  </reference>
+                  <reference
+                        definitionId="isDescriptionElement">
+                  </reference>
+                  <reference
+                        definitionId="isFeatureNodeContainer">
+                  </reference>
+               </or>
+            </visibleWhen>
+         </menu>
+         <separator
+               name="eu.etaxonomy.taxeditor.taxonDescriptionEditor.separator3"
+               visible="true">
+         </separator>
          <command
                commandId="eu.etaxonomy.taxeditor.editor.view.descriptive.command.moveDescriptionToTaxon"
                label="%command.label.28"
                commandId="eu.etaxonomy.taxeditor.editor.view.descriptive.command.delete"
                label="%command.label.30"
                style="push">
+                     <visibleWhen
+                           checkEnabled="true">
+                        <count
+                              value="+">
+                        </count>
+                     </visibleWhen>
          </command>
          <separator
                name="eu.etaxonomy.taxeditor.taxonDescriptionEditor.separator.afterDelete"
          <separator
                name="eu.etaxonomy.taxeditor.editor.separator1">
          </separator>
-         <separator
-               name="eu.etaxonomy.taxeditor.taxonDescriptionEditor.separator3"
-               visible="true">
-         </separator>
-         <menu
-               label="%menu.label.1">
-            <dynamic
-                  class="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.DynamicFeatureMenu"
-                  id="eu.etaxonomy.taxeditor.dynamicFeatureMenu">
-            </dynamic>
-            <visibleWhen
-                  checkEnabled="true">
-               <or>
-                  <reference
-                        definitionId="isDescription">
-                  </reference>
-                  <reference
-                        definitionId="isDescriptionElement">
-                  </reference>
-                  <reference
-                        definitionId="isFeatureNodeContainer">
-                  </reference>
-               </or>
-            </visibleWhen>
-         </menu>
       </menuContribution>
       <menuContribution
             locationURI="popup:eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView">
          </dynamic>
          <command
                commandId="eu.etaxonomy.taxeditor.editor.derivative.toggleLinkWithTaxonSelection"
-               label="Link with taxon selection"
+               label="%command.label.LINK_WITH_TAXON_SELECTION"
                style="push">
             <visibleWhen
                   checkEnabled="true">
          </command>
          <command
                commandId="eu.etaxonomy.taxeditor.editor.derivative.toggleLinkWithTaxonSelection"
-               label="Unlink from taxon selection"
+               label="%command.label.UNLINK_FROM_TAXON_SELECTION"
                style="push">
             <visibleWhen
                   checkEnabled="true">
          <command
                commandId="eu.etaxonomy.taxeditor.editor.derivative.reuseSingleRead"
                id="eu.etaxonomy.taxeditor.editor.derivative.reuseSingleReadMenuItem"
-               label="Reuse single read here"
+               label="%command.label.REUSE_SINGLE_READ_HERE"
                style="push">
             <visibleWhen
                   checkEnabled="true">
          </command>
          <command
                commandId="eu.etaxonomy.taxeditor.editor.derivative.copySingleReadToClipBoard"
-               label="Reuse for other sequence"
+               label="%command.label.REUSE_SINGLE_READ_FOR_OTHER_SEQUENCE"
                style="push">
             <visibleWhen
                   checkEnabled="true">
          </command>
          <command
                commandId="eu.etaxonomy.taxeditor.editor.derivative.removeSingleReadFromSequence"
-               label="Remove from this sequence"
+               label="%command.label.REMOVE_SINGLE_READ_FROM_THIS_SEQUENCE"
                style="push">
             <visibleWhen
                   checkEnabled="true">
             <command
                   commandId="eu.etaxonomy.taxeditor.editor.derivative.listenToSelectionChange"
                   icon="icons/synced.gif"
-                  label="Link with Taxon Selection"
+                  label="%command.label.LINK_WITH_TAXON_SELECTIO"
                   style="toggle">
                <visibleWhen
                      checkEnabled="true">
       <command
             defaultHandler="eu.etaxonomy.taxeditor.editor.handler.defaultHandler.DefaultOpenTaxonEditorForTaxonNodeHandler"
             id="eu.etaxonomy.taxeditor.editor.openTaxonEditorForTaxonNode"
-            name="Open Taxon Editor for taxonnode">
+            name="%command.name.OPEN_NAME_EDITOR_FOR_TAXON_NODE">
          <commandParameter
                id="eu.etaxonomy.taxeditor.editor.openTaxonEditorForTaxonNode.uuid"
                name="taxon node uuid"
       <command
             defaultHandler="eu.etaxonomy.taxeditor.editor.handler.OpenDerivateViewHandler"
             id="eu.etaxonomy.taxeditor.editor.openSpecimenEditor"
-            name="Open Derivative Editor">
+            name="%command.name.OPEN_DERIVATIVE_EDITOR">
          <commandParameter
                id="eu.etaxonomy.taxeditor.editor.openSpecimenEditor.uuid"
                name="Specimen Uuids"
                typeId="eu.etaxonomy.taxeditor.uuidParameterType">
          </commandParameter>
       </command>
+      <command
+            defaultHandler="eu.etaxonomy.taxeditor.editor.handler.OpenDerivateViewHandler"
+            id="eu.etaxonomy.taxeditor.editor.openSpecimenEditorFromMenu"
+            name="%command.name.OPEN_DERIVATIVE_EDITOR">
+      </command>
       <command
             defaultHandler="eu.etaxonomy.taxeditor.editor.view.derivate.handler.ListenToSelectionChangeHandler"
             id="eu.etaxonomy.taxeditor.editor.derivative.listenToSelectionChange"
-            name="Link with taxon selection">
+            name="%command.name.LINK_WITH_TAXON_SELECTION">
       </command>
       <command
             defaultHandler="eu.etaxonomy.taxeditor.editor.view.derivate.handler.SingleReadHandler"
             id="eu.etaxonomy.taxeditor.editor.derivative.copySingleReadToClipBoard"
-            name="Copy SingleRead to clipboard">
+            name="%command.name.COPY_SINGLE_READ_TO_CLIPBOARD">
       </command>
       <command
             defaultHandler="eu.etaxonomy.taxeditor.editor.view.derivate.handler.SingleReadHandler"
             id="eu.etaxonomy.taxeditor.editor.derivative.reuseSingleRead"
-            name="Reuse SingleRead">
+            name="%command.name.REUSE_SINGLE_READ">
       </command>
       <command
             defaultHandler="eu.etaxonomy.taxeditor.editor.view.derivate.handler.SingleReadHandler"
             id="eu.etaxonomy.taxeditor.editor.derivative.removeSingleReadFromSequence"
-            name="Remove SingleRead from sequence">
+            name="%command.name.REMOVE_SINGLE_READ">
       </command>
       <command
             defaultHandler="eu.etaxonomy.taxeditor.editor.view.derivate.handler.ToggleLinkWithTaxonSelectionHandler"
             id="eu.etaxonomy.taxeditor.editor.derivative.toggleLinkWithTaxonSelection"
-            name="Toggle link with taxon selection">
+            name="%command.name.TOGGLE_LINK_WITH_TAXON_SELECTION">
       </command>
         
    </extension>