There now exists a dummy delete entry in the bulk editors context menu. It is also...
[taxeditor.git] / taxeditor-editor / plugin.xml
index 4f506c9cda8be9e37b53f1a81b4e917b0c6e36d9..bfbd8d93ef5dfc2be8f8bfc4382293a42e2647f0 100644 (file)
             class="eu.etaxonomy.taxeditor.editor.name.handler.DeleteTaxonBaseHandler"
             commandId="org.eclipse.ui.edit.delete">
          <activeWhen>
-            <with
-                  variable="activePartId">
-               <equals
-                     value="eu.etaxonomy.taxeditor.editor.taxon.name">
-               </equals>
-            </with>
+            <and>
+               <reference
+                     definitionId="isTaxonBase">
+               </reference>
+               <not>
+                  <reference
+                        definitionId="isAcceptedTaxon">
+                  </reference>
+               </not>
+            </and>
          </activeWhen>
       </handler>
       <handler
             class="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.DeleteHandler"
             commandId="org.eclipse.ui.edit.delete">
-               <with
-                  variable="activePartId">
-               <equals
-                     value="eu.etaxonomy.taxeditor.editor.view.descriptive">
-               </equals>
-            </with>
+          <activeWhen>
+             <with
+                   variable="activePartId">
+                <equals
+                      value="eu.etaxonomy.taxeditor.editor.view.descriptive">
+                </equals>
+             </with>
+          </activeWhen>
       </handler>
       <handler
             class="eu.etaxonomy.taxeditor.editor.key.polytomous.handler.DeleteNodeHandler"