merge-update from trunk
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / plugin.xml
index ff49af4516c1dcd007fbb6a70988c2246ac6b32b..dece78af052770ff988dbacbeac255f72a3ed6ec 100644 (file)
             id="eu.etaxonomy.taxeditor.editor.key.polytomous.list"
             name="Polytomous Key List Editor">
       </editor>
+      <editor
+            class="eu.etaxonomy.taxeditor.editor.group.authority.CdmAuthorityEditor"
+            default="false"
+            id="eu.etaxonomy.taxeditor.editor.group.authority"
+            name="Cdm Authority Editor">
+      </editor>
    </extension>
       <extension
             point="org.eclipse.ui.views">
                id="eu.etaxonomy.taxeditor.editor.view.descriptive"
                name="Descriptive"
                restorable="true">
+         </view>
+          <view
+               allowMultiple="false"
+               class="eu.etaxonomy.taxeditor.editor.view.uses.UsesViewPart"
+               icon="icons/leaf.png"
+               id="eu.etaxonomy.taxeditor.editor.view.uses"
+               name="Uses"
+               restorable="true">
          </view>
          <view
                allowMultiple="false"
                name="Concept Relations"
                restorable="true">
          </view>
+         <view
+               class="eu.etaxonomy.taxeditor.editor.view.concept.graph.ConceptGraphView"
+               icon="icons/address-book-new.png"
+               id="eu.etaxonomy.taxeditor.editor.view.concept.graph"
+               name="Concept Graph"
+               restorable="true">
+         </view>
       </extension>
    <extension
          point="org.eclipse.ui.elementFactories">
          </command>
       </menuContribution>
       <menuContribution
-            locationURI="menu:eu.etaxonomy.taxeditor.menu.showView">
+            locationURI="menu:eu.etaxonomy.taxeditor.menu.showView?before=eu.etaxonomy.taxeditor.store.showViewMenu.details">
+         <separator
+               name="eu.etaxonomy.taxeditor.editor.showViewMenu"
+               visible="true">
+         </separator>
          <command
                commandId="org.eclipse.ui.views.showView"
                label="Descriptive"
                   value="eu.etaxonomy.taxeditor.editor.view.concept">
             </parameter>
          </command>
+         <command
+               commandId="org.eclipse.ui.views.showView"
+               label="Concept Graph"
+               style="push">
+            <parameter
+                  name="org.eclipse.ui.views.showView.viewId"
+                  value="eu.etaxonomy.taxeditor.editor.view.concept.graph">
+            </parameter>
+            <visibleWhen
+                  checkEnabled="false">
+               <reference
+                     definitionId="isShowExperimentalFeatures">
+               </reference>
+            </visibleWhen>
+         </command>
       </menuContribution>
       <menuContribution
             locationURI="menu:org.eclipse.ui.main.menu.navigate">
                commandId="eu.etaxonomy.taxeditor.editor.name.changeAcceptedToSynonym"
                label="Change Accepted Taxon to Synonym"
                style="push">
-            <visibleWhen>
+            <!--visibleWhen
+                  checkEnabled="true">
                <reference
-                     definitionId="isAcceptedTaxon">
+                     definitionId="isAcceptedAndHasNoHomotypicSynonyms">
                </reference>
-            </visibleWhen>
+            </visibleWhen-->
          </command>
          <menu
                label="Change To">
                visible="true">
          </separator>
       </menuContribution>
+      <menuContribution
+            locationURI="popup:eu.etaxonomy.taxeditor.editor.key.polytomous.list">
+         <command
+               commandId="eu.etaxonomy.taxeditor.key.polytomous.command.new.sibling"
+               label="New Sibling"
+               style="push">
+         </command>
+         <command
+               commandId="eu.etaxonomy.taxeditor.key.polytomous.command.new.child"
+               label="New Child"
+               style="push">
+         </command>
+         <command
+               commandId="eu.etaxonomy.taxeditor.key.polytomous.command.refresh"
+               label="Refresh Nodes"
+               style="push">
+         </command>
+         <command
+               commandId="org.eclipse.ui.edit.delete"
+               label="Delete"
+               style="push">
+         </command>
+      </menuContribution>
       <menuContribution
             locationURI="popup:eu.etaxonomy.taxeditor.editor.view.descriptive">
          <command
                style="push">
          </command>
       </menuContribution>
