adapt TransientNameService
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / plugin.xml
index ddc7082a68860e418dc34b80ce5e4d663ecbc6a1..267c86eb531a31efd416028ec0bd39d661a9f7d3 100644 (file)
             id="eu.etaxonomy.taxeditor.editor.group.authority"
             name="Cdm Authority Editor">
       </editor>
+      <editor
+            class="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView"
+            default="false"
+            icon="icons/derivate_view-16x16-32.png"
+            id="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView"
+            name="Derivate View">
+      </editor>
+      <editor
+            class="eu.etaxonomy.taxeditor.editor.view.dataimport.SpecimenImportEditor"
+            default="false"
+            id="eu.etaxonomy.taxeditor.editor.view.dataimport.SpecimenImportEditor"
+            name="Specimen Import Editor">
+      </editor>
+      <editor
+            class="eu.etaxonomy.taxeditor.editor.view.dataimport.GbifImportEditor"
+            default="false"
+            id="eu.etaxonomy.taxeditor.editor.view.dataimport.GbifImportEditor"
+            name="Gbif Import Editor">
+      </editor>
    </extension>
       <extension
             point="org.eclipse.ui.views">
@@ -67,7 +86,7 @@
                class="eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptiveViewPart"
                icon="icons/address-book-new.png"
                id="eu.etaxonomy.taxeditor.editor.view.descriptive"
-               name="Descriptive"
+               name="Factual Data"
                restorable="true">
          </view>
           <view
                name="Concept Graph"
                restorable="true">
          </view>
-         <view
-               allowMultiple="false"
-               category="eu.etaxonomy.taxeditor.editor.category"
-               class="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView"
-               icon="icons/leaf_detail.png"
-               id="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView"
-               name="Derivate View"
-               restorable="true">
-         </view>
          <category
                id="eu.etaxonomy.taxeditor.editor.category"
                name="Taxonomic Editor">
       <menuContribution
             locationURI="menu:eu.etaxonomy.navigation.menu.new?after=eu.etaxonomy.navigation.menu.new.separator1">
          <command
-               commandId="eu.etaxonomy.taxeditor.editor.command.new.reference"
-               label="Reference"
+               commandId="eu.etaxonomy.taxeditor.editor.command.new.name"
+               label="Name"
                style="push">
          </command>
          <command
-               commandId="eu.etaxonomy.taxeditor.editor.command.new.name"
-               label="Name"
+               commandId="eu.etaxonomy.taxeditor.editor.command.new.reference"
+               label="Reference"
                style="push">
          </command>
          <command
                label="Person"
                style="push">
          </command>
+         <separator
+               name="eu.etaxonomy.navigation.menu.new.separator2"
+               visible="true">
+         </separator>
          <command
                commandId="eu.etaxonomy.taxeditor.editor.command.new.specimen"
                label="Specimen"
                style="push">
          </command>
+         <separator
+               name="eu.etaxonomy.navigation.menu.new.separator3"
+               visible="true">
+         </separator>
+         <command
+               commandId="eu.etaxonomy.taxeditor.editor.command.new.datasource"
+               label="Datasource"
+               style="push">
+         </command>
       </menuContribution>
       <menuContribution
             locationURI="menu:eu.etaxonomy.taxeditor.menu.showView?before=eu.etaxonomy.taxeditor.store.showViewMenu.details">
          </separator>
          <command
                commandId="org.eclipse.ui.views.showView"
-               label="Descriptive"
+               label="Factual Data"
                style="push">
             <parameter
                   name="org.eclipse.ui.views.showView.viewId"
                   name="separator1"
                   visible="true">
             </separator>
-            <command
+           <command
                   commandId="eu.etaxonomy.taxeditor.editor.name.createMisapplication"
                   label="Misapplication"
                   style="push">
                </visibleWhen>
             </command>
          </menu>
-         <command
+        <!--<command
                commandId="eu.etaxonomy.taxeditor.editor.name.changeAcceptedToSynonym"
                label="Change Accepted Taxon to Synonym"
                style="push">
-            <!--visibleWhen
+            <visibleWhen
                   checkEnabled="true">
                <reference
                      definitionId="isAcceptedAndHasNoHomotypicSynonyms">
                </reference>
-            </visibleWhen-->
+            </visibleWhen
                 <visibleWhen>                  
                      <or>
                         <reference
                         </reference>
                      </or>                  
                </visibleWhen>
-         </command>
+         </command>-->
          <menu
                label="Change To">
             <command
       <menuContribution
             locationURI="popup:eu.etaxonomy.taxeditor.editor.key.polytomous.list">
          <command
-               commandId="eu.etaxonomy.taxeditor.key.polytomous.command.new.sibling"
-               label="New Sibling"
+               commandId="eu.etaxonomy.taxeditor.key.polytomous.command.new.child"
+               label="New Key Number"
                style="push">
          </command>
          <command
-               commandId="eu.etaxonomy.taxeditor.key.polytomous.command.new.child"
-               label="New Child"
+               commandId="eu.etaxonomy.taxeditor.key.polytomous.command.new.sibling"
+               label="New Alternative"
                style="push">
          </command>
          <command
             locationURI="popup:eu.etaxonomy.taxeditor.editor.view.descriptive">
          <command
                commandId="eu.etaxonomy.taxeditor.description.commands.adddescription"
