ref #8225 Temporary fix - ask for saving before removing a designation
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / plugin.xml
index c424275b54ecf0e13fdb88cc58a46fcee746b6c3..99c9c375f4367519053a8850a3134a8e9492c3dd 100644 (file)
             </adapter>
          </factory>
       </extension>
-   <extension
-         point="org.eclipse.ui.editors">
-      <editor
-            class="eu.etaxonomy.taxeditor.editor.group.authority.CdmAuthorityEditor"
-            default="false"
-            id="eu.etaxonomy.taxeditor.editor.group.authority"
-            name="%editor.name.4">
-      </editor>
-   </extension>
       <extension
             point="org.eclipse.ui.views">
          <view
    </extension>
    <extension
          point="org.eclipse.ui.menus">
-      <menuContribution
-            locationURI="menu:eu.etaxonomy.navigation.menu.new?after=eu.etaxonomy.navigation.menu.new.separator1">
-         <command
-               commandId="eu.etaxonomy.taxeditor.editor.command.new.name"
-               label="%command.label.46"
-               style="push">
-            <visibleWhen
-                  checkEnabled="true">
-               <reference
-                     definitionId="isCdmStoreConnected">
-               </reference>
-            </visibleWhen>
-         </command>
-         <command
-               commandId="eu.etaxonomy.taxeditor.editor.command.new.reference"
-               label="%command.label.47"
-               style="push">
-            <visibleWhen
-                  checkEnabled="true">
-               <reference
-                     definitionId="isCdmStoreConnected">
-               </reference>
-            </visibleWhen>
-         </command>
-         <command
-               commandId="eu.etaxonomy.taxeditor.editor.command.new.team"
-               label="%command.label.1"
-               style="push">
-            <visibleWhen
-                  checkEnabled="true">
-               <reference
-                     definitionId="isCdmStoreConnected">
-               </reference>
-            </visibleWhen>
-         </command>
-         <command
-               commandId="eu.etaxonomy.taxeditor.editor.command.new.person"
-               label="%command.label.2"
-               style="push">
-            <visibleWhen
-                  checkEnabled="true">
-               <reference
-                     definitionId="isCdmStoreConnected">
-               </reference>
-            </visibleWhen>
-         </command>
-         <separator
-               name="eu.etaxonomy.navigation.menu.new.separator2"
-               visible="true">
-         </separator>
-         <separator
-               name="eu.etaxonomy.navigation.menu.new.separator3"
-               visible="true">
-         </separator>
-         <command
-               commandId="eu.etaxonomy.taxeditor.editor.command.new.datasource"
-               label="%command.label.48"
-               style="push">
-         </command>
-      </menuContribution>
       <menuContribution
             locationURI="menu:eu.etaxonomy.taxeditor.menu.showView?before=eu.etaxonomy.taxeditor.store.showViewMenu.internal">
          <separator
             </visibleWhen>
          </command>
       </menuContribution>
-      <menuContribution
-            locationURI="menu:org.eclipse.ui.main.menu.navigate">
-         <command
-               commandId="eu.etaxonomy.taxeditor.editor.command.openParent"
-               label="%command.label.8"
-               style="push">
-         </command>
-      </menuContribution>
       
       
       
       
       
       
-      <menuContribution
-            allPopups="false"
-            locationURI="popup:bulkeditor.editor?before=eu.etaxonomy.taxeditor.bulkeditor.separator1">
-         <command
-               commandId="eu.etaxonomy.taxeditor.group.cdmauthorities.edit"
-               label="%command.label.45"
-               style="push">
-            <visibleWhen>
-               <reference
-                     definitionId="isGroupEditor">
-               </reference>
-            </visibleWhen>
-         </command>
-      </menuContribution>
       <menuContribution
             allPopups="false"
             locationURI="toolbar:org.eclipse.ui.main.toolbar?after=eu.etaxonomy.taxeditor.navigation.search.toolbar">
          </toolbar>
       </menuContribution>
    </extension>
