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"
</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"
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>
</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"
<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
variable="activePartId">
<equals
- value="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyEditor">
+ value="eu.etaxonomy.taxeditor.editor.key">
</equals>
</with>
</activeWhen>
</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">
</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>
</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>
</extension>