-               label="New Descriptive Data"
+               label="New Factual Data"
                style="push">
          </command>
          <separator
       </menuContribution>
       <menuContribution
             locationURI="popup:eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView">
-         <menu
-               label="New Derivate">
-            <dynamic
-                  class="eu.etaxonomy.taxeditor.editor.view.derivate.CreateDerivateContextMenu"
-                  id="eu.etaxonomy.taxeditor.editor.view.derivate.CreateDerivateContextMenu">
-            </dynamic>
-            <visibleWhen
-                  checkEnabled="true">
-               <reference
-                     definitionId="isSpecimenOrObservation">
-               </reference>
-            </visibleWhen>
-         </menu>
+         <dynamic
+               class="eu.etaxonomy.taxeditor.editor.view.derivate.contextMenu.DerivateViewContextMenu"
+               id="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateContextMenu">
+         </dynamic>
+      </menuContribution>
+      <menuContribution
+            locationURI="popup:eu.etaxonomy.taxeditor.editor.view.dataimport.SpecimenImportEditor">
+         <dynamic
+               class="eu.etaxonomy.taxeditor.editor.view.dataimport.DataImportEditorContextMenu"
+               id="eu.etaxonomy.taxeditor.editor.view.dataimport.DataImportEditorContextMenu">
+         </dynamic>
+      </menuContribution>
+      <menuContribution
+            locationURI="popup:eu.etaxonomy.taxeditor.editor.view.dataimport.GbifImportEditor">
+         <dynamic
+               class="eu.etaxonomy.taxeditor.editor.view.dataimport.DataImportEditorContextMenu"
+               id="eu.etaxonomy.taxeditor.editor.view.dataimport.DataImportEditorContextMenu">
+         </dynamic>
       </menuContribution>
       
       
             id="eu.etaxonomy.taxeditor.editor.name.createSynonymInHomotypicalGroup"
             name="Create Synonym In Homotypical Group">
       </command>
-      <command
+     <command
             categoryId="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
             defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.CreateMisapplicationHandler"
             id="eu.etaxonomy.taxeditor.editor.name.createMisapplication"
             id="eu.etaxonomy.taxeditor.editor.name.removeBasionym"
             name="Remove Basionym / Original Combination">
       </command>
-      <command
+     <!-- <command
             categoryId="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
             defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeAcceptedTaxonToSynonymHandler"
             id="eu.etaxonomy.taxeditor.editor.name.changeAcceptedToSynonym"
             name="Change Accepted Taxon to Synonym">
-      </command>
+      </command>-->
       <command
             categoryId="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
             defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.DeleteAllEmptyNamesHandler"
       </command>
       <category
             id="eu.etaxonomy.taxeditor.editor.view.descriptive.command.category"
-            name="-- Descriptive">
+            name="-- Factual">
       </category>
       <command
             categoryId="eu.etaxonomy.taxeditor.editor.view.descriptive.command.category"
             id="eu.etaxonomy.taxeditor.group.cdmauthorities.edit"
             name="Edit CDM Authorities">
       </command>
+      <command
+            defaultHandler="eu.etaxonomy.taxeditor.editor.handler.OpenDerivateViewHandler"
+            id="eu.etaxonomy.taxeditor.editor.handler.openDerivateView"
+            name="Open Derivate View">
+      </command>
+      <command
+            categoryId="eu.etaxonomy.taxeditor.editor.new.category"
+            defaultHandler="eu.etaxonomy.taxeditor.view.datasource.handler.CreateDataSourceHandler"
+            id="eu.etaxonomy.taxeditor.editor.command.new.datasource"
+            name="New Datasource">
+      </command>
+
    </extension>
    <extension
          point="org.eclipse.core.expressions.definitions">
             </test>
          </with>
       </definition>
-      <definition
-            id="isSpecimenOrObservation">
-         <with
-               variable="selection">
-            <test
-                  property="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateMenuPropertyTester.isSpecimenOrObservation">
-            </test>
-         </with>
-      </definition>
    </extension>
    <extension
          point="org.eclipse.core.expressions.propertyTesters">
             properties="isGroup"
             type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
       </propertyTester>
-      <propertyTester
-            class="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateMenuPropertyTester"
-            id="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateMenuPropertyTester"
-            namespace="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateMenuPropertyTester"
-            properties="isSpecimenOrObservation"
-            type="org.eclipse.jface.viewers.TreeSelection">
-      </propertyTester>
    </extension>
    <extension
          point="org.eclipse.ui.bindings">   
             name="Taxonomic Editor Default Key Bindings">
       </scheme>
    </extension>
+    <extension
+         point="org.eclipse.ui.importWizards">
+      <wizard
+            category="eu.etaxonomy.taxeditor.import.category.cdm"
+            class="eu.etaxonomy.taxeditor.editor.view.dataimport.SpecimenSearchWizard"
+            id="eu.etaxonomy.taxeditor.editor.view.dataimport.SpecimenSearchWizard"
+            name="Specimen Search/Import">
+         <description>
+            Queries data provider for specimens with specified parameters.
+Note: Query results are currently limited to 100.
+         </description>
+      </wizard>
+   </extension>
 </plugin>