merge-update from trunk
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / plugin.xml
index 38a6a28bd610f62294a13e53790d6ced5c30b453..90254eae65b947e6dc43b11b8ee6cf88f9afc98e 100644 (file)
             class="eu.etaxonomy.taxeditor.editor.view.dataimport.SpecimenImportEditor"
             default="false"
             id="eu.etaxonomy.taxeditor.editor.view.dataimport.SpecimenImportEditor"
-            name="Specimen Import Editor">
+            name="%editor.name.6">
       </editor>
       <editor
             class="eu.etaxonomy.taxeditor.editor.view.dataimport.GbifImportEditor"
             default="false"
             id="eu.etaxonomy.taxeditor.editor.view.dataimport.GbifImportEditor"
-            name="Gbif Import Editor">
+            name="%editor.name.7">
       </editor>
          <editor
             class="eu.etaxonomy.taxeditor.editor.view.checklist.ChecklistEditor"
             icon="icons/address-book-new.png"
             id="eu.etaxonomy.taxeditor.editor.view.checklist.ChecklistEditor"
-            name="Checklist Editor">
+            name="%editor.name.8">
+      </editor>
+      <editor
+            class="eu.etaxonomy.taxeditor.editor.molecular.AlignmentEditor"
+            default="false"
+            id="eu.etaxonomy.taxeditor.editor.molecular.AlignmentEditor"
+            name="Alignment Editor">
       </editor>
    </extension>
       <extension
                id="eu.etaxonomy.taxeditor.editor.category"
                name="%category.name">
          </category>
+         <view
+               allowMultiple="true"
+               class="eu.etaxonomy.taxeditor.editor.view.dataimport.SpecimenImportView"
+               id="eu.etaxonomy.taxeditor.editor.view.dataimport.SpecimenImportView"
+               name="%view.name.4">
+         </view>
+         <view
+               allowMultiple="true"
+               class="eu.etaxonomy.taxeditor.editor.view.dataimport.GbifResponseImportView"
+               id="eu.etaxonomy.taxeditor.editor.view.dataimport.GbifResponseImportView"
+               name="%view.name.5">
+         </view>
       </extension>
    <extension
          point="org.eclipse.ui.elementFactories">
             locationURI="menu:eu.etaxonomy.navigation.menu.new?after=eu.etaxonomy.navigation.menu.new.separator1">
          <command
                commandId="eu.etaxonomy.taxeditor.editor.command.new.name"
-               label="Name"
+               label="%command.label.46"
                style="push">
          </command>
          <command
                commandId="eu.etaxonomy.taxeditor.editor.command.new.reference"
-               label="Reference"
+               label="%command.label.47"
                style="push">
          </command>
          <command
          </separator>
          <command
                commandId="eu.etaxonomy.taxeditor.editor.command.new.datasource"
-               label="Datasource"
+               label="%command.label.48"
                style="push">
          </command>
       </menuContribution>
                </reference>
             </visibleWhen>
          </command>
+         <command
+               commandId="eu.etaxonomy.taxeditor.editor.handler.OpenAlignmentEditor"
+               label="Alignment Editor"
+               style="push">
+         </command>
       </menuContribution>
       <menuContribution
             locationURI="menu:org.eclipse.ui.main.menu.navigate">
             </separator>
            <command
                   commandId="eu.etaxonomy.taxeditor.editor.name.createMisapplication"
-                  label="Misapplication"
+                  label="%command.label.49"
                   style="push">
                <visibleWhen>
                   <or>
                class="eu.etaxonomy.taxeditor.editor.view.derivate.contextMenu.DerivateViewContextMenu"
                id="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateContextMenu">
          </dynamic>
+         <command
+               commandId="org.eclipse.ui.edit.delete"
+               label="Delete"
+               style="push">
+         </command>
       </menuContribution>
       <menuContribution
             locationURI="popup:eu.etaxonomy.taxeditor.editor.view.dataimport.SpecimenImportEditor">
                commandId="taxeditor-editor.command.newimagegallery"
                label="%command.label.37"
                style="push">
+            <visibleWhen>
+               <or>
+                  <reference
+                        definitionId="isBulkEditor">
+                  </reference>
+                  <reference
+                        definitionId="isTaxonEditor">
+                  </reference>
+                  <reference
+                        definitionId="isDerivateEditor">
+                  </reference>
+               </or>
+            </visibleWhen>
          </command>
          <separator
                name="taxeditor-editor.separator1"
          </command>
          <command
                commandId="taxeditor-editor.useExistingImage"
-               label="Use Existing Image"
+               label="%command.label.50"
                style="push">
-            <visibleWhen
-                  checkEnabled="false">
+            <visibleWhen>
                <reference
                      definitionId="isImageGallery">
                </reference>
       <handler
             class="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistEditorHandler"
             commandId="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistEditorHandler">
