Ticket #1352 fixed.
[taxeditor.git] / taxeditor-navigation / plugin.xml
index 0c643de536f1d6efbda0243c5dce13f1d6757efb..99a5b1a2c75f19315bd60b7ed64e8400cb9bbf97 100644 (file)
    </extension>
    <extension
          point="org.eclipse.ui.views">
-      <!--view
-            class="eu.etaxonomy.taxeditor.navigation.taxonomictree.TaxonomicTreeView"
-            id="eu.etaxonomy.taxeditor.navigation.taxonomictree.treeView"
-            name="Taxonomic Tree">
-      </view-->
       <view
             allowMultiple="true"
             class="eu.etaxonomy.taxeditor.navigation.search.SearchResultView"
    <extension
          point="org.eclipse.ui.menus">
       <menuContribution
-            locationURI="popup:eu.etaxonomy.taxeditor.navigation.search.searchResultView">
-         <command
-               commandId="eu.etaxonomy.taxeditor.navigation.command.editTaxon"
-               label="Edit"
-               style="push">
-         </command>
-      </menuContribution>
-      <menuContribution
-            locationURI="toolbar:org.eclipse.ui.main.toolbar">
-         <toolbar
-               id="eu.etaxonomy.taxeditor.navigation.search.toolbar">
-            <control
-                  class="eu.etaxonomy.taxeditor.navigation.search.SearchBar">
-            </control>
-         </toolbar>
-      </menuContribution>
-      <menuContribution
-            locationURI="menu:org.eclipse.ui.main.menu.file?before=eu.etaxonomy.taxeditor.application.filemenu.separator">
+            locationURI="menu:org.eclipse.ui.main.menu.file">
          <separator
-               name="eu.etaxonomy.taxeditor.navigation.separator"
+               name="eu.etaxonomy.taxeditor.navigation.recentnames.separator"
                visible="true">
          </separator>
          <dynamic
                commandId="eu.etaxonomy.taxeditor.navigation.command.showTaxonomicTreeView"
                label="Taxonomic Tree"
                style="push">
-         </command>         
+         </command>
       </menuContribution>
       <menuContribution
-            locationURI="popup:eu.etaxonomy.taxeditor.navigation.navigatorpopup">
+            locationURI="popup:eu.etaxonomy.taxeditor.navigation.search.searchResultView">
          <command
-               commandId="org.eclipse.ui.newWizard"
-               label="New"
+               commandId="eu.etaxonomy.taxeditor.navigation.command.editTaxon"
+               label="Edit"
                style="push">
          </command>
+      </menuContribution>
+      <menuContribution
+            locationURI="popup:eu.etaxonomy.taxeditor.navigation.navigatorpopup">
+         <menu
+               id="eu.etaxonomy.navigation.menu.new"
+               label="New">
+            <command
+                  commandId="eu.etaxonomy.taxeditor.navigation.newTaxonNode"
+                  label="Taxon Node"
+                  style="push">
+            </command>
+            <separator
+                  name="eu.etaxonomy.navigation.menu.new.separator1"
+                  visible="true">
+            </separator>
+            <command
+                  commandId="eu.etaxonomy.taxeditor.navigation.newTaxonomicTree"
+                  id="eu.etaxonomy.taxeditor.navigation.menu.nu.new.taxonomicTree"
+                  label="Taxonomic Tree"
+                  style="push">
+            </command>
+         </menu>
          <separator
                name="taxeditor-navigation.separator1"
                visible="true">
          <command
                commandId="eu.etaxonomy.taxeditor.navigation.command.editTaxon"
                label="Edit"
-               style="push">
+               style="push">       
+            <separator
+                  name="taxeditor-navigation.separator4">
+            </separator>    
             <visibleWhen>
                <reference
                      definitionId="isTaxonNode">
@@ -95,7 +98,7 @@
          </command>
          <command
                commandId="eu.etaxonomy.taxeditor.navigation.command.moveTaxon"
-               label="Move Taxon"
+               label="Move Taxon (with Subtree)"
                style="push">
             <visibleWhen>
                <reference
                name="taxeditor-navigation.separator2"
                visible="true">
          </separator>
-         <command
+         <!--command
                commandId="eu.etaxonomy.taxeditor.navigation.command.createChildTaxon"
                label="New Child"
                style="push">
                commandId="eu.etaxonomy.taxeditor.navigation.command.quickCreateChildTaxon"
                label="Quick Add Child "
                style="push">
-         </command>
+         </command-->
          <separator
                name="taxeditor-navigation.separator3"
                visible="true">
                style="push">
          </command>
       </menuContribution>
