<extension
point="org.eclipse.ui.menus">
<menuContribution
- locationURI="menu:org.eclipse.ui.main.menu.file">
+ locationURI="menu:eu.etaxonomy.taxeditor.workbench.menu.file">
<separator
name="eu.etaxonomy.taxeditor.navigation.recentnames.separator"
visible="true">
</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"
<reference
definitionId="isShowExperimentalFeatures">
</reference>
+ <test
+ property="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester.isClassification">
+ </test>
+ </and>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="eu.etaxonomy.taxeditor.navigation.cloneClassification"
+ label="Clone Classification"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <and>
<reference
- definitionId="isClassification">
+ definitionId="isShowExperimentalFeatures">
</reference>
+ <test
+ property="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester.isClassification">
+ </test>
</and>
</visibleWhen>
</command>
name="taxeditor-navigation.separator1"
visible="true">
</separator>
- <dynamic
- class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
- id="eu.etaxonomy.taxeditor.navigation.cdmViewerContextMenu">
- </dynamic>
- <separator
- name="eu.etaxonomy.taxeditor.navigation.separator2">
- </separator>
<command
commandId="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym"
label="%command.label.6"
<reference
definitionId="isTaxonNode">
</reference>
+ <not>
+ <test
+ property="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester.isClassification">
+ </test>
+ </not>
+ </and>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="eu.etaxonomy.taxeditor.navigator.command.update.setSecundumForSubtree"
+ label="%command.label.setSecForSubtree"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ <and>
+ <reference
+ definitionId="isCdmStoreConnected">
+ </reference>
</and>
</visibleWhen>
</command>
style="push">
<visibleWhen
checkEnabled="true">
- <reference
- definitionId="isTaxonNode">
- </reference>
+ <and>
+ <reference
+ definitionId="isTaxonNode">
+ </reference>
+ <not>
+ <test
+ property="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester.isClassification">
+ </test>
+ </not>
+ </and>
</visibleWhen>
</command>
<command
<reference
definitionId="isTaxonNode">
</reference>
+ <not>
+ <test
+ property="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester.isClassification">
+ </test>
+ </not>
+
</and>
</visibleWhen>
</command>
name="taxeditor-navigation.separator2"
visible="true">
</separator>
- <!--command
- commandId="eu.etaxonomy.taxeditor.navigation.command.createChildTaxon"
- label="New Child"
- style="push">
- </command>
- <command
- commandId="eu.etaxonomy.taxeditor.navigation.command.quickCreateChildTaxon"
- label="Quick Add Child "
- style="push">
- </command-->
<command
commandId="org.eclipse.ui.file.import"
label="%command.label.8"
</reference></and>
</visibleWhen>
</command>
- </menuContribution>
- <menuContribution
- locationURI="toolbar:org.eclipse.ui.main.toolbar">
- <toolbar
- id="eu.etaxonomy.taxeditor.navigation.search.toolbar">
- <control
- class="eu.etaxonomy.taxeditor.navigation.search.SearchBar">
- </control>
- </toolbar>
+ <separator
+ name="eu.etaxonomy.taxeditor.navigation.separator2"
+ visible="true">
+ </separator>
+ <dynamic
+ class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
+ id="eu.etaxonomy.taxeditor.navigation.cdmViewerContextMenu">
+ </dynamic>
+ <!--command
+ commandId="eu.etaxonomy.taxeditor.navigation.command.createChildTaxon"
+ label="New Child"
+ style="push">
+ </command>
+ <command
+ commandId="eu.etaxonomy.taxeditor.navigation.command.quickCreateChildTaxon"
+ label="Quick Add Child "
+ style="push">
+ </command-->
</menuContribution>
<menuContribution
locationURI="menu:eu.etaxonomy.navigation.menu.new">
defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.ChangeAcceptedTaxonToSynonymHandler"
id="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym"
name="%command.name.5">
+ </command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.SetSecReferenceForSubtreeHandler"
+ id="eu.etaxonomy.taxeditor.navigator.command.update.setSecundumForSubtree"
+ name="%command.name.setSecForSubtree">
</command>
<command
defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewClassificationHandler"
id="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete"
name="%command.name.11">
</command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.CloneClassificationHandler"
+ id="eu.etaxonomy.taxeditor.navigation.cloneClassification"
+ name="Clone Classification">
+ </command>
</extension>
<extension
point="org.eclipse.ui.handlers">
definitionId="isRemoting">
</reference>
</activeWhen>
+ </handler>
+ <handler
+ class="eu.etaxonomy.taxeditor.navigation.navigator.handler.SetSecReferenceForSubtreeHandler"
+ commandId="eu.etaxonomy.taxeditor.navigator.command.update.setSecundumForSubtree">
+ <activeWhen>
+ <reference
+ definitionId="isRemoting">
+ </reference>
+ </activeWhen>
</handler>
<handler
class="eu.etaxonomy.taxeditor.navigation.navigator.handler.RemotingMoveFactualDataHandler"
</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.navigation.navigator">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
+ <handler
+ class="eu.etaxonomy.taxeditor.editor.handler.defaultHandler.DefaultOpenTaxonEditorForTaxonBaseHandler"
+ commandId="eu.etaxonomy.taxeditor.editor.openTaxonEditorForTaxon">
+ <activeWhen>
+ <and>
+ <not>
+ <reference
+ definitionId="isOrphanedTaxon">
+ </reference>
+ </not>
+ </and>
+ </activeWhen>
+ </handler>
</extension>
labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeLabelProvider"
name="%navigatorContent.name.0">
<triggerPoints>
- <or>
+ <or>
<instanceof
value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
</instanceof>
point="org.eclipse.core.expressions.propertyTesters">
<propertyTester
class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
- id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
- namespace="eu.etaxonomy.taxeditor.propertytests"
- properties="hasSynonyms"
- type="eu.etaxonomy.cdm.model.taxon.TaxonNode">
+ id="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
+ namespace="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
+ properties="hasSynonyms, isClassification"
+ type="java.lang.Object">
</propertyTester>
- <propertyTester
- class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
- id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
- namespace="eu.etaxonomy.taxeditor.propertytests"
+
+ <propertyTester
+ class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
+ id="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
+ namespace="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
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"
+ class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
+ id="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
+ namespace="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
properties="hasTaxa"
- type="eu.etaxonomy.cdm.model.taxon.Classification">
+ type="eu.etaxonomy.cdm.model.taxon.TaxonNode">
</propertyTester>
<propertyTester
class="eu.etaxonomy.taxeditor.preference.PreferencePropertyTester"
</iterate>
</with>
</definition>
- <definition
- id="isClassification">
- <with
- variable="selection">
- <iterate
- ifEmpty="false">
- <instanceof
- value="eu.etaxonomy.cdm.model.taxon.Classification">
- </instanceof>
- </iterate>
- </with>
- </definition>
+
<definition
id="isChecklistEditorEnabled">
<with
</test>
</definition>
</extension>
+ <extension
+ id="eu.etaxonomy.taxeditor.navigation.workbench.model"
+ name="Navigation Workbench Model"
+ point="org.eclipse.e4.workbench.model">
+ <fragment
+ apply="always"
+ uri="fragment.e4xmi">
+ </fragment>
+ </extension>
</plugin>