+      </handler>
+            <handler
+            class="eu.etaxonomy.taxeditor.editor.handler.LoadPherogramHandler"
+            commandId="eu.etaxonomy.taxeditor.editor.molecular.AlignmentEditor.loadPherogram">
+         <activeWhen>
+            <with
+                  variable="activePartId">
+               <equals
+                     value="eu.etaxonomy.taxeditor.editor.molecular.AlignmentEditor">
+               </equals>
+            </with>
+         </activeWhen>
+      </handler>
+      <handler
+            class="eu.etaxonomy.taxeditor.editor.handler.AddAHandler"
+            commandId="eu.etaxonomy.taxeditor.editor.molecular.AlignmentEditor.addA">
+         <activeWhen>
+            <with
+                  variable="activePartId">
+               <equals
+                     value="eu.etaxonomy.taxeditor.editor.molecular.AlignmentEditor">
+               </equals>
+            </with>
+         </activeWhen>
+      </handler>
+      <handler
+            class="eu.etaxonomy.taxeditor.editor.view.derivate.handler.DeleteDerivateHandler"
+            commandId="org.eclipse.ui.edit.delete">
+         <activeWhen>
+            <with
+                  variable="activePartId">
+               <equals
+                     value="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView">
+               </equals>
+            </with>
+         </activeWhen>
       </handler>
    </extension>
    <extension
             categoryId="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
             defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.CreateMisapplicationHandler"
             id="eu.etaxonomy.taxeditor.editor.name.createMisapplication"
-            name="Create Misapplication">
+            name="%command.name.36">
       </command>
       <!--command
             defaultHandler="eu.etaxonomy.taxeditor.editor.handler.MoveTaxonHandler"
             categoryId="eu.etaxonomy.taxeditor.editor.media.category"
             defaultHandler="eu.etaxonomy.taxeditor.editor.view.media.handler.AddExistingMediaHandler"
             id="taxeditor-editor.useExistingImage"
-            name="Use Existing Image">
+            name="%command.name.37">
       </command>
       <command
             categoryId="eu.etaxonomy.taxeditor.editor.media.category"
        <command
              defaultHandler="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistEditorHandler"
              id="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistViewHandler"
-             name="Open Checklist Editor">
-       </command>
+             name="%command.name.38">
+      </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">
+            name="%command.name.39">
+      </command>
+      <command
+            defaultHandler="eu.etaxonomy.taxeditor.editor.handler.OpenAlignmentEditor"
+            id="eu.etaxonomy.taxeditor.editor.handler.OpenAlignmentEditor"
+            name="Open Alignment Editor">
       </command>
+      <command
+            id="eu.etaxonomy.taxeditor.editor.molecular.AlignmentEditor.addA"
+            name="Add A">
+      </command>
+      <command
+            id="eu.etaxonomy.taxeditor.editor.molecular.AlignmentEditor.loadPherogram"
+            name="Load Pherogram">
+      </command>
+
    </extension>
    <extension
          point="org.eclipse.core.expressions.definitions">
             </test>
          </with>
       </definition>
+      <definition
+            id="isBulkEditor">
+         <with
+               variable="selection">
+            <test
+                  property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isBulkEditor">
+            </test>
+         </with>
+      </definition>
+      <definition
+            id="isDerivateEditor">
+         <with
+               variable="selection">
+            <test
+                  property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDerivateEditor">
+            </test>
+         </with>
+      </definition>
       <definition
             id="isDescription">
          <with
             class="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.DescriptionsMenuPropertyTester"
             id="eu.etaxonomy.taxeditor.descriptions.PropertyTester"
             namespace="eu.etaxonomy.taxeditor.descriptions.propertyTester"
-            properties="isMedia,isDescription,isDescriptionElement,isDeletable,isFeatureNodeContainer,isImageGallery,isTaxonEditor"
+            properties="isMedia,isDescription,isDescriptionElement,isDeletable,isFeatureNodeContainer,isImageGallery,isTaxonEditor,isBulkEditor,isDerivateEditor"
             type="org.eclipse.jface.viewers.TreeSelection">
       </propertyTester>
       <propertyTester
             id="eu.etaxonomy.taxeditor.bindings.scheme.default"
             name="%scheme.name">
       </scheme>
+      <key
+            commandId="eu.etaxonomy.taxeditor.editor.molecular.AlignmentEditor.addA"
+            schemeId="eu.etaxonomy.taxeditor.bindings.scheme.default"
+            sequence="A">
+      </key>
+      <key
+            commandId="eu.etaxonomy.taxeditor.editor.molecular.AlignmentEditor.loadPherogram"
+            schemeId="eu.etaxonomy.taxeditor.bindings.scheme.default"
+            sequence="O">
+      </key>
    </extension>
     <extension
          point="org.eclipse.ui.importWizards">
             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">
+            name="%wizard.name">
          <description>
-            Queries data provider for specimens with specified parameters.
-Note: Query results are currently limited to 100.
+            %wizard.description
          </description>
       </wizard>
    </extension>