+      
+      
+      
+      
+      <menuContribution
+            locationURI="popup:eu.etaxonomy.taxeditor.editor.view.uses">
+         <command
+               commandId="eu.etaxonomy.taxeditor.use.commands.adduse"
+               label="New Use"
+               style="push">
+         </command>
+         <command
+               commandId="eu.etaxonomy.taxeditor.editor.use.createUseSummary"
+               label="New Use Summary"
+               style="push">
+            <visibleWhen
+                  checkEnabled="true">
+               <or>
+                  <reference
+                        definitionId="isDescription">
+                  </reference>
+                  <reference
+                        definitionId="isDescriptionElement">
+                  </reference>
+                  <reference
+                        definitionId="isFeatureNodeContainer">
+                  </reference>
+               </or>
+            </visibleWhen>
+         </command>
+         <command
+               commandId="eu.etaxonomy.taxeditor.editor.use.createUseRecord"
+               label="New Use Record"
+               style="push">
+            <visibleWhen
+                  checkEnabled="true">
+               <or>
+                  <reference
+                        definitionId="isDescription">
+                  </reference>
+                  <reference
+                        definitionId="isDescriptionElement">
+                  </reference>
+                  <reference
+                        definitionId="isFeatureNodeContainer">
+                  </reference>
+               </or>
+            </visibleWhen>
+         </command>
+         <separator
+               name="eu.etaxonomy.taxeditor.usesEditor.separator3"
+               visible="true">
+         </separator>
+         <separator
+               name="taxeditor-editor.separator1"
+               visible="true">
+         </separator>
+         <separator
+               name="eu.etaxonomy.taxeditor.taxonDescriptionEditor.separator.afterNew"
+               visible="true">
+         </separator>
+         <command
+               commandId="org.eclipse.ui.edit.delete"
+               label="Delete"
+               style="push">
+         </command>
+         <separator
+               name="eu.etaxonomy.taxeditor.taxonDescriptionEditor.separator.afterDelete"
+               visible="true">
+         </separator>
+         <command
+               commandId="org.eclipse.ui.file.save"
+               label="Save"
+               style="push">
+         </command>
+      </menuContribution>
+      
+      
+      
+      
+      
       <menuContribution
             locationURI="popup:eu.etaxonomy.taxeditor.editor.view.media">
          <command
                commandId="taxeditor-editor.newimage"
                label="New Image"
                style="push">
+            <visibleWhen>
+               <reference
+                     definitionId="isImageGallery">
+               </reference>
+            </visibleWhen>
          </command>
          <command
                commandId="taxeditor-editor.command.moveimgdown"
          </command>
       </menuContribution>
       <menuContribution
-            locationURI="popup:eu.etaxonomy.taxeditor.editor.key.polytomous.list">
+            allPopups="false"
+            locationURI="popup:#BulkEditorContext?before=taxeditor-bulkeditor.separator1">
          <command
-               commandId="eu.etaxonomy.taxeditor.key.polytomous.command.new"
-               label="New"
-               style="push">
-         </command>
-         <command
-               commandId="org.eclipse.ui.edit.delete"
-               label="Delete"
+               commandId="eu.etaxonomy.taxeditor.group.cdmauthorities.edit"
+               label="Edit Authorities"
                style="push">
+            <visibleWhen>
+               <reference
+                     definitionId="isGroup">
+               </reference>
+            </visibleWhen>
          </command>
       </menuContribution>
    </extension>
           <activeWhen>
              <with
                    variable="activePartId">
-                <equals
-                      value="eu.etaxonomy.taxeditor.editor.view.descriptive">
-                </equals>
+                <or>
+                   <equals
+                         value="eu.etaxonomy.taxeditor.editor.view.descriptive">
+                   </equals>
+                   <equals
+                         value="eu.etaxonomy.taxeditor.editor.view.media">
+                   </equals>
+                </or>
              </with>
           </activeWhen>
       </handler>
             </with>
          </activeWhen>
       </handler>
+      <handler
+            class="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.DeleteHandler"
+            commandId="org.eclipse.ui.edit.delete">
+         <activeWhen>
+            <with
+                  variable="activePartId">
+               <equals
+                     value="eu.etaxonomy.taxeditor.editor.view.uses">
+               </equals>
+            </with>
+         </activeWhen>
+      </handler>
    </extension>
    <extension
          name="Name Commands"
             id="eu.etaxonomy.taxeditor.description.commands.moveDescriptionElements"
             name="Move Description Elements">
       </command>