+      <menuContribution
+            locationURI="toolbar:org.eclipse.ui.main.toolbar">
+         <toolbar
+               id="eu.etaxonomy.taxeditor.navigation.search.toolbar">
+            <control
+                  class="eu.etaxonomy.taxeditor.navigation.search.SearchBar">
+            </control>
+         </toolbar>
+      </menuContribution>
+      <menuContribution
+            locationURI="menu:eu.etaxonomy.navigation.menu.new">
+         <command
+               commandId="eu.etaxonomy.taxeditor.navigation.newTaxonNode"
+               label="Taxon Node"
+               style="push">
+         </command>
+         <separator
+               name="eu.etaxonomy.navigation.menu.new.separator1"
+               visible="true">
+         </separator>
+         <command
+               commandId="eu.etaxonomy.taxeditor.navigation.newTaxonomicTree"
+               id="eu.etaxonomy.taxeditor.navigation.menu.nu.new.taxonomicTree"
+               label="Taxonomic Tree"
+               style="push">
+         </command>
+      </menuContribution>
    </extension>
    <extension
          point="org.eclipse.ui.commands">
             name="Create Child Taxon">
       </command>
       <command
-            defaultHandler="eu.etaxonomy.taxeditor.navigation.handler.DeleteTaxonNodeHandler"
             id="org.eclipse.ui.edit.delete"
             name="Delete Taxon ">
       </command>
             name="Refresh">
       </command>
    </extension>
+   <extension
+         point="org.eclipse.ui.handlers">
+      <handler
+            class="eu.etaxonomy.taxeditor.navigation.handler.DeleteTaxonNodeHandler"
+            commandId="org.eclipse.ui.edit.delete">
+         <enabledWhen>
+            <with
+                  variable="activePartId">
+               <equals
+                     value="eu.etaxonomy.taxeditor.navigation.navigator">
+               </equals>
+            </with>
+         </enabledWhen>
+      </handler>
+   </extension>
    <extension
          point="org.eclipse.ui.commands">
       <command
             name="Show Taxonomic Tree View">
       </command>
    </extension>
+   <extension
+         point="org.eclipse.ui.commands">
+      <command
+            defaultHandler="eu.etaxonomy.taxeditor.navigation.handler.NewTaxonNodeHandler"
+            id="eu.etaxonomy.taxeditor.navigation.newTaxonNode"
+            name="New Taxon Node">
+      </command>
+      <command
+            defaultHandler="eu.etaxonomy.taxeditor.navigation.handler.NewTaxonomicTreeHandler"
+            id="eu.etaxonomy.taxeditor.navigation.newTaxonomicTree"
+            name="New Taxonomic Tree">
+      </command>
+   </extension>
 
       <extension
          point="org.eclipse.ui.themes">
       </primaryWizard-->
       <wizard
             category="eu.etaxonomy.taxeditor.new.category.cdm"
-            class="eu.etaxonomy.taxeditor.navigation.handler.NewTaxonomicTreeWizard"
+            class="eu.etaxonomy.taxeditor.newWizards.NewTaxonomicTreeWizard"
+            hasPages="true"
             icon="icons/tree_icon_small.jpg"
-            id="taxeditor-navigation.wizard1"
+            id="eu.etaxonomy.taxeditor.new.taxonomicTree"
             name="Taxonomic Tree">
       </wizard>
+      <wizard
+            category="eu.etaxonomy.taxeditor.new.category.cdm"
+            class="eu.etaxonomy.taxeditor.newWizards.NewTaxonNodeWizard"
+            hasPages="true"
+            id="eu.etaxonomy.taxeditor.new.taxonNode"
+            name="Taxon Node">
+      </wizard>
    </extension>
    <extension
          point="org.eclipse.core.expressions.definitions">
             </iterate>
          </with>
       </definition>
-   </extension>    
-      
+   </extension>
+      <extension
+         point="org.eclipse.ui.handlers">
+      <handler
+            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut"
+            commandId="org.eclipse.ui.edit.cut">
+         <activeWhen>
+            <with
+                  variable="activeFocusControlId">
+               <equals
+                     value="navigation.textControlId">
+               </equals>
+            </with>
+         </activeWhen>
+      </handler>
+      <handler
+            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"
+            commandId="org.eclipse.ui.edit.copy">
+         <activeWhen>
+            <with
+                  variable="activeFocusControlId">
+               <equals
+                     value="navigation.textControlId">
+               </equals>
+            </with>
+         </activeWhen>
+      </handler>
+      <handler
+            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:paste"
+            commandId="org.eclipse.ui.edit.paste">
+         <activeWhen>
+            <with
+                  variable="activeFocusControlId">
+               <equals
+                     value="navigation.textControlId">
+               </equals>
+            </with>
+         </activeWhen>
+      </handler>
+   </extension>
 </plugin>