</run>
</application>
</extension>
- <extension
- point="org.eclipse.ui.views">
- <view
- allowMultiple="false"
- class="eu.etaxonomy.taxeditor.navigation.key.polytomous.PolytomousKeyViewPart"
- id="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart"
- name="%view.name.1"
- restorable="true">
- </view>
- </extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
</visibleWhen>
</dynamic>
</menuContribution>
- <menuContribution
- locationURI="menu:eu.etaxonomy.taxeditor.menu.showView?before=eu.etaxonomy.taxeditor.editor.showViewMenu">
- <command
- commandId="org.eclipse.ui.views.showView"
- label="%command.label.0"
- style="push">
- <parameter
- name="org.eclipse.ui.views.showView.viewId"
- value="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
- </parameter>
- <visibleWhen
- checkEnabled="true">
- <reference
- definitionId="isCdmStoreConnected">
- </reference>
- </visibleWhen>
- </command>
- </menuContribution>
- <menuContribution
- locationURI="menu:eu.etaxonomy.navigation.menu.new">
- <command
- commandId="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
- label="%command.label.13"
- style="push">
- <visibleWhen
- checkEnabled="true">
- <reference
- definitionId="isCdmStoreConnected">
- </reference>
- </visibleWhen>
- </command>
- <separator
- name="eu.etaxonomy.navigation.menu.new.separator1"
- visible="true">
- </separator>
- <command
- commandId="eu.etaxonomy.taxeditor.navigation.create.classification"
- id="eu.etaxonomy.taxeditor.navigation.create.classificationHandler"
- label="%command.label.14"
- style="push">
- <visibleWhen
- checkEnabled="true">
- <reference
- definitionId="isCdmStoreConnected">
- </reference>
- </visibleWhen>
- </command>
- </menuContribution>
- <menuContribution
- locationURI="popup:eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
- <command
- commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
- label="%command.label.15"
- style="push">
- </command>
- <dynamic
- class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
- id="eu.etaxonomy.taxeditor.navigation.polytomous.cdmViewerContextMenu">
- </dynamic>
- <command
- commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
- label="%command.label.16"
- style="push">
- </command>
- <menu
- label="%menu.label.0">
- <command
- commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyList"
- label="%command.label.17"
- style="push">
- </command>
- <command
- commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes"
- label="%command.label.18"
- style="push">
- </command>
- </menu>
- <separator
- name="eu.etaxonomy.eu.polytomousKeyView.separator2"
- visible="true">
- </separator>
- <command
- 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.key.polytomous.handler.NewPolytomousKeyHandler"
- id="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
- name="%command.name.6">
- </command>
- <command
- defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.EditPolytomousKeyNodesHandler"
- id="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
- name="%command.name.7">
- </command>
- <command
- defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RefreshPolytomousKeyListHandler"
- id="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyList"
- name="%command.name.8">
- </command>
- <command
- defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RefreshPolytomousKeyNodesHandler"
- id="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes"
- name="%command.name.9">
- </command>
- <command
- defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.DeleteHandler"
- id="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete"
- name="%command.name.11">
- </command>
- </extension>
- <extension
- point="org.eclipse.ui.handlers">
- <handler
- class="eu.etaxonomy.taxeditor.navigation.navigator.handler.DeleteHandler"
- commandId="eu.etaxonomy.taxeditor.navigation.navigator.command.delete">
- <activeWhen>
- <with
- variable="activePartId">
- <equals
- value="eu.etaxonomy.taxeditor.navigation.navigator">
- </equals>
- </with>
- </activeWhen>
- </handler>
- <handler
- class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.DeleteHandler"
- commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete">
- <activeWhen>
- <with
- variable="activePartId">
- <equals
- value="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
- </equals>
- </with>
- </activeWhen>
- </handler>
- <handler
- class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RemotingDeletePolytomousKeyHandler"
- commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete">
- <activeWhen>
- <reference
- definitionId="isRemoting">
- </reference>
- </activeWhen>
- </handler>
- <handler
- class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RemotingUpdatePolytomousKeyAllNodesHandler"
- commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes">
- <activeWhen>
- <reference
- definitionId="isRemoting">
- </reference>
- </activeWhen>
- </handler>
- <handler
- class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RemotingEditPolytomousKeyNodesHandler"
- commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes">
- <activeWhen>
- <reference
- definitionId="isRemoting">
- </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>
- </extension>
- <extension
- point="org.eclipse.ui.navigator.navigatorContent">
- <navigatorContent
- contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationContentProvider"
- id="eu.etaxonomy.taxeditor.navigation.classificationContent"
- labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationLabelProvider"
- name="%navigatorContent.name">
- <triggerPoints>
- <instanceof
- value="eu.etaxonomy.taxeditor.navigation.navigator.Root">
- </instanceof>
- </triggerPoints>
- <possibleChildren>
- <instanceof
- value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
- </instanceof>
- </possibleChildren>
- <dropAssistant
- class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
- id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
- <possibleDropTargets></possibleDropTargets>
- </dropAssistant>
- </navigatorContent>
- <navigatorContent
- contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeContentProvider"
- id="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"
- labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeLabelProvider"
- name="%navigatorContent.name.0">
- <triggerPoints>
- <or>
- <instanceof
- value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
- </instanceof>
- <and>
- <instanceof
- value="eu.etaxonomy.cdm.model.taxon.Classification">
- </instanceof>
- <test
- forcePluginActivation="true"
- property="eu.etaxonomy.taxeditor.propertytests.hasTaxa">
- </test>
- </and>
- </or>
- </triggerPoints>
- <dropAssistant
- class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
- id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
- <possibleDropTargets>
- <or>
- <instanceof
- value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
- </instanceof>
- <instanceof
- value="eu.etaxonomy.cdm.model.taxon.Classification">
- </instanceof>
- </or>
- </possibleDropTargets>
- </dropAssistant>
- <possibleChildren>
- <instanceof
- value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
- </instanceof>
- </possibleChildren>
- </navigatorContent>
- <navigatorContent
- activeByDefault="false"
- contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymContentProvider"
- id="eu.etaxonomy.taxeditor.navigation.synonymContent"
- labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymLabelProvider"
- name="%navigatorContent.name.1"
- priority="highest">
- <triggerPoints>
- <and>
- <instanceof
- value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
- </instanceof>
- <test
- forcePluginActivation="true"
- property="eu.etaxonomy.taxeditor.propertytests.hasSynonyms">
- </test>
- </and>
- </triggerPoints>
- <possibleChildren>
- <instanceof
- value="eu.etaxonomy.cdm.model.taxon.Synonym">
- </instanceof>
- </possibleChildren>
- </navigatorContent>
- </extension>
- <extension
- point="org.eclipse.ui.navigator.viewer">
- <viewer
- viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
- <popupMenu
- id="eu.etaxonomy.taxeditor.navigation.navigatorpopup">
- </popupMenu>
- </viewer>
- <viewerContentBinding viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
- <includes>
- <contentExtension
- pattern="eu.etaxonomy.taxeditor.navigation.classificationContent">
- </contentExtension>
- <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"/>
- <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper"/>
- <contentExtension
- pattern="eu.etaxonomy.taxeditor.navigation.synonymContent">
- </contentExtension>
- </includes>
- </viewerContentBinding>
- <dragAssistant
- class="eu.etaxonomy.taxeditor.navigation.navigator.dnd.TaxonNavigatorDragAdapterAssistant"
- viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
- </dragAssistant>
- </extension>
- <extension
- point="org.eclipse.ui.navigator.linkHelper">
- <linkHelper
- class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonLinkHelper"
- id="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper">
- <selectionEnablement>
- <instanceof value="eu.etaxonomy.cdm.model.taxon.TaxonNode"/>
- </selectionEnablement>
- <editorInputEnablement>
- <instanceof value="eu.etaxonomy.taxeditor.editor.TaxonEditorInput"/>
- </editorInputEnablement>
- </linkHelper>
</extension>
<extension
point="org.eclipse.core.runtime.adapters">
class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
id="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
namespace="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
- properties="hasSynonyms, isClassification"
+ properties="hasSynonyms,isClassification,isUnplaced,isExcluded,noClassificationExists,isNotClassification"
type="java.lang.Object">
</propertyTester>
- <propertyTester
+ <!--<propertyTester
class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
id="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
namespace="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
namespace="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
properties="hasTaxa"
type="eu.etaxonomy.cdm.model.taxon.TaxonNode">
- </propertyTester>
+ </propertyTester>-->
<propertyTester
class="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
id="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isCdmStoreConnected">
</test>
</definition>
+ <definition
+ id="isCdmStoreNotConnected">
+ <not>
+ <test
+ property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isCdmStoreConnected">
+ </test>
+ </not>
+ </definition>
<definition
id="isRemoting">
<test
property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isStandAlone">
</test>
</definition>
+ <definition
+ id="isCdmStoreConnectedAndShowExperimental">
+ <and>
+ <reference
+ definitionId="isShowExperimentalFeatures">
+ </reference>
+ <reference
+ definitionId="isCdmStoreConnected">
+ </reference>
+ </and>
+ </definition>
+ <definition
+ id="isCdmStoreConnectedAndShowIOMenuEnabled">
+ <and>
+ <reference
+ definitionId="isShowIOMenuEnabled">
+ </reference>
+ <reference
+ definitionId="isCdmStoreConnected">
+ </reference>
+ </and>
+ </definition>
+ <definition
+ id="isClassification">
+ <test
+ property="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester.isClassification">
+ </test>
+ </definition>
+ <definition
+ id="isNotClassification">
+ <test
+ property="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester.isNotClassification">
+ </test>
+ </definition>
+ <definition
+ id="isUnplaced">
+ <test
+ property="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester.isUnplaced">
+ </test>
+ </definition>
+ <definition
+ id="isExcluded">
+ <test
+ property="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester.isExcluded">
+ </test>
+ </definition>
+ <definition
+ id="noClassificationExists">
+ <test
+ property="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester.noClassificationExists">
+ </test>
+ </definition>
</extension>
<extension
id="eu.etaxonomy.taxeditor.navigation.workbench.model"