- added type information to DTO
[taxeditor.git] / eu.etaxonomy.taxeditor.navigation / plugin.xml
index aae8baea7bdaf2c1ed1d6b4fe85c674f333474f8..b4361204aff0dd7cd72ff2562221237d9c480e87 100644 (file)
@@ -84,7 +84,7 @@
                id="eu.etaxonomy.navigation.menu.new"
                label="New">
             <command
-                  commandId="eu.etaxonomy.taxeditor.navigation.newTaxonNode"
+                  commandId="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
                   label="Taxon"
                   style="push">
             </command>
@@ -93,8 +93,8 @@
                   visible="true">
             </separator>
             <command
-                  commandId="eu.etaxonomy.taxeditor.navigation.newClassification"
-                  id="eu.etaxonomy.taxeditor.navigation.newClassificationHandler"
+                  commandId="eu.etaxonomy.taxeditor.navigation.create.classification"
+                  id="eu.etaxonomy.taxeditor.navigation.create.classificationHandler"
                   label="Classification"
                   style="push">
             </command>
                visible="true">
          </separator>
          <command
-               commandId="eu.etaxonomy.taxeditor.navigation.command.editSelection"
+               commandId="eu.etaxonomy.taxeditor.navigation.command.update.editSelection"
                label="Edit"
                style="push">       
             <visibleWhen
             </visibleWhen>
          </command>
          <command
-               commandId="eu.etaxonomy.taxeditor.navigation.command.moveTaxon"
-               label="Move Taxon (with child taxa)"
+               commandId="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym"
+               label="Change Accepted Taxon to Synonym"
                style="push">
-            <visibleWhen
+               <visibleWhen
                   checkEnabled="true">
                <reference
                      definitionId="isTaxonNode">
                </reference>
             </visibleWhen>
          </command>
+         <command
+               commandId="eu.etaxonomy.taxeditor.navigation.command.update.moveTaxon"
+               label="Move Taxon (with child taxa)"
+               style="push">
+            <visibleWhen
+                  checkEnabled="true">
+                  <reference
+                        definitionId="isTaxonNode">
+                  </reference>
+            </visibleWhen>
+         </command>
          <separator
                name="taxeditor-navigation.separator2"
                visible="true">
       <menuContribution
             locationURI="menu:eu.etaxonomy.navigation.menu.new">
          <command
-               commandId="eu.etaxonomy.taxeditor.navigation.newTaxonNode"
-               label="Taxon"
+               commandId="eu.etaxonomy.taxeditor.navigation.create.classification"
+               id="eu.etaxonomy.taxeditor.navigation.create.classificationHandler"
+               label="Classification"
                style="push">
          </command>
          <separator
-               name="eu.etaxonomy.navigation.menu.new.separator1"
+               name="eu.etaxonomy.navigation.menu.new.separator0"
                visible="true">
          </separator>
          <command
-               commandId="eu.etaxonomy.taxeditor.navigation.newClassification"
-               id="eu.etaxonomy.taxeditor.navigation.newClassificationHandler"
-               label="Classification"
+               commandId="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
+               label="Taxon"
                style="push">
          </command>
+         <separator
+               name="eu.etaxonomy.navigation.menu.new.separator1"
+               visible="true">
+         </separator>
       </menuContribution>
       <menuContribution
             locationURI="popup:eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
                label="Delete"
                style="push">
          </command>
+         
       </menuContribution>
    </extension>
    <extension
          point="org.eclipse.ui.commands">
       <command
             defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewTaxonNodeHandler"
-            id="eu.etaxonomy.taxeditor.navigation.newTaxonNode"
+            id="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
             name="New Taxon Node">
       </command>
       <command
             defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewClassificationHandler"
-            id="eu.etaxonomy.taxeditor.navigation.newClassification"
+            id="eu.etaxonomy.taxeditor.navigation.create.classification"
             name="New Classification">
       </command>
    </extension>
          point="org.eclipse.ui.commands">
       <command
             defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.EditHandler"
-            id="eu.etaxonomy.taxeditor.navigation.command.editSelection"
+            id="eu.etaxonomy.taxeditor.navigation.command.update.editSelection"
             name="Edit">
       </command>
       <command
             defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.MoveTaxonHandler"
-            id="eu.etaxonomy.taxeditor.navigation.command.moveTaxon"
+            id="eu.etaxonomy.taxeditor.navigation.command.update.moveTaxon"
             name="Move Taxon">
       </command>
       <command
             id="eu.etaxonomy.taxeditor.navigation.command.copyTaxonName"
             name="Copy">
       </command>
+      <command
+            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.ChangeAcceptedTaxonToSynonymHandler"
+            id="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym"
+            name="Change Accepted Taxon to Synonym">
+      </command>
    </extension>
    <extension
          point="org.eclipse.ui.commands">
             </property>
          </options>
       </viewer-->
+      <dragAssistant
+               class="eu.etaxonomy.taxeditor.navigation.navigator.dnd.TaxonNavigatorDragAdapterAssistant"
+               viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
+      </dragAssistant>
    </extension>
    <extension
          point="org.eclipse.ui.navigator.linkHelper">