-   <extension
-         point="org.eclipse.ui.handlers">
-      <handler
-            class="org.eclipse.ui.internal.handlers.NewEditorHandler"
-            commandId="org.eclipse.ui.window.newEditor">
-         <activeWhen>
-            <not>
-               <instanceof
-                     value="eu.etaxonomy.taxeditor.editor.name.TaxonNameEditor">
-               </instanceof>
-            </not>
-         </activeWhen>
-         <enabledWhen>
-            <count
-                  value="-1">
-            </count>
-         </enabledWhen>
-      </handler>
-   </extension>
-   <extension
-         name="%extension.name"
-         point="org.eclipse.ui.commands">
-      <category
-            id="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
-            name="%category.name.0">
-      </category>
-      <command
-            categoryId="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
-            defaultHandler="eu.etaxonomy.taxeditor.editor.handler.OpenParentHandler"
-            id="eu.etaxonomy.taxeditor.editor.command.openParent"
-            name="%command.name">
-      </command>
-    <!--  <command
-            defaultHandler="eu.etaxonomy.taxeditor.editor.handler.MoveTaxonHandler"
-            id="eu.etaxonomy.taxeditor.editor.name.moveTaxon"
-            name="Move Taxon">
-      </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>-->
-      <category
-            id="eu.etaxonomy.taxeditor.editor.view.descriptive.command.category"
-            name="%category.name.1">
-      </category>
-      <category
-            id="eu.etaxonomy.taxeditor.editor.view.uses.command.category"
-            name="%category.name.2">
-      </category>
-      <category
-            id="eu.etaxonomy.taxeditor.editor.media.category"
-            name="%category.name.3">
-      </category>
-      
-      <category
-            id="eu.etaxonomy.taxeditor.editor.new.category"
-            name="%category.name.4">
-      </category>
-      <command
-            categoryId="eu.etaxonomy.taxeditor.editor.new.category"
-            defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewReferenceHandler"
-            id="eu.etaxonomy.taxeditor.editor.command.new.reference"
-            name="%command.name.23">
-      </command>
-      <command
-            categoryId="eu.etaxonomy.taxeditor.editor.new.category"
-            defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewNameHandler"
-            id="eu.etaxonomy.taxeditor.editor.command.new.name"
-            name="%command.name.24">
-      </command>
-      <command
-            categoryId="eu.etaxonomy.taxeditor.editor.new.category"
-            defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewTeamHandler"
-            id="eu.etaxonomy.taxeditor.editor.command.new.team"
-            name="%command.name.25">
-      </command>
-      <command
-            categoryId="eu.etaxonomy.taxeditor.editor.new.category"
-            defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewPersonHandler"
-            id="eu.etaxonomy.taxeditor.editor.command.new.person"
-            name="%command.name.26">
-      </command>
-      <category
-            id="eu.etaxonomy.taxeditor.editor.view.concept.category"
-            name="%category.name.6">
-      </category>
-      <category
-            id="eu.etaxonomy.taxeditor.bulkeditor.group.category"
-            name="%category.name.7">
-      </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="%command.name.34">
-      </command>
-       <command
-             id="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistViewHandler"
-             name="%command.name.38">
-          <commandParameter
-                id="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistViewHandler.uuid"
-                name="taxonNodeUuid"
-                optional="true"
-                typeId="eu.etaxonomy.taxeditor.uuidParameterType">
-          </commandParameter>
-       </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="%command.name.39">
-      </command>
-      <command
-            id="eu.etaxonomy.taxeditor.editor.handler.showOnlyIndividualAssociations"
-            name="%command.name.41">
-      </command>
-       
-      <command
-            defaultHandler="eu.etaxonomy.taxeditor.editor.handler.OpenDerivateViewHandler"
-            id="eu.etaxonomy.taxeditor.editor.openSpecimenEditor"
-            name="%command.name.OPEN_DERIVATIVE_EDITOR">
-         <commandParameter
-               id="eu.etaxonomy.taxeditor.editor.openSpecimenEditor.uuid"
-               name="Specimen Uuids"
-               optional="true"
-               typeId="eu.etaxonomy.taxeditor.uuidParameterType">
-         </commandParameter>
-      </command>
-      <command
-            defaultHandler="eu.etaxonomy.taxeditor.editor.handler.OpenDerivateViewHandler"
-            id="eu.etaxonomy.taxeditor.editor.openSpecimenEditorFromMenu"
-            name="%command.name.OPEN_DERIVATIVE_EDITOR">
-      </command>
-        
-   </extension>
    <extension
          point="org.eclipse.core.expressions.definitions">
       <definition
                   property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isNotHomotypicSynonymOfAcceptedTaxon">
             </test>
          </with>
+      </definition>
+          <definition
+            id="isNotAcceptedTaxon">
+         <with
+               variable="selection">
+            <test
+                  property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isNotAcceptedTaxon">
+            </test>
+         </with>
       </definition>
        <definition
             id="isSynonymInHomotypicalGroupWithMoreSynonyms">
             </test>
          </with>
       </definition>
+      <definition
+            id="isNotSynonym">
+         <with
+               variable="selection">
+            <test
+                  property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isNotSynonym">
+            </test>
+         </with>
+      </definition>
       <definition
             id="isMisapplication">
          <with
                   property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isMisapplication">
             </test>
          </with>