+      <category
+            id="eu.etaxonomy.taxeditor.editor.view.uses.command.category"
+            name="-- New Uses">
+      </category>
+      <command
+            categoryId="eu.etaxonomy.taxeditor.editor.view.uses.command.category"
+            defaultHandler="eu.etaxonomy.taxeditor.editor.view.uses.handler.CreateUseHandler"
+            id="eu.etaxonomy.taxeditor.use.commands.adduse"
+            name="New Use">
+      </command>
+      <command
+            categoryId="eu.etaxonomy.taxeditor.editor.view.uses.command.category"
+            defaultHandler="eu.etaxonomy.taxeditor.editor.view.uses.handler.CreateUseSummaryHandler"
+            id="eu.etaxonomy.taxeditor.editor.use.createUseSummary"
+            name="New Use Summary">
+      </command>
+      <command
+            categoryId="eu.etaxonomy.taxeditor.editor.view.uses.command.category"
+            defaultHandler="eu.etaxonomy.taxeditor.editor.view.uses.handler.CreateUseRecordHandler"
+            id="eu.etaxonomy.taxeditor.editor.use.createUseRecord"
+            name="New Use Record">
+      </command>
       <category
             id="eu.etaxonomy.taxeditor.editor.media.category"
             name="-- Media">
       </category>
       <command
             categoryId="eu.etaxonomy.taxeditor.editor.key.category"
-            defaultHandler="eu.etaxonomy.taxeditor.editor.key.polytomous.handler.CreateNodeHandler"
-            id="eu.etaxonomy.taxeditor.key.polytomous.command.new"
-            name="New Node">
+            defaultHandler="eu.etaxonomy.taxeditor.editor.key.polytomous.handler.CreateChildNodeHandler"
+            id="eu.etaxonomy.taxeditor.key.polytomous.command.new.child"
+            name="New Child Node">
+      </command>
+      <command
+            categoryId="eu.etaxonomy.taxeditor.editor.key.category"
+            defaultHandler="eu.etaxonomy.taxeditor.editor.key.polytomous.handler.CreateSiblingNodeHandler"
+            id="eu.etaxonomy.taxeditor.key.polytomous.command.new.sibling"
+            name="New Sibling Node">
+      </command>
+      <command
+            categoryId="eu.etaxonomy.taxeditor.editor.key.category"
+            defaultHandler="eu.etaxonomy.taxeditor.editor.key.polytomous.handler.RefreshNodeNumberingHandler"
+            id="eu.etaxonomy.taxeditor.key.polytomous.command.refresh"
+            name="Refresh Node Numbering">
       </command>
       <command
             categoryId="eu.etaxonomy.taxeditor.editor.key.category"
             id="eu.etaxonomy.taxeditor.editor.view.concept.command.open"
             name="Open Related Concept">
       </command>
+      <category
+            id="eu.etaxonomy.taxeditor.bulkeditor.group.category"
+            name="-- Group">
+      </category>
+      <command
+            categoryId="eu.etaxonomy.taxeditor.bulkeditor.group.category"
+            defaultHandler="eu.etaxonomy.taxeditor.editor.group.authority.handler.EditCdmAuthoritiesHandler"
+            id="eu.etaxonomy.taxeditor.group.cdmauthorities.edit"
+            name="Edit CDM Authorities">
+      </command>
    </extension>
    <extension
          point="org.eclipse.core.expressions.definitions">
             </test>
          </with>
       </definition>
+      <definition
+            id="isImageGallery">
+         <with
+               variable="selection">
+            <test
+                  property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isImageGallery">
+            </test>
+         </with>
+      </definition>
+      <definition
+            id="isAcceptedAndHasNoHomotypicSynonyms">
+         <with
+               variable="selection">
+            <test
+                  property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isAcceptedAndHasNoHomotypicSynonyms">
+            </test>
+         </with>
+      </definition>
+      <definition
+            id="isGroup">
+         <with
+               variable="activeEditor">
+            <test
+                  property="taxeditor-bulkeditor.propertyTester.isGroup">
+            </test>
+         </with>
+      </definition>
    </extension>
    <extension
          point="org.eclipse.core.expressions.propertyTesters">
             class="eu.etaxonomy.taxeditor.editor.name.handler.NameEditorMenuPropertyTester"
             id="eu.etaxonomy.taxeditor.editor.name.propertyTester"
             namespace="eu.etaxonomy.taxeditor.editor.name.propertyTester"
-            properties="isAcceptedTaxon,isSynonym,isMisapplication,isTaxonBase,hasEmptyNames"
+            properties="isAcceptedTaxon,isSynonym,isMisapplication,isTaxonBase,hasEmptyNames,isAcceptedAndHasNoHomotypicSynonyms"
             type="org.eclipse.jface.viewers.IStructuredSelection">
       </propertyTester>
       <propertyTester
             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"
+            properties="isMedia,isDescription,isDescriptionElement,isDeletable,isFeatureNodeContainer,isImageGallery"
             type="org.eclipse.jface.viewers.TreeSelection">
       </propertyTester>
+      <propertyTester
+            class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"
+            id="taxeditor-bulkeditor.PropertyTester"
+            namespace="taxeditor-bulkeditor.propertyTester"
+            properties="isGroup"
+            type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
+      </propertyTester>
    </extension>
    <extension
          point="org.eclipse.ui.bindings">