merge-update from trunk
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / plugin.xml
index 5ac42f04eae6039484627739a02a3e0ba7f65551..90254eae65b947e6dc43b11b8ee6cf88f9afc98e 100644 (file)
                commandId="taxeditor-editor.useExistingImage"
                label="%command.label.50"
                style="push">
-            <visibleWhen
-                  checkEnabled="false">
+            <visibleWhen>
                <reference
                      definitionId="isImageGallery">
                </reference>
                    <equals
                          value="eu.etaxonomy.taxeditor.editor.view.media">
                    </equals>
-                   <equals
-                         value="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView">
-                   </equals>
                 </or>
              </with>
           </activeWhen>
       <handler
             class="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistEditorHandler"
             commandId="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistEditorHandler">
+      </handler>
+            <handler
+            class="eu.etaxonomy.taxeditor.editor.handler.LoadPherogramHandler"
+            commandId="eu.etaxonomy.taxeditor.editor.molecular.AlignmentEditor.loadPherogram">
+         <activeWhen>
+            <with
+                  variable="activePartId">
+               <equals
+                     value="eu.etaxonomy.taxeditor.editor.molecular.AlignmentEditor">
+               </equals>
+            </with>
+         </activeWhen>
+      </handler>
+      <handler
+            class="eu.etaxonomy.taxeditor.editor.handler.AddAHandler"
+            commandId="eu.etaxonomy.taxeditor.editor.molecular.AlignmentEditor.addA">
+         <activeWhen>
+            <with
+                  variable="activePartId">
+               <equals
+                     value="eu.etaxonomy.taxeditor.editor.molecular.AlignmentEditor">
+               </equals>
+            </with>
+         </activeWhen>
+      </handler>
+      <handler
+            class="eu.etaxonomy.taxeditor.editor.view.derivate.handler.DeleteDerivateHandler"
+            commandId="org.eclipse.ui.edit.delete">
+         <activeWhen>
+            <with
+                  variable="activePartId">
+               <equals
+                     value="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView">
+               </equals>
+            </with>
+         </activeWhen>
       </handler>
    </extension>
    <extension
             id="eu.etaxonomy.taxeditor.editor.handler.OpenAlignmentEditor"
             name="Open Alignment Editor">
       </command>
+      <command
+            id="eu.etaxonomy.taxeditor.editor.molecular.AlignmentEditor.addA"
+            name="Add A">
+      </command>
+      <command
+            id="eu.etaxonomy.taxeditor.editor.molecular.AlignmentEditor.loadPherogram"
+            name="Load Pherogram">
+      </command>
 
    </extension>
    <extension
             id="eu.etaxonomy.taxeditor.bindings.scheme.default"
             name="%scheme.name">
       </scheme>
+      <key
+            commandId="eu.etaxonomy.taxeditor.editor.molecular.AlignmentEditor.addA"
+            schemeId="eu.etaxonomy.taxeditor.bindings.scheme.default"
+            sequence="A">
+      </key>
+      <key
+            commandId="eu.etaxonomy.taxeditor.editor.molecular.AlignmentEditor.loadPherogram"
+            schemeId="eu.etaxonomy.taxeditor.bindings.scheme.default"
+            sequence="O">
+      </key>
    </extension>
     <extension
          point="org.eclipse.ui.importWizards">