</run>
</application>
</extension>
- <!--extension
- point="org.eclipse.ui.perspectives">
- <perspective
- class="eu.etaxonomy.taxeditor.editor.Perspective"
- id="eu.etaxonomy.taxeditor.editor.perspective"
- name="Perspective">
- </perspective>
- </extension-->
+ <extension
+ point="org.eclipse.core.runtime.adapters">
+ <factory
+ adaptableType="eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor"
+ class="eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditorAdapterFactory">
+ <adapter
+ type="eu.etaxonomy.taxeditor.editor.DuplicateArbitrator">
+ </adapter>
+ </factory>
+ </extension>
<extension
point="org.eclipse.ui.editors">
<editor
- class="eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor"
- icon="icons/edit_16x16.gif"
- id="eu.etaxonomy.taxeditor.editor.multipagetaxonview"
- name="Multitabbed Taxon Editor">
- </editor>
+ class="eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor"
+ icon="icons/edit_16x16.gif"
+ id="eu.etaxonomy.taxeditor.editor.multipagetaxonview"
+ name="Multitabbed Taxon Editor">
+ </editor>
<editor
class="eu.etaxonomy.taxeditor.editor.name.TaxonNameEditor"
- default="false"
+ default="true"
id="eu.etaxonomy.taxeditor.taxonNameEditor"
name="Taxon Name Editor">
</editor>
<editor
- class="eu.etaxonomy.taxeditor.editor.description.TaxonDescriptionEditor"
+ class="eu.etaxonomy.taxeditor.editor.descriptiontree.TaxonDescriptionTreeEditor"
default="false"
- id="eu.etaxonomy.taxeditor.taxonDescriptionEditor"
+ id="eu.etaxonomy.taxeditor.descriptiontreeeditor"
name="Taxon Description Editor">
</editor>
- <editor
- class="eu.etaxonomy.taxeditor.editor.images.TaxonImageEditor"
- default="false"
- id="eu.etaxonomy.taxeditor.taxonImageEditor"
- name="Taxon Image Editor">
- </editor>
+ </extension>
+ <extension
+ point="org.eclipse.ui.views">
+ <view
+ allowMultiple="false"
+ class="eu.etaxonomy.taxeditor.editor.view.detail.DetailsViewPart"
+ icon="icons/accessories-text-editor.png"
+ id="eu.etaxonomy.taxeditor.editor.forms.detailsView"
+ name="Details"
+ restorable="true">
+ </view>
+ <view
+ allowMultiple="false"
+ class="eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptiveViewPart"
+ icon="icons/address-book-new.png"
+ id="eu.etaxonomy.taxeditor.editor.view.description"
+ name="Descriptive"
+ restorable="true">
+ </view>
+ <view
+ allowMultiple="false"
+ class="eu.etaxonomy.taxeditor.editor.view.supplementaldata.SupplementalDataViewPart"
+ icon="icons/applications-office.png"
+ id="eu.etaxonomy.taxeditor.editor.view.supplementalData"
+ name="Supplemental Data"
+ restorable="true">
+ </view>
+ <view
+ allowMultiple="false"
+ class="eu.etaxonomy.taxeditor.editor.view.media.MediaViewPart"
+ icon="icons/camera-photo.png"
+ id="eu.etaxonomy.taxeditor.editor.view.media"
+ name="Media"
+ restorable="true">
+ </view>
+ </extension>
+ <extension
+ point="org.eclipse.ui.perspectiveExtensions">
+ <perspectiveExtension
+ targetID="eu.etaxonomy.taxeditor.application.perspective">
+ <view
+ id="eu.etaxonomy.taxeditor.editor.forms.detailsView"
+ ratio="0.7"
+ relationship="right"
+ relative="org.eclipse.ui.editorss">
+ </view>
+ <view
+ id="eu.etaxonomy.taxeditor.editor.view.description"
+ relationship="bottom"
+ relative="org.eclipse.ui.editorss">
+ </view>
+ <view
+ id="eu.etaxonomy.taxeditor.editor.view.media"
+ relationship="bottom"
+ relative="org.eclipse.ui.editorss">
+ </view>
+ <view
+ id="eu.etaxonomy.taxeditor.editor.view.supplementalData"
+ relationship="bottom"
+ relative="eu.etaxonomy.taxeditor.editor.forms.detailsView">
+ </view>
+ </perspectiveExtension>
+ </extension>
+ <extension
+ point="org.eclipse.ui.elementFactories">
+ <factory
+ class="eu.etaxonomy.taxeditor.editor.TaxonEditorInputFactory"
+ id="eu.etaxonomy.taxeditor.editor.TaxonEditorInputFactory">
+ </factory>
+ </extension>
+ <extension
+ point="org.eclipse.ui.menus">
+ <menuContribution
+ locationURI="menu:eu.etaxonomy.taxeditor.menu.showView">
+ <command
+ commandId="eu.etaxonomy.taxeditor.editor.commands.showDetailsView"
+ label="Details"
+ style="push">
+ </command>
+ <command
+ commandId="eu.etaxonomy.taxeditor.editor.commands.showTaxonDescriptions"
+ label="Descriptive"
+ style="push">
+ </command>
+ <command
+ commandId="eu.etaxonomy.taxeditor.editor.commands.showSupplementalDataView"
+ label="Supplemental"
+ style="push">
+ </command>
+ <command
+ commandId="eu.etaxonomy.taxeditor.editor.commands.showMedia"
+ label="Media"
+ style="push">
+ </command>
+ </menuContribution>
+ </extension>
+ <extension
+ point="org.eclipse.ui.commands">
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.editor.handler.ShowDetailsViewHandler"
+ id="eu.etaxonomy.taxeditor.editor.commands.showDetailsView"
+ name="Show Details">
+ </command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.editor.handler.ShowTaxonDescriptionsViewHandler"
+ id="eu.etaxonomy.taxeditor.editor.commands.showTaxonDescriptions"
+ name="Show Taxon Descriptions">
+ </command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.editor.handler.ShowSupplementalDataViewHandler"
+ id="eu.etaxonomy.taxeditor.editor.commands.showSupplementalDataView"
+ name="Show Suplemental Data">
+ </command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.editor.handler.ShowMediaViewHandler"
+ id="eu.etaxonomy.taxeditor.editor.commands.showMedia"
+ name="Show Media">
+ </command>
+ </extension>
+ <extension
+ point="org.eclipse.ui.menus">
+ <menuContribution
+ locationURI="menu:org.eclipse.ui.main.menu.navigate">
+ <command
+ commandId="eu.etaxonomy.taxeditor.editor.command.openParent"
+ label="Open Parent"
+ style="push">
+ </command>
+ </menuContribution>
+ </extension>
+ <extension
+ point="org.eclipse.ui.commands">
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.editor.handler.OpenParentHandler"
+ id="eu.etaxonomy.taxeditor.editor.command.openParent"
+ name="Open Parent">
+ </command>
</extension>
<extension
point="org.eclipse.ui.menus">
- <!--menuContribution
- locationURI="menu:org.eclipse.ui.main.menu">
- <menu
- id="eu.etaxonomy.taxeditor.ui.taxonMenu"
- label="Taxon">
- <visibleWhen
- checkEnabled="true">
- <reference
- definitionId="nameEditorActive">
- </reference>
- </visibleWhen>
- <command
- commandId="eu.etaxonomy.taxeditor.editor.name.createHeterotypicSynoym"
- label="Create Heterotypic Synonym"
- style="push">
- </command>
- <command
- commandId="eu.etaxonomy.taxeditor.editor.name.createHomotypicSynoym"
- label="Create Homotypic Synonym"
- style="push">
- </command>
- <separator
- name="separator1"
- visible="true">
- </separator>
- <menu
- label="Create Concept Relation">
- <visibleWhen>
- <and>
- <not>
- <reference
- definitionId="isSynonym">
- </reference>
- </not>
- <not>
- <reference
- definitionId="isMisapplication">
- </reference>
- </not>
- </and>
- </visibleWhen>
- <dynamic
- class="eu.etaxonomy.taxeditor.editor.handler.CreateConceptRelationMenu"
- id="eu.etaxonomy.taxeditor.editor.dynamicConceptRelationMenu">
- </dynamic>
- </menu>
- <menu
- label="Create Concept Relation">
- <dynamic
- class="eu.etaxonomy.taxeditor.editor.handler.AbstractDynamicConceptRelationMenu"
- id="eu.etaxonomy.taxeditor.editor.dynamicConceptRelationMenu">
- </dynamic>
- </menu>
- <command
- commandId="eu.etaxonomy.taxeditor.editor.name.createMisapplication"
- label="Create Misapplication"
- style="push">
- </command>
- <separator
- name="taxeditor-editor.separator2"
- visible="true">
- </separator>
- <command
- commandId="eu.etaxonomy.taxeditor.editor.description.createDescriptionElement"
- label="Create Description Element"
- style="push">
- </command>
- </menu>
- </menuContribution-->
<menuContribution
locationURI="popup:eu.etaxonomy.taxeditor.taxonNameEditor">
<menu
label="New">
- <command
- commandId="eu.etaxonomy.taxeditor.editor.name.createChildTaxon"
- label="Child Taxon"
- style="push">
- <visibleWhen>
- <reference
- definitionId="isAcceptedTaxon">
- </reference>
- </visibleWhen>
- </command>
<command
commandId="eu.etaxonomy.taxeditor.editor.name.createHeterotypicSynoym"
label="Heterotypic Synonym"
<menu
label="Concept Relation">
<visibleWhen>
- <and>
- <not>
- <reference
- definitionId="isSynonym">
- </reference>
- </not>
- <not>
- <reference
- definitionId="isMisapplication">
- </reference></not>
- </and>
+ <or>
+ <reference
+ definitionId="isAcceptedTaxon">
+ </reference>
+ <reference
+ definitionId="isConceptRelation">
+ </reference>
+ </or>
</visibleWhen>
<dynamic
class="eu.etaxonomy.taxeditor.editor.name.handler.CreateConceptRelationMenu"
label="Misapplication"
style="push">
<visibleWhen>
- <and>
- <not>
- <reference
- definitionId="isSynonym">
- </reference>
- </not>
- <not>
- <reference
- definitionId="isConceptRelation">
- </reference>
- </not>
- </and>
+ <or>
+ <reference
+ definitionId="isAcceptedTaxon">
+ </reference>
+ <reference
+ definitionId="isMisapplication">
+ </reference>
+ </or>
</visibleWhen>
</command>
</menu>
+ <command
+ commandId="eu.etaxonomy.taxeditor.editor.name.changeAcceptedToSynonym"
+ label="Change Accepted Taxon to Synonym"
+ style="push">
+ <visibleWhen>
+ <reference
+ definitionId="isAcceptedTaxon">
+ </reference>
+ </visibleWhen>
+ </command>
<menu
label="Change To">
<command
visible="true">
</separator>
<command
- commandId="eu.etaxonomy.taxeditor.editor.name.deleteTaxonBase"
+ commandId="org.eclipse.ui.edit.delete"
label="Delete"
style="push">
<visibleWhen>
- <not>
+ <or>
<reference
- definitionId="isAcceptedTaxon">
+ definitionId="isSynonym">
+ </reference>
+ <reference
+ definitionId="isMisapplication">
+ </reference>
+ <reference
+ definitionId="isConceptRelation">
</reference>
- </not>
+ </or>
</visibleWhen>
</command>
<separator
name="taxeditor-editor.separator2"
visible="true">
</separator>
- <!--command
- commandId="eu.etaxonomy.taxeditor.editor.name.moveTaxon"
- label="Move Taxon"
- style="push">
- <visibleWhen>
- <reference
- definitionId="isAcceptedTaxon">
- </reference>
- </visibleWhen>
- </command-->
- <command
- commandId="eu.etaxonomy.taxeditor.editor.name.setBasionym"
- id="Set Basionym"
- style="push">
+ <dynamic
+ class="eu.etaxonomy.taxeditor.editor.name.handler.GroupBasionymContributionItem"
+ id="taxeditor-editor.dynamic.setBasionym">
<visibleWhen>
- <reference
- definitionId="isSynonym">
- </reference>
+ <or>
+ <reference
+ definitionId="isAcceptedTaxon">
+ </reference>
+ <reference
+ definitionId="isSynonym">
+ </reference>
+ </or>
</visibleWhen>
- </command>
+ </dynamic>
<command
- commandId="eu.etaxonomy.taxeditor.editor.name.removeBasionym"
- id="Remove Basionym"
+ commandId="eu.etaxonomy.taxeditor.editor.name.swapSynonymAndAccepted"
+ label="Swap Synonym With Accepted"
style="push">
<visibleWhen>
<reference
</reference>
</visibleWhen>
</command>
+ <separator
+ name="taxeditor-editor.separator3"
+ visible="true">
+ </separator>
<command
- commandId="eu.etaxonomy.taxeditor.editor.name.swapSynonymAndAccepted"
- label="Swap Synonym And Accepted"
+ commandId="eu.etaxonomy.taxeditor.editor.commands.showDetailsView"
+ label="Show Details"
style="push">
- <visibleWhen>
- <reference
- definitionId="isSynonym">
- </reference>
- </visibleWhen>
</command>
<separator
- name="taxeditor-editor.separator3"
+ name="taxeditor-editor.separator4"
visible="true">
</separator>
<command
style="push">
</command>
</menuContribution>
- <menuContribution
- locationURI="popup:eu.etaxonomy.taxeditor.taxonDescriptionEditor">
- <menu
- label="New">
- <dynamic
- class="eu.etaxonomy.taxeditor.editor.description.DynamicFeatureMenu"
- id="eu.etaxonomy.taxeditor.dynamicFeatureMenu">
- </dynamic>
- </menu>
- <separator
- name="eu.etaxonomy.taxeditor.taxonDescriptionEditor.separator.afterNew"
- visible="true">
- </separator>
- <command
- commandId="eu.etaxonomy.taxeditor.editor.name.deleteDescriptionElement"
- 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.taxonImageEditor">
- <command
- commandId="eu.etaxonomy.taxeditor.editor.description.createImage"
- label="New"
- style="push">
- </command>
- <separator
- name="eu.etaxonomy.taxeditor.taxonImageEditor.separator.afterNew"
- visible="true">
- </separator>
- <command
- commandId="eu.etaxonomy.taxeditor.editor.description.deleteImage"
- label="Delete"
- style="push">
- </command>
- <separator
- name="eu.etaxonomy.taxeditor.taxonImageEditor.separator.afterDelete"
- visible="true">
- </separator>
- <command
- commandId="org.eclipse.ui.file.save"
- label="Save"
- style="push">
- </command>
- </menuContribution>
- <menuContribution
- locationURI="menu:org.eclipse.ui.main.menu.file?before=eu.etaxonomy.taxeditor.application.filemenu.separator">
- <command
- commandId="eu.etaxonomy.taxeditor.editor.newTaxon"
- label="New Root Taxon"
- style="push">
- </command>
- <separator
- name="eu.etaxonomy.taxeditor.ui.file.separator1"
- visible="true">
- </separator>
- <command
- commandId="org.eclipse.ui.file.close"
- label="Close"
- style="push">
- </command>
- <command
- commandId="org.eclipse.ui.file.closeAll"
- label="Close All"
- style="push">
- </command>
- <separator
- name="eu.etaxonomy.taxeditor.ui.file.separator2"
- visible="true">
- </separator>
- <command
- commandId="org.eclipse.ui.file.save"
- label="Save"
- style="push">
- </command>
- <command
- commandId="org.eclipse.ui.file.saveAll"
- label="Save All"
- style="push">
- </command>
- </menuContribution>
- <menuContribution
- locationURI="menu:eu.etaxonomy.taxeditor.menu.showView">
- <command
- commandId="eu.etaxonomy.taxeditor.editor.command.showPropertySheetView"
- label="Property Sheet"
- style="push">
- </command>
- </menuContribution>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
- class="eu.etaxonomy.taxeditor.editor.handler.SaveTaxonHandler"
- commandId="org.eclipse.ui.file.save">
- </handler>
- <handler
- class="eu.etaxonomy.taxeditor.editor.handler.SaveAllHandler"
- commandId="org.eclipse.ui.file.saveAll">
- </handler>
- <handler
- class="eu.etaxonomy.taxeditor.editor.name.handler.RemoveBasionymHandler"
- commandId="eu.etaxonomy.taxeditor.editor.name.removeBasionym">
+ 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>
- <reference
- definitionId="isGroupBasionym">
- </reference>
+ <count
+ value="-1">
+ </count>
</enabledWhen>
</handler>
<handler
- class="eu.etaxonomy.taxeditor.editor.name.handler.SetBasionymHandler"
- commandId="eu.etaxonomy.taxeditor.editor.name.setBasionym">
- <enabledWhen>
- <not>
+ class="eu.etaxonomy.taxeditor.editor.name.handler.DeleteTaxonBaseHandler"
+ commandId="org.eclipse.ui.edit.delete">
+ <activeWhen>
+ <and>
+ <not>
+ <reference
+ definitionId="isAcceptedTaxon">
+ </reference>
+ </not>
<reference
- definitionId="isGroupBasionym">
+ definitionId="isTaxonBase">
</reference>
- </not>
- </enabledWhen>
+ </and>
+ </activeWhen>
+ </handler>
+ <!--handler
+ class="eu.etaxonomy.taxeditor.editor.handler.SaveTaxonHandler"
+ commandId="org.eclipse.ui.file.save">
</handler>
+ <handler
+ class="eu.etaxonomy.taxeditor.editor.handler.SaveAllHandler"
+ commandId="org.eclipse.ui.file.saveAll">
+ </handler-->
</extension>
<extension
name="File Menu Commands"
id="eu.etaxonomy.taxeditor.editor.newTaxon"
name="New Taxon">
</command>
- <command
+ <!--command
defaultHandler="eu.etaxonomy.taxeditor.editor.handler.SaveTaxonHandler"
id="eu.etaxonomy.taxeditor.editor.saveTaxon"
name="Save">
defaultHandler="eu.etaxonomy.taxeditor.editor.handler.SaveAllHandler"
id="eu.etaxonomy.taxeditor.editor.saveAll"
name="Save All">
- </command>
- </extension>
- <extension
- point="org.eclipse.core.expressions.definitions">
- <definition
- id="nameEditorActive">
- <with
- variable="activeEditorId">
- <equals
- value="eu.etaxonomy.taxeditor.editor.multipagetaxonview">
- </equals>
- </with>
- </definition>
- <definition
- id="isAcceptedTaxon">
- <with
- variable="activeMenuSelection">
- <iterate>
- <instanceof
- value="eu.etaxonomy.taxeditor.propertysheet.name.AcceptedTaxonPropertySource">
- </instanceof>
- </iterate>
- </with>
- </definition>
- <definition
- id="isSynonym">
- <with
- variable="activeMenuSelection">
- <iterate>
- <instanceof
- value="eu.etaxonomy.taxeditor.propertysheet.name.SynonymPropertySource">
- </instanceof>
- </iterate>
- </with>
- </definition>
- <definition
- id="isGroupBasionym">
- <with
- variable="activeMenuSelection">
- <iterate>
- <instanceof
- value="eu.etaxonomy.taxeditor.editor.name.BasionymSynonymPropertySource">
- </instanceof>
- </iterate>
- </with>
- </definition>
- <definition
- id="isMisapplication">
- <with
- variable="activeMenuSelection">
- <iterate>
- <instanceof
- value="eu.etaxonomy.taxeditor.propertysheet.name.MisapplicationPropertySource">
- </instanceof>
- </iterate>
- </with>
- </definition>
- <definition
- id="isConceptRelation">
- <with
- variable="activeMenuSelection">
- <iterate>
- <instanceof
- value="eu.etaxonomy.taxeditor.propertysheet.name.ConceptPropertySource">
- </instanceof>
- </iterate>
- </with>
- </definition>
- <definition
- id="isNotGroupBasionym">
- <with
- variable="activeMenuSelection">
- <not>
- <iterate>
- <instanceof
- value="eu.etaxonomy.taxeditor.editor.name.BasionymSynonymPropertySource">
- </instanceof>
- </iterate>
- </not>
- </with>
- </definition>
+ </command-->
</extension>
<extension
name="Name Commands"
id="eu.etaxonomy.taxeditor.editor.name.moveTaxon"
name="Move Taxon">
</command-->
- <command
- defaultHandler="eu.etaxonomy.taxeditor.editor.handler.CreateChildTaxonHandler"
- id="eu.etaxonomy.taxeditor.editor.name.createChildTaxon"
- name="Create Child Taxon">
- </command>
<command
defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeToSynonymHandler"
id="eu.etaxonomy.taxeditor.editor.name.changeToSynonym"
name="Change To Synonym">
</command>
<command
- defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeToAcceptedTaxon"
+ defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeSynonymToAcceptedTaxonHandler"
id="eu.etaxonomy.taxeditor.editor.name.changeToAcceptedTaxon"
name="Change To Accepted Taxon">
</command>
<command
defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.SwapSynonymAndAcceptedHandler"
id="eu.etaxonomy.taxeditor.editor.name.swapSynonymAndAccepted"
- name="Swap Synonym And Accepted">
+ name="Swap Synonym With Accepted">
</command>
<command
+ defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.SetBasionymHandler"
id="eu.etaxonomy.taxeditor.editor.name.setBasionym"
- name="%command.name.17">
+ name="Set Basionym / Original Combination">
</command>
<command
+ defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.RemoveBasionymHandler"
id="eu.etaxonomy.taxeditor.editor.name.removeBasionym"
- name="%command.name.18">
- </command>
- </extension>
- <extension
- name="Description Commands"
- point="org.eclipse.ui.commands">
- <command
- defaultHandler="eu.etaxonomy.taxeditor.editor.description.handler.CreateDescriptionElementHandler"
- id="eu.etaxonomy.taxeditor.editor.description.createDescriptionElement"
- name="Create Description Element">
+ name="Remove Basionym / Original Combination">
</command>
<command
- defaultHandler="eu.etaxonomy.taxeditor.editor.description.handler.DeleteDescriptionElementHandler"
- id="eu.etaxonomy.taxeditor.editor.name.deleteDescriptionElement"
- name="Delete Description Element">
+ defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeAcceptedTaxonToSynonymHandler"
+ id="eu.etaxonomy.taxeditor.editor.name.changeAcceptedToSynonym"
+ name="Change Accepted Taxon to Synonym">
</command>
</extension>
<extension
- point="org.eclipse.ui.commands">
- <command
- defaultHandler="eu.etaxonomy.taxeditor.editor.images.handler.CreateImageHandler"
- id="eu.etaxonomy.taxeditor.editor.description.createImage"
- name="Create Image">
- </command>
- <command
- defaultHandler="eu.etaxonomy.taxeditor.editor.images.handler.DeleteImageHandler"
- id="eu.etaxonomy.taxeditor.editor.description.deleteImage"
- name="Delete Image">
- </command>
+ point="org.eclipse.core.expressions.definitions">
+ <definition
+ id="nameEditorActive">
+ <with
+ variable="activeEditorId">
+ <equals
+ value="eu.etaxonomy.taxeditor.editor.multipagetaxonview">
+ </equals>
+ </with>
+ </definition>
+ <definition
+ id="isAcceptedTaxon">
+ <with
+ variable="activeMenuSelection">
+ <test
+ property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isAcceptedTaxon">
+ </test>
+ </with>
+ </definition>
+ <definition
+ id="isSynonym">
+ <with
+ variable="activeMenuSelection">
+ <test
+ property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isSynonym">
+ </test>
+ </with>
+ </definition>
+ <definition
+ id="isMisapplication">
+ <with
+ variable="activeMenuSelection">
+ <test
+ property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isMisapplication">
+ </test>
+ </with>
+ </definition>
+ <definition
+ id="isConceptRelation">
+ <with
+ variable="activeMenuSelection">
+ <test
+ property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isConceptRelation">
+ </test>
+ </with>
+ </definition>
+ <definition
+ id="isTaxonBase">
+ <with
+ variable="activeMenuSelection">
+ <test
+ property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isTaxonBase">
+ </test>
+ </with>
+ </definition>
</extension>
<extension
- point="org.eclipse.ui.commands">
- <command
- defaultHandler="eu.etaxonomy.taxeditor.editor.handler.ShowPropertySheetHandler"
- id="eu.etaxonomy.taxeditor.editor.command.showPropertySheetView"
- name="Show Property Sheet">
- </command>
- </extension>
- <extension
- point="org.eclipse.ui.elementFactories">
- <factory
- class="eu.etaxonomy.taxeditor.editor.TaxonEditorInputFactory"
- id="eu.etaxonomy.taxeditor.editor.TaxonEditorInputFactory">
- </factory>
+ point="org.eclipse.core.expressions.propertyTesters">
+ <propertyTester
+ 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,isConceptRelation"
+ type="org.eclipse.jface.viewers.IStructuredSelection">
+ </propertyTester>
</extension>
+ <extension
+ point="org.eclipse.ui.menus">
+ <menuContribution
+ locationURI="popup:eu.etaxonomy.taxeditor.editor.view.description">
+ <command
+ commandId="eu.etaxonomy.taxeditor.description.commands.adddescription"
+ label="New Descriptive Data"
+ style="push">
+ </command>
+ <separator
+ name="eu.etaxonomy.taxeditor.taxonDescriptionEditor.separator3"
+ visible="true">
+ </separator>
+ <menu
+ label="New">
+ <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="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>
+ </extension>
<extension
- point="org.eclipse.ui.perspectiveExtensions">
- <perspectiveExtension
- targetID="eu.etaxonomy.taxeditor.application.perspective">
- <view
- closeable="true"
- id="org.eclipse.ui.views.PropertySheet"
- minimized="false"
- moveable="true"
- ratio="0.7"
- relationship="right"
- relative="org.eclipse.ui.editorss"
- showTitle="false"
- visible="true">
- </view>
- </perspectiveExtension>
+ point="org.eclipse.ui.bindings">
+ <scheme
+ description="The default key binding scheme for the Taxonomic Editor"
+ id="eu.etaxonomy.taxeditor.bindings.scheme.default"
+ name="Taxonomic Editor Default Key Bindings">
+ </scheme>
</extension>
+ <extension
+ point="org.eclipse.ui.handlers">
+ <handler
+ class="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.DeleteDescriptionHandler"
+ commandId="org.eclipse.ui.edit.delete">
+ <activeWhen>
+ <reference
+ definitionId="isDeletable">
+ </reference>
+ </activeWhen>
+ </handler>
+ </extension>
+ <extension
+ point="org.eclipse.ui.commands">
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.CreateDescriptionElementHandler"
+ id="eu.etaxonomy.taxeditor.editor.description.createDescriptionElement"
+ name="Create Description Element">
+ </command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.AddDescriptionHandler"
+ id="eu.etaxonomy.taxeditor.description.commands.adddescription"
+ name="New Description">
+ </command>
+ </extension>
+ <extension
+ point="org.eclipse.core.expressions.definitions">
+ <definition
+ id="isDeletable">
+ <with
+ variable="activeMenuSelection">
+ <test
+ property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDeletable">
+ </test>
+ </with>
+ </definition>
+ <definition
+ id="isMedia">
+ <with
+ variable="activeMenuSelection">
+ <test
+ property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isMedia">
+ </test>
+ </with>
+ </definition>
+ <definition
+ id="isDescription">
+ <with
+ variable="activeMenuSelection">
+ <test
+ property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDescription">
+ </test>
+ </with>
+ </definition>
+ <definition
+ id="isDescriptionElement">
+ <with
+ variable="activeMenuSelection">
+ <test
+ property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDescriptionElement">
+ </test>
+ </with>
+ </definition>
+ <definition
+ id="isFeatureNodeContainer">
+ <with
+ variable="activeMenuSelection">
+ <test
+ property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isFeatureNodeContainer">
+ </test>
+ </with>
+ </definition>
+ </extension>
+ <extension
+ point="org.eclipse.core.expressions.propertyTesters">
+ <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"
+ type="org.eclipse.jface.viewers.TreeSelection">
+ </propertyTester>
+ </extension>
+ <extension
+ point="org.eclipse.ui.commands">
+ <command
+ id="org.eclipse.ui.window.newEditor"
+ name="New Editor">
+ </command>
+ </extension>
+ <extension
+ point="org.eclipse.ui.menus">
+ <menuContribution
+ locationURI="popup:eu.etaxonomy.taxeditor.editor.view.media">
+ <command
+ commandId="taxeditor-editor.command.newimagegallery"
+ label="New Image Gallery"
+ style="push">
+ </command>
+ <separator
+ name="taxeditor-editor.separator1"
+ visible="true">
+ </separator>
+ <command
+ commandId="taxeditor-editor.newimage"
+ label="New Image"
+ style="push">
+ </command>
+ <command
+ commandId="taxeditor-editor.command.moveimgdown"
+ label="Move Image Up In List"
+ style="push">
+ <visibleWhen>
+ <reference
+ definitionId="isMedia">
+ </reference>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="taxeditor-editor.command.moveimgup"
+ label="Move Image Down In List"
+ style="push">
+ <visibleWhen>
+ <reference
+ definitionId="isMedia">
+ </reference>
+ </visibleWhen>
+ </command>
+ <separator
+ name="taxeditor-editor.separator2"
+ visible="true">
+ </separator>
+ <command
+ commandId="org.eclipse.ui.edit.delete"
+ label="Delete"
+ style="push">
+ </command>
+ <command
+ commandId="org.eclipse.ui.file.save"
+ label="Save"
+ style="push">
+ </command>
+ </menuContribution>
+ </extension>
+ <extension
+ point="org.eclipse.ui.commands">
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.editor.view.media.handler.MoveImageDownInListHandler"
+ id="taxeditor-editor.command.moveimgdown"
+ name="Move Image Down In List">
+ </command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.editor.view.media.handler.AddImageGalleryHandler"
+ id="taxeditor-editor.command.newimagegallery"
+ name="New Image Gallery">
+ </command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.editor.view.media.handler.CreateMediaHandler"
+ id="taxeditor-editor.newimage"
+ name="New Image">
+ </command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.editor.view.media.handler.MoveImageUpInListHandler"
+ id="taxeditor-editor.command.moveimgup"
+ name="Move Image Up In List">
+ </command>
+ </extension>
+ <extension
+ point="org.eclipse.ui.newWizards">
+ <wizard
+ category="eu.etaxonomy.taxeditor.new.category.cdm"
+ class="eu.etaxonomy.taxeditor.editor.newWizard.NewReferenceWizard"
+ hasPages="true"
+ id="eu.etaxonomy.taxeditor.new.reference"
+ name="Reference">
+ </wizard>
+ <wizard
+ category="eu.etaxonomy.taxeditor.new.category.cdm"
+ class="eu.etaxonomy.taxeditor.editor.newWizard.NewNonViralNameWizard"
+ hasPages="true"
+ id="eu.etaxonomy.taxeditor.new.nonViralName"
+ name="Name">
+ </wizard>
+ <wizard
+ category="eu.etaxonomy.taxeditor.new.category.cdm"
+ class="eu.etaxonomy.taxeditor.editor.newWizard.NewTeamWizard"
+ hasPages="true"
+ id="eu.etaxonomy.taxeditor.new.team"
+ name="Team">
+ </wizard>
+ <wizard
+ category="eu.etaxonomy.taxeditor.new.category.cdm"
+ class="eu.etaxonomy.taxeditor.editor.newWizard.NewPersonWizard"
+ hasPages="true"
+ id="eu.etaxonomy.taxeditor.new.person"
+ name="Person">
+ </wizard>
+ <wizard
+ category="eu.etaxonomy.taxeditor.new.category.cdm"
+ class="eu.etaxonomy.taxeditor.editor.newWizard.NewDerivedUnitBaseWizard"
+ hasPages="true"
+ id="eu.etaxonomy.taxeditor.new.specimen"
+ name="Specimen">
+ </wizard>
+ </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.reference"
+ label="Reference"
+ style="push">
+ </command>
+ <command
+ commandId="eu.etaxonomy.taxeditor.editor.command.new.name"
+ label="Name"
+ style="push">
+ </command>
+ <command
+ commandId="eu.etaxonomy.taxeditor.editor.command.new.team"
+ label="Team"
+ style="push">
+ </command>
+ <command
+ commandId="eu.etaxonomy.taxeditor.editor.command.new.person"
+ label="Person"
+ style="push">
+ </command>
+ <command
+ commandId="eu.etaxonomy.taxeditor.editor.command.new.specimen"
+ label="Specimen"
+ style="push">
+ </command>
+ </menuContribution>
+ </extension>
+ <extension
+ point="org.eclipse.ui.commands">
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewReferenceHandler"
+ id="eu.etaxonomy.taxeditor.editor.command.new.reference"
+ name="New Reference">
+ </command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewNameHandler"
+ id="eu.etaxonomy.taxeditor.editor.command.new.name"
+ name="New Name">
+ </command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewTeamHandler"
+ id="eu.etaxonomy.taxeditor.editor.command.new.team"
+ name="New Team">
+ </command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewPersonHandler"
+ id="eu.etaxonomy.taxeditor.editor.command.new.person"
+ name="New Person">
+ </command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewSpecimenHandler"
+ id="eu.etaxonomy.taxeditor.editor.command.new.specimen"
+ name="New Specimen">
+ </command>
+ </extension>
</plugin>