visible="true">
</separator>
<command
- commandId="eu.etaxonomy.taxeditor.editor.openSpecimenEditor"
+ commandId="eu.etaxonomy.taxeditor.editor.openSpecimenEditorFromMenu"
label="%command.label.DERIVATIVE_EDITOR"
style="push">
<visibleWhen
label="%command.label.12"
style="push">
<visibleWhen>
+ <and>
<not>
<or>
<reference
<reference
definitionId="isMisapplication">
</reference>
- <reference
- definitionId="isHomotypicSynonymOfAcceptedTaxon">
- </reference>
</or>
- </not>
+ </not>
+ <reference
+ definitionId="isNotHomotypicSynonymOfAcceptedTaxon">
+ </reference>
+ </and>
</visibleWhen>
</command>
<command
name="taxeditor-editor.separator2"
visible="true">
</separator>
- <dynamic
+ <!-- <dynamic
class="eu.etaxonomy.taxeditor.editor.name.handler.GroupBasionymContributionItem"
id="taxeditor-editor.dynamic.setBasionym">
<visibleWhen>
</reference>
</or>
</visibleWhen>
- </dynamic>
+ </dynamic>-->
<command
commandId="eu.etaxonomy.taxeditor.editor.name.swapSynonymAndAccepted"
label="%command.label.17"
definitionId="isSynonym">
</reference>
</visibleWhen>
+ </command>
+ <command
+ commandId="eu.etaxonomy.taxeditor.editor.name.setAsBasionym"
+ label="%command.label.57"
+ style="push">
+ <visibleWhen>
+ <reference
+ definitionId="isSynonymInHomotypicalGroupWithMoreSynonyms">
+ </reference>
+ </visibleWhen>
</command>
<command
commandId="eu.etaxonomy.taxeditor.editor.name.moveSynonymToAnotherAcceptedTaxon"
label="%command.label.56"
style="push">
<visibleWhen>
+ <and>
<reference
definitionId="isSynonym">
</reference>
+ <reference
+ definitionId="isNotHomotypicSynonymOfAcceptedTaxon">
+ </reference>
+ </and>
</visibleWhen>
</command>
<separator
style="push">
<parameter
name="org.eclipse.ui.views.showView.viewId"
- value="eu.etaxonomy.taxeditor.editor.forms.detailsView">
+ value="eu.etaxonomy.taxeditor.view.detail">
</parameter>
</command>
<separator
label="%command.label.20"
style="push">
</command>
- <separator
- name="taxeditor-editor.separator1"
- visible="true">
- </separator>
<command
commandId="eu.etaxonomy.taxeditor.key.polytomous.delete"
label="%command.label.21"
</menuContribution>
<menuContribution
locationURI="popup:eu.etaxonomy.taxeditor.editor.key.polytomous.list">
- <command
- commandId="eu.etaxonomy.taxeditor.key.polytomous.command.new.child"
- label="%command.label.23"
- style="push">
- </command>
+ <menu
+ label="%menu.label.4">
+ <command
+ commandId="eu.etaxonomy.taxeditor.key.polytomous.command.new.node"
+ label="%command.label.58"
+ style="push">
+ </command>
+ <command
+ commandId="eu.etaxonomy.taxeditor.key.polytomous.command.new.child"
+ label="%command.label.23"
+ style="push">
+ </command>
+ </menu>
<command
commandId="eu.etaxonomy.taxeditor.key.polytomous.command.new.sibling"
label="%command.label.24"
style="push">
</command>
+ <!-- <dynamic
+ class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
+ id="eu.etaxonomy.taxeditor.editor.polytomous.list.cdmViewerContextMenu">
+ </dynamic>-->
<command
commandId="eu.etaxonomy.taxeditor.key.polytomous.command.refresh"
label="%command.label.25"
label="%command.label.26"
style="push">
</command>
+ <separator
+ name="eu.etaxonomy.taxeditor.editor.separator1">
+ </separator>
</menuContribution>
<menuContribution
locationURI="popup:eu.etaxonomy.taxeditor.editor.view.descriptive">
label="%command.label.27"
style="push">
</command>
+ <menu
+ label="%menu.label.1">
+ <dynamic
+ class="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.DynamicFeatureMenu"
+ id="eu.etaxonomy.taxeditor.dynamicFeatureMenu">
+ </dynamic>
+ <visibleWhen
+ checkEnabled="true">
+ <or>
+ <reference
+ definitionId="isDescription">
+ </reference>
+ <reference
+ definitionId="isDescriptionElement">
+ </reference>
+ <reference
+ definitionId="isFeatureNodeContainer">
+ </reference>
+ </or>
+ </visibleWhen>
+ </menu>
+ <separator
+ name="eu.etaxonomy.taxeditor.taxonDescriptionEditor.separator3"
+ visible="true">
+ </separator>
<command
commandId="eu.etaxonomy.taxeditor.editor.view.descriptive.command.moveDescriptionToTaxon"
label="%command.label.28"
commandId="eu.etaxonomy.taxeditor.editor.view.descriptive.command.delete"
label="%command.label.30"
style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <count
+ value="+">
+ </count>
+ </visibleWhen>
</command>
<separator
name="eu.etaxonomy.taxeditor.taxonDescriptionEditor.separator.afterDelete"
<separator
name="eu.etaxonomy.taxeditor.editor.separator1">
</separator>
- <separator
- name="eu.etaxonomy.taxeditor.taxonDescriptionEditor.separator3"
- visible="true">
- </separator>
- <menu
- label="%menu.label.1">
- <dynamic
- class="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.DynamicFeatureMenu"
- id="eu.etaxonomy.taxeditor.dynamicFeatureMenu">
- </dynamic>
- <visibleWhen
- checkEnabled="true">
- <or>
- <reference
- definitionId="isDescription">
- </reference>
- <reference
- definitionId="isDescriptionElement">
- </reference>
- <reference
- definitionId="isFeatureNodeContainer">
- </reference>
- </or>
- </visibleWhen>
- </menu>
</menuContribution>
<menuContribution
locationURI="popup:eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView">
name="eu.etaxonomy.taxeditor.editor.separator4"
visible="true">
</separator>
- <dynamic
- class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
- id="eu.etaxonomy.taxeditor.editor.derivativeEditor.CdmViewerContextMenu">
- </dynamic>
<dynamic
class="eu.etaxonomy.taxeditor.editor.view.derivate.contextMenu.DerivateViewContextMenu"
id="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateContextMenu">
</dynamic>
+ <dynamic
+ class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
+ id="eu.etaxonomy.taxeditor.editor.derivativeEditor.CdmViewerContextMenu">
+ </dynamic>
+ <separator
+ name="eu.etaxonomy.taxeditor.editor.separator1"
+ visible="true">
+ </separator>
<command
commandId="eu.etaxonomy.taxeditor.editor.derivative.toggleLinkWithTaxonSelection"
label="%command.label.LINK_WITH_TAXON_SELECTION"
</handler>
<handler
class="eu.etaxonomy.taxeditor.editor.key.polytomous.handler.DeleteNodeHandler"
- commandId="eu.etaxonomy.taxeditor.editor.key.polytomous.command.delete">
+ commandId="eu.etaxonomy.taxeditor.key.polytomous.command.delete">
<activeWhen>
- <with
+ <with
variable="activePartId">
<equals
value="eu.etaxonomy.taxeditor.editor.key">
</equals>
</with>
</activeWhen>
+ <enabledWhen>
+ <with
+ variable="selection">
+ <test
+ property="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyPropertyTester.isKeyNode">
+ </test>
+ </with>
+ </enabledWhen>
</handler>
<handler
class="eu.etaxonomy.taxeditor.editor.view.concept.handler.DeleteConceptRelationHandler"
</with>
</activeWhen>
</handler>
- <handler
- class="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistEditorHandler"
- commandId="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistEditorHandler">
- </handler>
<handler
class="eu.etaxonomy.taxeditor.editor.view.derivate.handler.DeleteDerivateHandler"
commandId="org.eclipse.ui.edit.delete">
<handler
class="eu.etaxonomy.taxeditor.editor.key.polytomous.handler.RemotingCreateChildPolytomousKeyNodeHandler"
commandId="eu.etaxonomy.taxeditor.key.polytomous.command.new.child">
- <activeWhen>
+ <activeWhen>
<reference
definitionId="isRemoting">
</reference>
</activeWhen>
+ </handler>
+ <handler
+ class="eu.etaxonomy.taxeditor.editor.key.polytomous.handler.InsertNewNodeHandler"
+ commandId="eu.etaxonomy.taxeditor.key.polytomous.command.new.node">
+ <enabledWhen>
+ <with
+ variable="selection">
+ <test
+ property="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyPropertyTester.isKeyNode">
+ </test>
+
+ </with>
+ </enabledWhen>
</handler>
<handler
class="eu.etaxonomy.taxeditor.editor.key.polytomous.handler.RemotingCreateSiblingPolytomousKeyNodeHandler"
commandId="eu.etaxonomy.taxeditor.key.polytomous.command.new.sibling">
<activeWhen>
- <reference
- definitionId="isRemoting">
- </reference>
+ <with
+ variable="activePartId">
+ <equals
+ value="eu.etaxonomy.taxeditor.editor.key">
+ </equals>
+ </with>
</activeWhen>
+ <enabledWhen>
+ <with
+ variable="selection">
+ <test
+ property="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyPropertyTester.isKeyNode">
+ </test>
+
+ </with>
+ </enabledWhen>
</handler>
<handler
class="eu.etaxonomy.taxeditor.handler.defaultHandler.OpenReferencingObjectsView"
</with>
</activeWhen>
</handler>
+ <handler
+ class="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistEditorHandler"
+ commandId="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistViewHandler">
+ <activeWhen>
+ <and>
+ <reference
+ definitionId="isChecklistEditorEnabled">
+ </reference>
+ <or>
+ <reference
+ definitionId="isTaxonNode">
+ </reference>
+ <reference
+ definitionId="isClassification">
+ </reference>
+ </or>
+ </and>
+ </activeWhen>
+ </handler>
+ <handler
+ class="eu.etaxonomy.taxeditor.editor.key.polytomous.handler.RefreshNodeNumberingHandler"
+ commandId="eu.etaxonomy.taxeditor.key.polytomous.command.refresh">
+ <enabledWhen>
+ <with
+ variable="selection">
+ <test
+ property="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyPropertyTester.isKeyNode">
+ </test>
+ </with>
+ </enabledWhen>
+ </handler>
</extension>
<extension
name="%extension.name"
id="eu.etaxonomy.taxeditor.editor.name.createMisapplication"
name="%command.name.36">
</command>
- <!--command
+ <!-- <command
defaultHandler="eu.etaxonomy.taxeditor.editor.handler.MoveTaxonHandler"
id="eu.etaxonomy.taxeditor.editor.name.moveTaxon"
name="Move Taxon">
- </command-->
+ </command>-->
<command
categoryId="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeToSynonymHandler"
defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.SwapSynonymAndAcceptedHandler"
id="eu.etaxonomy.taxeditor.editor.name.swapSynonymAndAccepted"
name="%command.name.6">
+ </command>
+ <command
+ categoryId="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
+ defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.SetBasionymHandler"
+ id="eu.etaxonomy.taxeditor.editor.name.setAsBasionym"
+ name="%command.name.57">
</command>
<command
categoryId="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
</category>
<command
categoryId="eu.etaxonomy.taxeditor.editor.key.category"
- defaultHandler="eu.etaxonomy.taxeditor.editor.key.polytomous.handler.CreateChildNodeHandler"
+
id="eu.etaxonomy.taxeditor.key.polytomous.command.new.child"
name="%command.name.28">
</command>
- <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.node"
+ name="%command.name.58">
+ </command>
+ <command
+ categoryId="eu.etaxonomy.taxeditor.editor.key.category"
id="eu.etaxonomy.taxeditor.key.polytomous.command.new.sibling"
name="%command.name.29">
</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="%command.name.30">
</command>
name="%command.name.31">
</command>
<command
- defaultHandler="eu.etaxonomy.taxeditor.editor.key.polytomous.handler.DeleteNodeHandler"
+ categoryId="eu.etaxonomy.taxeditor.editor.key.category"
id="eu.etaxonomy.taxeditor.key.polytomous.command.delete"
name="%command.name.50">
</command>
name="%command.name.34">
</command>
<command
- defaultHandler="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistEditorHandler"
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"
name="%command.name.41">
</command>
<command
- defaultHandler="eu.etaxonomy.taxeditor.editor.handler.defaultHandler.DefaultOpenTaxonEditorForTaxonHandler"
id="eu.etaxonomy.taxeditor.editor.openTaxonEditorForTaxon"
name="%command.name.42">
<commandParameter
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>
<command
defaultHandler="eu.etaxonomy.taxeditor.editor.view.derivate.handler.ListenToSelectionChangeHandler"
id="eu.etaxonomy.taxeditor.editor.derivative.listenToSelectionChange"
id="eu.etaxonomy.taxeditor.editor.derivative.toggleLinkWithTaxonSelection"
name="%command.name.TOGGLE_LINK_WITH_TAXON_SELECTION">
</command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.editor.handler.defaultHandler.DefaultOpenSpecimenEditorForTypeSpecimenHandler"
+ id="eu.etaxonomy.taxeditor.openSpecimenEditorForTypeSpecimen"
+ name="Open specimen editor for type specimen">
+ </command>
</extension>
<extension
<with
variable="selection">
<test
- property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isHomotypicSynonymOfAcceptedTaxon">
+ property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isNotHomotypicSynonymOfAcceptedTaxon">
+ </test>
+ </with>
+ </definition>
+ <definition
+ id="isSynonymInHomotypicalGroupWithMoreSynonyms">
+ <with
+ variable="selection">
+ <test
+ property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isSynonymInHomotypicalGroupWithMoreSynonyms">
</test>
</with>
</definition>
</test>
</with>
</definition>
- <definition
- id="isGroupEditor">
- <with
- variable="activeEditor">
- <test
- property="taxeditor-bulkeditor.propertyTester.isGroupEditor">
- </test>
- </with>
- </definition>
<definition
id="isIndividualsAssociation">
<with
<test
property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isRemoting">
</test>
+ </definition>
+ <definition
+ id="isKeyNode">
+ <with
+ variable="selection">
+ <test
+ property="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyPropertyTester.isKeyNode">
+ </test>
+ </with>
</definition>
<definition
id="isSequence">
</test>
</with>
</definition>
+ <definition
+ id="isOrphanedTaxon">
+ <with
+ variable="selection">
+ <test
+ forcePluginActivation="true"
+ property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isOrphaned">
+ </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,isAcceptedAndHasNoHomotypicSynonyms"
- type="org.eclipse.jface.viewers.IStructuredSelection">
+ properties="isAcceptedTaxon,isSynonym,isMisapplication,isTaxonBase,hasEmptyNames,isAcceptedAndHasNoHomotypicSynonyms,isNotHomotypicSynonymOfAcceptedTaxon,isSynonymInHomotypicalGroupWithMoreSynonyms,isOrphaned"
+ type="java.lang.Object">
</propertyTester>
<propertyTester
class="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.DescriptionsMenuPropertyTester"
properties="isMedia,isDescription,isDescriptionElement,isDeletable,isFeatureNodeContainer,isImageGallery,isTaxonEditor,isBulkEditor,isDerivateEditor, isIndividualsAssociation"
type="org.eclipse.jface.viewers.TreeSelection">
</propertyTester>
- <propertyTester
- class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"
- id="taxeditor-bulkeditor.PropertyTester"
- namespace="taxeditor-bulkeditor.propertyTester"
- properties="isGroupEditor"
- type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
- </propertyTester>
<propertyTester
class="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester"
id="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester"
properties="isLinkedWithTaxonSelection"
type="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView">
</propertyTester>
+ <propertyTester
+ class="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyPropertyTester"
+ id="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyPropertyTester"
+ namespace="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyPropertyTester"
+ properties="isKeyNode"
+ type="org.eclipse.jface.viewers.IStructuredSelection">
+ </propertyTester>
</extension>
<extension
point="org.eclipse.ui.bindings">
<viewCommandMapping
commandId="eu.etaxonomy.taxeditor.editor.openTaxonEditorForTaxonNode"
selection="eu.etaxonomy.cdm.model.taxon.TaxonNode"
- viewerName="Name Editor">
+ viewerName="%viewCommandMapping.viewerName.NAME_EDITOR">
</viewCommandMapping>
<viewCommandMapping
commandId="eu.etaxonomy.taxeditor.editor.openTaxonEditorForTaxon"
selection="eu.etaxonomy.cdm.model.taxon.TaxonBase"
- viewerName="Name Editor">
+ viewerName="%viewCommandMapping.viewerName.NAME_EDITOR">
</viewCommandMapping>
<viewCommandMapping
commandId="eu.etaxonomy.taxeditor.editor.openSpecimenEditor"
selection="eu.etaxonomy.cdm.model.description.IndividualsAssociation"
- viewerName="Derivative Editor">
+ viewerName="%viewCommandMapping.viewerName.SPECIMEN_EDITOR">
</viewCommandMapping>
<viewCommandMapping
commandId="eu.etaxonomy.taxeditor.editor.openSpecimenEditor"
selection="eu.etaxonomy.cdm.model.taxon.TaxonNode"
- viewerName="Derivative Editor">
+ viewerName="%viewCommandMapping.viewerName.SPECIMEN_EDITOR">
+ </viewCommandMapping>
+ <viewCommandMapping
+ commandId="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistViewHandler"
+ selection="eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode"
+ viewerName="%viewCommandMapping.viewerName.CHECKLIST_EDITOR">
+ </viewCommandMapping>
+ <viewCommandMapping
+ commandId="eu.etaxonomy.taxeditor.openSpecimenEditorForTypeSpecimen"
+ selection="eu.etaxonomy.cdm.model.name.SpecimenTypeDesignation"
+ viewerName="Specimen Editor">
</viewCommandMapping>
</extension>
</plugin>