Fix potential overlap of handlers for opening derivative editor
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / plugin.xml
index 8ca8656bfd6c65dba2aa42d646aa49131c095d02..22b08f1933de631fb02b789fb6967a0fea5ddb21 100644 (file)
                visible="true">
          </separator>
          <command
-               commandId="eu.etaxonomy.taxeditor.editor.openSpecimenEditor"
+               commandId="eu.etaxonomy.taxeditor.editor.openSpecimenEditorFromMenu"
                label="%command.label.DERIVATIVE_EDITOR"
                style="push">
             <visibleWhen
                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"
                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"