class="eu.etaxonomy.taxeditor.navigation.search.SearchResultView"
icon="icons/system-search.png"
id="eu.etaxonomy.taxeditor.navigation.search.searchResultView"
- name="Search Result"
+ name="%view.name"
restorable="false">
</view>
<view
class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator"
icon="icons/preferences-system-windows.png"
id="eu.etaxonomy.taxeditor.navigation.navigator"
- name="Taxon Navigator"
+ name="%view.name.0"
restorable="true">
</view>
<view
allowMultiple="false"
class="eu.etaxonomy.taxeditor.navigation.key.polytomous.PolytomousKeyViewPart"
id="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart"
- name="Polytomous Keys"
+ name="%view.name.1"
restorable="true">
</view>
</extension>
locationURI="menu:eu.etaxonomy.taxeditor.menu.showView?before=eu.etaxonomy.taxeditor.editor.showViewMenu">
<command
commandId="org.eclipse.ui.views.showView"
- label="Taxon Navigator"
+ label="%command.label"
style="push">
<parameter
name="org.eclipse.ui.views.showView.viewId"
</command>
<command
commandId="org.eclipse.ui.views.showView"
- label="Polytomous Keys"
+ label="%command.label.0"
style="push">
<parameter
name="org.eclipse.ui.views.showView.viewId"
locationURI="popup:eu.etaxonomy.taxeditor.navigation.search.searchResultView">
<command
commandId="eu.etaxonomy.taxeditor.navigation.command.editTaxon"
- label="Edit"
+ label="%command.label.1"
style="push">
</command>
</menuContribution>
locationURI="popup:eu.etaxonomy.taxeditor.navigation.navigatorpopup">
<menu
id="eu.etaxonomy.navigation.menu.new"
- label="New">
+ label="%menu.label">
<command
- commandId="eu.etaxonomy.taxeditor.navigation.newTaxonNode"
- label="Taxon"
+ commandId="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
+ label="%command.label.2"
style="push">
</command>
<separator
visible="true">
</separator>
<command
- commandId="eu.etaxonomy.taxeditor.navigation.newClassification"
- id="eu.etaxonomy.taxeditor.navigation.newClassificationHandler"
- label="Classification"
+ commandId="eu.etaxonomy.taxeditor.navigation.create.classification"
+ id="eu.etaxonomy.taxeditor.navigation.create.classificationHandler"
+ label="%command.label.3"
style="push">
</command>
+ <visibleWhen
+ checkEnabled="true">
+ <reference
+ definitionId="isCdmStoreConnected">
+ </reference>
+ </visibleWhen>
</menu>
+ <command
+ commandId="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistViewHandler"
+ icon="icons/check.png"
+ label="%command.label.4"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <and>
+ <reference
+ definitionId="isChecklistEditorEnabled">
+ </reference>
+ <or>
+ <reference
+ definitionId="isClassification">
+ </reference>
+ <reference
+ definitionId="isTaxonNode">
+ </reference>
+ </or>
+ </and>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="eu.etaxonomy.taxeditor.navigation.navigator.handler.OpenFixClassificationHierarchyHandler"
+ label="%command.label.fixClassificationHierarchy"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <and>
+ <reference
+ definitionId="isShowExperimentalFeatures">
+ </reference>
+ <reference
+ definitionId="isClassification">
+ </reference>
+ </and>
+ </visibleWhen>
+ </command>
<separator
name="taxeditor-navigation.separator1"
visible="true">
</separator>
<command
- commandId="eu.etaxonomy.taxeditor.navigation.command.editSelection"
- label="Edit"
+ commandId="eu.etaxonomy.taxeditor.navigation.command.update.editSelection"
+ label="%command.label.5"
style="push">
<visibleWhen
checkEnabled="true">
</visibleWhen>
</command>
<command
- commandId="eu.etaxonomy.taxeditor.navigator.command.changeAcceptedToSynonym"
- label="Change Accepted Taxon to Synonym"
+ commandId="eu.etaxonomy.taxeditor.store.open"
+ label="Edit"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <with
+ variable="selection">
+ <reference
+ definitionId="isClassification">
+ </reference>
+ </with>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym"
+ label="%command.label.6"
style="push">
<visibleWhen
checkEnabled="true">
- <reference
- definitionId="isTaxonNode">
- </reference>
+ <and>
+ <reference
+ definitionId="isCdmStoreConnected">
+ </reference>
+ <reference
+ definitionId="isTaxonNode">
+ </reference>
+ </and>
</visibleWhen>
</command>
<command
- commandId="eu.etaxonomy.taxeditor.navigation.command.moveTaxon"
- label="Move Taxon (with child taxa)"
+ commandId="eu.etaxonomy.taxeditor.navigation.command.update.moveTaxon"
+ label="%command.label.7"
style="push">
<visibleWhen
checkEnabled="true">
- <reference
- definitionId="isTaxonNode">
- </reference>
+ <reference
+ definitionId="isTaxonNode">
+ </reference>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="eu.etaxonomy.taxeditor.navigation.moveFactualData"
+ label="%command.label.moveFactualData"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <and>
+ <reference
+ definitionId="isCdmStoreConnected">
+ </reference>
+ <reference
+ definitionId="isTaxonNode">
+ </reference>
+ </and>
</visibleWhen>
</command>
<separator
</command-->
<command
commandId="org.eclipse.ui.file.import"
- label="Import..."
+ label="%command.label.8"
style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <reference
+ definitionId="isCdmStoreConnected">
+ </reference>
+ </visibleWhen>
</command>
<command
commandId="org.eclipse.ui.file.export"
- label="Export..."
+ label="%command.label.9"
style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <reference
+ definitionId="isCdmStoreConnected">
+ </reference>
+ </visibleWhen>
</command>
<separator
name="taxeditor-navigation.separator4"
visible="true">
</separator>
<command
- commandId="org.eclipse.ui.edit.delete"
- label="Delete"
+ commandId="eu.etaxonomy.taxeditor.navigation.command.delete"
+ label="%command.label.10"
style="push">
- <visibleWhen>
- <not>
+ <visibleWhen
+ checkEnabled="true">
+ <and>
<reference
- definitionId="isSynonymNode">
+ definitionId="isCdmStoreConnected">
</reference>
- </not>
+ <not>
+ <reference
+ definitionId="isSynonymNode">
+ </reference>
+ </not>
+ </and>
</visibleWhen>
</command>
<separator
</separator>
<command
commandId="org.eclipse.ui.file.refresh"
- label="Refresh"
+ label="%command.label.11"
style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <reference
+ definitionId="isCdmStoreConnected">
+ </reference>
+ </visibleWhen>
</command>
<command
commandId="eu.etaxonomy.taxeditor.navigation.command.copyTaxonName"
- label="Copy"
+ label="%command.label.12"
style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <and>
+ <reference
+ definitionId="isCdmStoreConnected">
+ </reference>
+ <reference
+ definitionId="isTaxonNode">
+ </reference></and>
+ </visibleWhen>
</command>
</menuContribution>
<menuContribution
<menuContribution
locationURI="menu:eu.etaxonomy.navigation.menu.new">
<command
- commandId="eu.etaxonomy.taxeditor.navigation.newTaxonNode"
- label="Taxon"
+ commandId="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
+ label="%command.label.13"
style="push">
</command>
<separator
visible="true">
</separator>
<command
- commandId="eu.etaxonomy.taxeditor.navigation.newClassification"
- id="eu.etaxonomy.taxeditor.navigation.newClassificationHandler"
- label="Classification"
+ commandId="eu.etaxonomy.taxeditor.navigation.create.classification"
+ id="eu.etaxonomy.taxeditor.navigation.create.classificationHandler"
+ label="%command.label.14"
style="push">
</command>
</menuContribution>
locationURI="popup:eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
<command
commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
- label="New"
+ label="%command.label.15"
style="push">
</command>
<command
commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
- label="Edit"
+ label="%command.label.16"
style="push">
</command>
<menu
- label="Refresh">
+ label="%menu.label.0">
<command
commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyList"
- label="List"
+ label="%command.label.17"
style="push">
</command>
<command
commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes"
- label="Key Nodes"
+ label="%command.label.18"
style="push">
</command>
</menu>
visible="true">
</separator>
<command
- commandId="org.eclipse.ui.edit.delete"
- label="Delete"
+ commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete"
+ label="%command.label.19"
style="push">
</command>
</menuContribution>
</extension>
- <extension
- point="org.eclipse.ui.commands">
- <command
- defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewTaxonNodeHandler"
- id="eu.etaxonomy.taxeditor.navigation.newTaxonNode"
- name="New Taxon Node">
- </command>
- <command
- defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewClassificationHandler"
- id="eu.etaxonomy.taxeditor.navigation.newClassification"
- name="New Classification">
- </command>
- </extension>
<extension
point="org.eclipse.ui.commands">
<command
defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.EditHandler"
- id="eu.etaxonomy.taxeditor.navigation.command.editSelection"
- name="Edit">
+ id="eu.etaxonomy.taxeditor.navigation.command.update.editSelection"
+ name="%command.name.1">
</command>
<command
defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.MoveTaxonHandler"
- id="eu.etaxonomy.taxeditor.navigation.command.moveTaxon"
- name="Move Taxon">
+ id="eu.etaxonomy.taxeditor.navigation.command.update.moveTaxon"
+ name="%command.name.2">
</command>
<command
defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.RefreshTreeHandler"
id="org.eclipse.ui.file.refresh"
- name="Refresh">
+ name="%command.name.3">
</command>
<command
defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.CopyHandler"
id="eu.etaxonomy.taxeditor.navigation.command.copyTaxonName"
- name="Copy">
+ name="%command.name.4">
</command>
<command
defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.ChangeAcceptedTaxonToSynonymHandler"
- id="eu.etaxonomy.taxeditor.navigator.command.changeAcceptedToSynonym"
- name="Change Accepted Taxon to Synonym">
+ id="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym"
+ name="%command.name.5">
+ </command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewClassificationHandler"
+ id="eu.etaxonomy.taxeditor.navigation.create.classification"
+ name="%command.name.0">
+ </command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewTaxonNodeHandler"
+ id="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
+ name="%command.name">
</command>
- </extension>
- <extension
- point="org.eclipse.ui.commands">
<command
defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.NewPolytomousKeyHandler"
id="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
- name="New Polytomous Key">
+ name="%command.name.6">
</command>
<command
defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.EditPolytomousKeyNodesHandler"
id="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
- name="Edit Polytomous Key Nodes">
+ name="%command.name.7">
</command>
<command
defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RefreshPolytomousKeyListHandler"
id="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyList"
- name="Refresh Polytomous Key List">
+ name="%command.name.8">
</command>
<command
defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RefreshPolytomousKeyNodesHandler"
id="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes"
- name="Refresh Polytomous Key Nodes">
+ name="%command.name.9">
+ </command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.MoveFactualDataHandler"
+ id="eu.etaxonomy.taxeditor.navigation.moveFactualData"
+ name="%command.name.moveFactualData">
+ </command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.CreateClassificationHierarchyHandler"
+ id="eu.etaxonomy.taxeditor.navigation.navigator.handler.OpenFixClassificationHierarchyHandler"
+ name="%command.name.10">
+ </command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.DeleteHandler"
+ id="eu.etaxonomy.taxeditor.navigation.command.delete"
+ name="delete">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="eu.etaxonomy.taxeditor.navigation.navigator.handler.DeleteHandler"
- commandId="org.eclipse.ui.edit.delete">
+ commandId="eu.etaxonomy.taxeditor.navigation.navigator.command.delete">
<activeWhen>
<with
variable="activePartId">
</handler>
<handler
class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.DeleteHandler"
- commandId="org.eclipse.ui.edit.delete">
+ commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete">
<activeWhen>
<with
variable="activePartId">
class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator"
icon="icons/edit_16x16.gif"
id="eu.etaxonomy.taxeditor.navigation.navigator"
- name="Taxonomic Tree"/>
+ name="%view.name.2"/>
</extension>
<extension
point="org.eclipse.ui.navigator.navigatorContent">
contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationContentProvider"
id="eu.etaxonomy.taxeditor.navigation.classificationContent"
labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationLabelProvider"
- name="Classification">
+ name="%navigatorContent.name">
<triggerPoints>
<instanceof
value="eu.etaxonomy.taxeditor.navigation.navigator.Root">
contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeContentProvider"
id="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"
labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeLabelProvider"
- name="TaxonNode">
+ name="%navigatorContent.name.0">
<triggerPoints>
<or>
<instanceof
</instanceof>
<and>
<instanceof
- value="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
+ value="eu.etaxonomy.cdm.model.taxon.Classification">
</instanceof>
<test
forcePluginActivation="true"
value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
</instanceof>
<instanceof
- value="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
+ value="eu.etaxonomy.cdm.model.taxon.Classification">
</instanceof>
</or>
</possibleDropTargets>
contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymContentProvider"
id="eu.etaxonomy.taxeditor.navigation.synonymContent"
labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymLabelProvider"
- name="Synonyms (experimental)"
+ name="%navigatorContent.name.1"
priority="highest">
<triggerPoints>
<and>
</adapter>
</factory>
</extension>
- <extension
+ <extension
point="org.eclipse.core.expressions.propertyTesters">
<propertyTester
class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
properties="hasTaxa"
type="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
</propertyTester>
+ <propertyTester
+ class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
+ id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
+ namespace="eu.etaxonomy.taxeditor.propertytests"
+ properties="hasTaxa"
+ type="eu.etaxonomy.cdm.model.taxon.Classification">
+ </propertyTester>
+ <propertyTester
+ class="eu.etaxonomy.taxeditor.preference.PreferencePropertyTester"
+ id="eu.etaxonomy.taxeditor.preferences.propertyTester"
+ namespace="eu.etaxonomy.taxeditor.preferences.propertyTester"
+ properties="isShowExperimentalFeatures, isChecklistEditorEnabled"
+ type="org.eclipse.jface.viewers.IStructuredSelection">
+ </propertyTester>
+ <propertyTester
+ class="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
+ id="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
+ namespace="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
+ properties="isCdmStoreConnected"
+ type="java.lang.Object">
+ </propertyTester>
</extension>
<extension
point="org.eclipse.core.expressions.definitions">
id="isTaxonNode">
<with
variable="selection">
- <iterate>
+ <iterate
+ ifEmpty="false">
<instanceof
value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
</instanceof>
</with>
</definition>
<definition
- id="isTaxonomicTree">
+ id="isSynonymNode">
<with
variable="selection">
- <iterate>
+ <iterate
+ ifEmpty="false">
<instanceof
- value="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
+ value="eu.etaxonomy.cdm.model.taxon.Synonym">
</instanceof>
</iterate>
</with>
</definition>
<definition
- id="isSynonymNode">
+ id="isClassification">
<with
variable="selection">
- <iterate>
+ <iterate
+ ifEmpty="false">
<instanceof
- value="eu.etaxonomy.cdm.model.taxon.Synonym">
+ value="eu.etaxonomy.cdm.model.taxon.Classification">
</instanceof>
</iterate>
</with>
</definition>
+ <definition
+ id="isChecklistEditorEnabled">
+ <with
+ variable="selection">
+ <test
+ property="eu.etaxonomy.taxeditor.preferences.propertyTester.isChecklistEditorEnabled">
+ </test>
+ </with>
+ </definition>
+ <definition
+ id="isCdmStoreConnected">
+ <test
+ property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isCdmStoreConnected">
+ </test>
+ </definition>
+ <definition
+ id="isShowExperimentalFeatures">
+ <with
+ variable="selection">
+ <test
+ property="eu.etaxonomy.taxeditor.preferences.propertyTester.isShowExperimentalFeatures">
+ </test>
+ </with>
+ </definition>
+ </extension>
+ <extension
+ point="eu.etaxonomy.taxeditor.store.cdmViewer">
+ <cdmViewer
+ class="eu.etaxonomy.taxeditor.navigation.NavigationCdmViewer">
+ </cdmViewer>
</extension>
</plugin>