</menuContribution>
<menuContribution
locationURI="popup:eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView">
+ <separator
+ 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>
+ <separator
+ name="eu.etaxonomy.taxeditor.editor.separator3"
+ visible="true">
+ </separator>
+ <command
+ commandId="eu.etaxonomy.taxeditor.editor.derivative.reuseSingleRead"
+ id="eu.etaxonomy.taxeditor.editor.derivative.reuseSingleReadMenuItem"
+ label="Reuse single read here"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <reference
+ definitionId="isSingleReadReusableHere">
+ </reference>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="eu.etaxonomy.taxeditor.editor.derivative.copySingleReadToClipBoard"
+ label="Reuse for other sequence"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <reference
+ definitionId="isSingleRead">
+ </reference>
+ </visibleWhen>
+ </command>
<command
- commandId="eu.etaxonomy.taxeditor.editor.derivate.delete"
+ commandId="eu.etaxonomy.taxeditor.editor.derivative.removeSingleReadFromSequence"
+ label="Remove from this sequence"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <reference
+ definitionId="isSingleReadReused">
+ </reference>
+ </visibleWhen>
+ </command>
+ <separator
+ name="eu.etaxonomy.taxeditor.editor.separator7"
+ visible="true">
+ </separator>
+ <command
+ commandId="org.eclipse.ui.edit.delete"
label="%command.label.52"
style="push">
</command>
label="%command.label.54"
style="push">
</command>
- <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">
</handler>
<handler
class="eu.etaxonomy.taxeditor.editor.view.derivate.handler.DeleteDerivateHandler"
- commandId="eu.etaxonomy.taxeditor.editor.view.derivate.command.delete">
+ commandId="org.eclipse.ui.edit.delete">
<activeWhen>
<with
variable="activePartId">
</reference>
</activeWhen>
</handler>
+ <handler
+ class="eu.etaxonomy.taxeditor.handler.defaultHandler.OpenReferencingObjectsView"
+ commandId="eu.etaxonomy.taxeditor.openReferencingObjectsView">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
</extension>
<extension
name="%extension.name"
name="%command.name.41">
</command>
<command
- defaultHandler="eu.etaxonomy.taxeditor.editor.handler.OpenTaxonEditorHandler"
- id="eu.etaxonomy.taxeditor.editor.openTaxonEditor"
+ defaultHandler="eu.etaxonomy.taxeditor.editor.handler.defaultHandler.DefaultOpenTaxonEditorForTaxonHandler"
+ id="eu.etaxonomy.taxeditor.editor.openTaxonEditorForTaxon"
name="%command.name.42">
<commandParameter
- id="eu.etaxonomy.taxeditor.editor.taxonParameter"
+ id="eu.etaxonomy.taxeditor.editor.openTaxonEditorForTaxon.uuid"
name="%commandParameter.name"
optional="false"
- typeId="eu.etaxonomy.taxeditor.editor.taxonParameterType">
+ typeId="eu.etaxonomy.taxeditor.uuidParameterType">
+ </commandParameter>
+ </command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.editor.handler.defaultHandler.DefaultOpenTaxonEditorForTaxonNodeHandler"
+ id="eu.etaxonomy.taxeditor.editor.openTaxonEditorForTaxonNode"
+ name="Open Taxon Editor for taxonnode">
+ <commandParameter
+ id="eu.etaxonomy.taxeditor.editor.openTaxonEditorForTaxonNode.uuid"
+ name="taxon node uuid"
+ optional="true"
+ typeId="eu.etaxonomy.taxeditor.uuidParameterType">
</commandParameter>
</command>
- <commandParameterType
- converter="eu.etaxonomy.taxeditor.editor.handler.TaxonParameterConverter"
- id="eu.etaxonomy.taxeditor.editor.taxonParameterType"
- type="eu.etaxonomy.cdm.model.taxon.TaxonBase">
- </commandParameterType>
<command
defaultHandler="eu.etaxonomy.taxeditor.editor.view.derivate.handler.DeleteDerivateHandler"
id="eu.etaxonomy.taxeditor.editor.derivate.deepDelete"
defaultHandler="eu.etaxonomy.taxeditor.editor.handler.OpenDerivateViewHandler"
id="eu.etaxonomy.taxeditor.editor.openSpecimenEditor"
name="Open Derivative Editor">
- <commandParameter
- id="eu.etaxonomy.taxeditor.specimenUuidParameter"
- name="Specimen UUID parameter"
- optional="true"
- typeId="eu.etaxonomy.taxeditor.specimenUuidParameterType">
- </commandParameter>
</command>
<command
defaultHandler="eu.etaxonomy.taxeditor.editor.view.derivate.handler.ListenToSelectionChangeHandler"
id="eu.etaxonomy.taxeditor.editor.derivative.listenToSelectionChange"
name="Link with taxon selection">
</command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.editor.view.derivate.handler.SingleReadHandler"
+ id="eu.etaxonomy.taxeditor.editor.derivative.copySingleReadToClipBoard"
+ name="Copy SingleRead to clipboard">
+ </command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.editor.view.derivate.handler.SingleReadHandler"
+ id="eu.etaxonomy.taxeditor.editor.derivative.reuseSingleRead"
+ name="Reuse SingleRead">
+ </command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.editor.view.derivate.handler.SingleReadHandler"
+ id="eu.etaxonomy.taxeditor.editor.derivative.removeSingleReadFromSequence"
+ name="Remove SingleRead from sequence">
+ </command>
</extension>
- <extension
- point="org.eclipse.ui.commands">
- <commandParameterType
- converter="eu.etaxonomy.taxeditor.handler.UuidParameterConverter"
- id="eu.etaxonomy.taxeditor.specimenUuidParameterType"
- type="java.util.UUID">
- </commandParameterType>
- </extension>
<extension
point="org.eclipse.core.expressions.definitions">
<definition
</test>
</with>
</definition>
+ <definition
+ id="isSingleReadReusableHere">
+ <with
+ variable="selection">
+ <test
+ property="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester.isSingleReadReusableHere">
+ </test>
+ </with>
+ </definition>
+ <definition
+ id="isSingleReadReused">
+ <with
+ variable="selection">
+ <test
+ property="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester.isSingleReadReused">
+ </test>
+ </with>
+ </definition>
</extension>
<extension
point="org.eclipse.core.expressions.propertyTesters">
class="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester"
id="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester"
namespace="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester"
- properties="isSequence,isSingleRead"
+ properties="isSequence,isSingleRead,isSingleReadReusableHere,isSingleReadReused"
type="org.eclipse.jface.viewers.IStructuredSelection">
</propertyTester>
</extension>
</extension>
<extension
point="eu.etaxonomy.taxeditor.store.cdmViewer">
- <cdmViewer
- class="eu.etaxonomy.taxeditor.editor.EditorCdmViewer">
- </cdmViewer>
+ <viewCommandMapping
+ commandId="eu.etaxonomy.taxeditor.editor.openTaxonEditorForTaxonNode"
+ selection="eu.etaxonomy.cdm.model.taxon.TaxonNode"
+ viewerName="Taxon Editor">
+ </viewCommandMapping>
+ <viewCommandMapping
+ commandId="eu.etaxonomy.taxeditor.editor.openTaxonEditorForTaxon"
+ selection="eu.etaxonomy.cdm.model.taxon.TaxonBase"
+ viewerName="TaxonEditor">
+ </viewCommandMapping>
</extension>
</plugin>