Fixed #1073 - org.eclipse.core.expressions.definitions extension "isSynonym" not...
authorp.ciardelli <p.ciardelli@localhost>
Fri, 18 Sep 2009 09:04:17 +0000 (09:04 +0000)
committerp.ciardelli <p.ciardelli@localhost>
Fri, 18 Sep 2009 09:04:17 +0000 (09:04 +0000)
taxeditor-editor/plugin.xml

index a2e530cbdd0871e5b73e41e0079ffd094b7af70b..8e6b1904af3066134dc233c2c34ed6774968ebb1 100644 (file)
             <dynamic
                   class="eu.etaxonomy.taxeditor.editor.name.handler.GroupBasionymContributionItem"
                   id="taxeditor-editor.dynamic.setBasionym">
-            </dynamic>
-            <!--command
-                  commandId="eu.etaxonomy.taxeditor.editor.name.setBasionym"
-                  id="Set Basionym"
-                  style="push">
-               <visibleWhen>
-                  <and>
-                     <reference
-                           definitionId="isSynonym">
-                     </reference>
-                     <not>
-                        <reference
-                              definitionId="isZoological">
-                        </reference>
-                     </not>
-                  </and>
-               </visibleWhen>
-            </command>
-            <command
-                  commandId="eu.etaxonomy.taxeditor.editor.name.removeBasionym"
-                  id="Remove Basionym"
-                  style="push">
-               <visibleWhen>
-                  <and>
-                     <reference
-                           definitionId="isSynonym">
-                     </reference>
-                     <not>
-                        <reference
-                              definitionId="isZoological">
-                        </reference>
-                     </not>
-                  </and>
-               </visibleWhen>
-            </command>
-            <command
-                  commandId="eu.etaxonomy.taxeditor.editor.name.setOriginalCombination"
-                  id="Set Original Combination"
-                  style="push">
                <visibleWhen>
-                  <and>
-                     <reference
-                           definitionId="isSynonym">
-                     </reference>
-                     <reference
-                           definitionId="isZoological">
-                     </reference>
-                  </and>
-               </visibleWhen>
-            </command>
-            <command
-                  commandId="eu.etaxonomy.taxeditor.editor.name.removeOriginalCombination"
-                  id="Remove Original Combination"
-                  style="push">
-               <visibleWhen>
-                  <and>
-                     <reference
-                           definitionId="isSynonym">
-                     </reference>
-                     <reference
-                           definitionId="isZoological">
-                     </reference>
-                  </and>
+                  <reference
+                        definitionId="isSynonym">
+                  </reference>
                </visibleWhen>
-            </command-->
+            </dynamic>
             <command
                   commandId="eu.etaxonomy.taxeditor.editor.name.swapSynonymAndAccepted"
                   label="Swap Synonym With Accepted"
             class="eu.etaxonomy.taxeditor.editor.handler.SaveAllHandler"
             commandId="org.eclipse.ui.file.saveAll">
       </handler-->
-      <!--handler
-            class="eu.etaxonomy.taxeditor.editor.name.handler.SetBasionymHandler"
-            commandId="eu.etaxonomy.taxeditor.editor.name.setBasionym_dep">
-         <enabledWhen>
-            <not>
-               <reference
-                     definitionId="isGroupBasionym">
-               </reference>
-            </not>
-         </enabledWhen>
-      </handler>
-      <handler
-            class="eu.etaxonomy.taxeditor.editor.name.handler.RemoveBasionymHandler"
-            commandId="eu.etaxonomy.taxeditor.editor.name.removeBasionym">
-         <enabledWhen>
-            <reference
-                  definitionId="isGroupBasionym">
-            </reference>
-         </enabledWhen>
-      </handler>
-      <handler
-            class="eu.etaxonomy.taxeditor.editor.name.handler.SetBasionymHandler"
-            commandId="eu.etaxonomy.taxeditor.editor.name.setOriginalCombination">
-         <enabledWhen>
-            <not>
-               <reference
-                     definitionId="isGroupBasionym">
-               </reference>
-            </not>
-         </enabledWhen>
-      </handler>
-      <handler
-            class="eu.etaxonomy.taxeditor.editor.name.handler.RemoveBasionymHandler"
-            commandId="eu.etaxonomy.taxeditor.editor.name.removeOriginalCombination">
-         <enabledWhen>
-            <reference
-                  definitionId="isGroupBasionym">
-            </reference>
-         </enabledWhen>
-      </handler-->
    </extension>
    <extension
          name="File Menu Commands"
             </iterate>
          </with>
       </definition>
-      <!--definition
-            id="isGroupBasionym">
-         <with
-               variable="activeMenuSelection">
-            <iterate>
-               <instanceof
-                     value="eu.etaxonomy.taxeditor.editor.name.BasionymSynonymPropertySource">
-               </instanceof>
-            </iterate>
-         </with>
-      </definition-->
       <definition
             id="isMisapplication">
          <with
             </iterate>
          </with>
       </definition>
-      <!--definition
-            id="isNotGroupBasionym">
-         <with
-               variable="activeMenuSelection">
-            <not>
-               <iterate>
-                  <instanceof
-                        value="eu.etaxonomy.taxeditor.editor.name.BasionymSynonymPropertySource">
-                  </instanceof>
-               </iterate>
-            </not>
-         </with>
-      </definition-->
       <definition
             id="isCdmObject">
          <with
             id="eu.etaxonomy.taxeditor.editor.name.removeBasionym"
             name="Remove Basionym / Original Combination">
       </command>
-      <!--command
-            id="eu.etaxonomy.taxeditor.editor.name.setOriginalCombination"
-            name="Set Original Combination">
-      </command>
-      <command
-            id="eu.etaxonomy.taxeditor.editor.name.removeOriginalCombination"
-            name="Remove Original Combination">
-      </command-->
       <command
             defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeAcceptedTaxonToSynonymHandler"
             id="eu.etaxonomy.taxeditor.editor.name.changeAcceptedToSynonym"