+      </definition>
+       <definition
+            id="isProparteSynonym">
+         <with
+               variable="selection">
+            <test
+                  property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isProparteSynonym">
+            </test>
+         </with>
+      </definition>
+       <definition
+            id="isNotProparteSynonym">
+         <with
+               variable="selection">
+            <test
+                  property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isNotProparteSynonym">
+            </test>
+         </with>
+      </definition>
+           <definition
+            id="isNotMisapplication">
+         <with
+               variable="selection">
+            <test
+                  property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isNotMisapplication">
+            </test>
+         </with>
+      </definition>
+      <definition
+            id="isNotInvalidDesignation">
+         <with
+               variable="selection">
+            <test
+                  property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isNotInvalidDesignation">
+            </test>
+         </with>
       </definition>
       <definition
             id="isTaxonBase">
             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,isAcceptedAndHasNoHomotypicSynonyms,isNotHomotypicSynonymOfAcceptedTaxon,isSynonymInHomotypicalGroupWithMoreSynonyms,isOrphaned"
+            properties="isAcceptedTaxon,isSynonym,isNotSynonym,isMisapplication,isProparteSynonym,isNotProparteSynonym,isNotMisapplication,isNotInvalidDesignation,isTaxonBase,hasEmptyNames,isAcceptedAndHasNoHomotypicSynonyms,isNotHomotypicSynonymOfAcceptedTaxon,isNotAcceptedTaxon,isSynonymInHomotypicalGroupWithMoreSynonyms,isOrphaned"
             type="java.lang.Object">
       </propertyTester>
       <propertyTester
-            class="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.DescriptionsMenuPropertyTester"
+            class="eu.etaxonomy.taxeditor.editor.view.descriptive.e4.handler.DescriptionsMenuPropertyTesterE4"
             id="eu.etaxonomy.taxeditor.descriptions.propertyTester"
             namespace="eu.etaxonomy.taxeditor.descriptions.propertyTester"
             properties="isMedia,isDescription,isDescriptionElement,isDeletable,isFeatureNodeContainer,isImageGallery,isTaxonEditor,isBulkEditor,isDerivateEditor, isIndividualsAssociation"
             viewerName="%viewCommandMapping.viewerName.NAME_EDITOR">
       </viewCommandMapping>
       <viewCommandMapping
-            commandId="eu.etaxonomy.taxeditor.editor.openSpecimenEditor"
+            commandId="eu.etaxonomy.taxeditor.editor.openSpecimenEditorForIndividualsAssociation"
             selection="eu.etaxonomy.cdm.model.description.IndividualsAssociation"
             viewerName="%viewCommandMapping.viewerName.SPECIMEN_EDITOR">
       </viewCommandMapping>
       <viewCommandMapping
-            commandId="eu.etaxonomy.taxeditor.editor.openSpecimenEditor"
+            commandId="eu.etaxonomy.taxeditor.editor.openSpecimenEditorForTaxonNode"
             selection="eu.etaxonomy.cdm.model.taxon.TaxonNode"
             viewerName="%viewCommandMapping.viewerName.SPECIMEN_EDITOR">
       </viewCommandMapping>
             viewerName="Bulk Editor">
       </viewCommandMapping>
       <viewCommandMapping
-            commandId="eu.etaxonomy.taxeditor.editor.openSpecimenEditor"
+            commandId="eu.etaxonomy.taxeditor.editor.openSpecimenEditorForSpecimenOrObservation"
             selection="eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase"
-            viewerName="Specimen Editor">
+            viewerName="Specimen Editor (tree)">
+      </viewCommandMapping>
+      <viewCommandMapping
+            commandId="eu.etaxonomy.taxeditor.editor.command.descriptiveDataSet.openDescriptiveDataSetEditor"
+            selection="eu.etaxonomy.cdm.model.description.DescriptiveDataSet"
+            viewerName="Descriptive Data Set Editor">
+      </viewCommandMapping>
+      <viewCommandMapping
+            commandId="eu.etaxonomy.taxeditor.editor.command.descriptiveDataSet.openCharacterMatrix"
+            selection="eu.etaxonomy.cdm.model.description.DescriptiveDataSet"
+            viewerName="Character Matrix">
+      </viewCommandMapping>
+      <viewCommandMapping
+            commandId="eu.etaxonomy.taxeditor.editor.command.descriptiveDataSet.openDescriptiveDataSetEditor"
+            selection="eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache"
+            viewerName="Descriptive Data Set Editor">
+      </viewCommandMapping>
+      <viewCommandMapping
+            commandId="eu.etaxonomy.taxeditor.openSpecimenEditorForGatheringEvent"
+            selection="eu.etaxonomy.cdm.model.occurrence.GatheringEvent"
+            viewerName="%viewCommandMapping.viewerName.SPECIMEN_EDITOR">
       </viewCommandMapping>
     </extension>
    <extension