+ <definition
+ id="canUPDATE">
+ <with
+ variable="selection">
+ <test
+ args="UPDATE"
+ property="eu.etaxonomy.taxeditor.security.permissionTester.hasPermissions">
+ </test>
+ </with>
+ </definition>
+ <definition
+ id="canDELETE">
+ <with
+ variable="selection">
+ <test
+ args="DELETE"
+ property="eu.etaxonomy.taxeditor.security.permissionTester.hasPermissions">
+ </test>
+ </with>
+ </definition>
+ <definition
+ id="canCREATE">
+ <with
+ variable="selection">
+ <test
+ args="CREATE"
+ property="eu.etaxonomy.taxeditor.security.permissionTester.hasPermissions">
+ </test>
+ </with>
+ </definition>
+ <definition
+ id="isUserLoggedIn">
+ <with
+ variable="eu.etaxonomy.taxeditor.security.user">
+ <instanceof
+ value="eu.etaxonomy.cdm.model.common.User">
+ </instanceof>
+ </with>
+ </definition>
+ <definition
+ id="hasROLE_USER_MANAGER">
+ <with
+ variable="eu.etaxonomy.taxeditor.security.userRoles">
+ <iterate
+ ifEmpty="false"
+ operator="or">
+ <or>
+ <equals
+ value="ROLE_ADMIN">
+ </equals>
+ <equals
+ value="ROLE_USER_MANAGER">
+ </equals>
+ </or>
+ </iterate>
+ </with>
+ </definition>
+ <definition
+ id="hasROLE_PROJECT_MANAGER">
+ <with
+ variable="eu.etaxonomy.taxeditor.security.userRoles">
+ <iterate
+ ifEmpty="false"
+ operator="or">
+ <or>
+ <equals
+ value="ROLE_ADMIN">
+ </equals>
+ <equals
+ value="ROLE_PROJECT_MANAGER">
+ </equals>
+ </or>
+ </iterate>
+ </with>
+ </definition>
+ <definition
+ id="hasROLE_PROJECT_MANAGER_AND_isCdmStoreConnected">
+ <and>
+ <reference
+ definitionId="hasROLE_PROJECT_MANAGER">
+ </reference>
+ <reference
+ definitionId="isCdmStoreConnected">
+ </reference>
+ </and>
+ </definition>
+ <definition
+ id="isChecklistEditorEnabled">
+ <test
+ property="eu.etaxonomy.taxeditor.preference.PreferencePropertyTester.isChecklistEditorEnabled">
+ </test>
+ </definition>
+</extension>
+<extension
+ point="org.eclipse.ui.activities">
+ <activity
+ description="%activity.description"
+ id="eu.etaxonomy.taxeditor.store.activityDelete"
+ name="%activity.name">
+ <enabledWhen>
+ <reference
+ definitionId="canDELETE">
+ </reference>
+ </enabledWhen>
+ </activity>
+ <activityPatternBinding
+ activityId="eu.etaxonomy.taxeditor.store.activityDelete"
+ pattern="eu\.etaxonomy\.taxeditor\..*/.*.delete">
+ </activityPatternBinding>
+ <activity
+ description="%activity.description.0"
+ id="eu.etaxonomy.taxeditor.store.activityUpdate"
+ name="%activity.name.0">
+ <enabledWhen>
+ <reference
+ definitionId="canUPDATE">
+ </reference>
+ </enabledWhen>
+ </activity>
+ <activityPatternBinding
+ activityId="eu.etaxonomy.taxeditor.store.activityUpdate"
+ pattern="eu\.etaxonomy\.taxeditor\..*/.*.command\.update\..*">
+ </activityPatternBinding>
+ <activity
+ description="%activity.description.1"
+ id="eu.etaxonomy.taxeditor.store.activityCreate"
+ name="%activity.name.1">
+ <enabledWhen>
+ <reference
+ definitionId="canDELETE">
+ </reference>
+ </enabledWhen>
+ </activity>
+ <activityPatternBinding
+ activityId="eu.etaxonomy.taxeditor.store.activityCreate"
+ pattern="eu\.etaxonomy\.taxeditor\..*/.*.command\.create\..*">
+ </activityPatternBinding>
+ <activity
+ description="%activity.description.2"
+ id="eu.etaxonomy.taxeditor.store.activityUserManagement"
+ name="%activity.name.2">
+ <enabledWhen>
+ <reference
+ definitionId="hasROLE_USER_MANAGER">
+ </reference>
+ </enabledWhen>
+ </activity>
+ <activityPatternBinding
+ activityId="eu.etaxonomy.taxeditor.store.activityUserManagement"
+ pattern="eu\.etaxonomy\.taxeditor\..*/.*.UserManagement">
+ </activityPatternBinding>
+ <activityPatternBinding
+ activityId="eu.etaxonomy.taxeditor.store.activityUserManagement"
+ pattern="eu\.etaxonomy\.taxeditor\..*/bulkeditor\.input\.group">
+ </activityPatternBinding>
+ <activity
+ description="%activity.description.3"
+ id="eu.etaxonomy.taxeditor.store.activityProjectManagement"
+ name="%activity.name.3">
+ <enabledWhen>
+ <reference
+ definitionId="hasROLE_PROJECT_MANAGER">
+ </reference>
+ </enabledWhen>
+ </activity>
+ <activityPatternBinding
+ activityId="eu.etaxonomy.taxeditor.store.activityProjectManagement"
+ pattern="eu\.etaxonomy\.taxeditor\..*/eu\.etaxonomy\.taxeditor\..*\.definedTerm.*">
+ </activityPatternBinding>
+ <activityPatternBinding
+ activityId="eu.etaxonomy.taxeditor.store.activityProjectManagement"
+ pattern="eu.etaxonomy.taxeditor.bulkeditor/bulkeditor.menus.openmenu"
+ isEqualityPattern="true">
+ </activityPatternBinding>
+ <activityPatternBinding
+ activityId="eu.etaxonomy.taxeditor.store.activityProjectManagement"
+ pattern="eu.etaxonomy.taxeditor.bulkeditor/eu.etaxonomy.taxeditor.editor.definedTerm"
+ isEqualityPattern="true">
+ </activityPatternBinding>
+</extension>
+<extension
+ point="org.eclipse.ui.services">
+ <sourceProvider
+ provider="eu.etaxonomy.taxeditor.security.AuthenticationSourceProvider">
+ <variable
+ name="eu.etaxonomy.taxeditor.security.userRoles"
+ priorityLevel="workbench">
+ </variable>
+ </sourceProvider>
+</extension>
+<extension
+ point="eu.etaxonomy.taxeditor.store.cdmViewer">
+ <viewCommandMapping
+ commandId="eu.etaxonomy.taxeditor.command.openClassificationWizard"
+ selection="eu.etaxonomy.cdm.model.taxon.TaxonNode"
+ viewerName="%viewCommandMapping.viewerName.CLASSIFICATION_WIZARD">
+ </viewCommandMapping>
+ <viewCommandMapping
+ commandId="eu.etaxonomy.taxeditor.command.openTaxonNodeWizard"
+ selection="eu.etaxonomy.cdm.model.taxon.TaxonNode"
+ viewerName="%viewCommandMapping.viewerName.TAXON_NODE_WIZARD">
+ </viewCommandMapping>
+</extension>
+<extension
+ id="eu.etaxonomy.taxeditor.store.workbench.model"
+ name="Store Workbench Model"
+ point="org.eclipse.e4.workbench.model">
+ <fragment
+ apply="always"
+ uri="fragment.e4xmi">
+ </fragment>
+</extension>
+<extension
+ point="eu.etaxonomy.taxeditor.store.preferencePage">
+<page
+ category="eu.etaxonomy.taxeditor.preferences.general"
+ class="eu.etaxonomy.taxeditor.preference.DebugPreferences"
+ id="eu.etaxonomy.taxeditor.preference.DebugPreferences"
+ name="%page.name.34">
+ </page>
+ <page
+ class="eu.etaxonomy.taxeditor.preference.TaxonomicEditorGeneralPreferences"
+ id="eu.etaxonomy.taxeditor.preferences.general"
+ name="%page.name">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.general"
+ class="eu.etaxonomy.taxeditor.preference.NameDetailsViewConfiguration"
+ id="eu.etaxonomy.taxeditor.preferences.nameDetails"
+ name="%page.name.36">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.general"
+ class="eu.etaxonomy.taxeditor.preference.DescriptionPreferences"
+ id="eu.etaxonomy.taxeditor.preferences.description"
+ name="%page.name.0">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.description"
+ class="eu.etaxonomy.taxeditor.preference.menu.FeatureMenuPreferences"
+ id="eu.etaxonomy.taxeditor.preferences.feature"
+ name="%page.name.1">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.description"
+ class="eu.etaxonomy.taxeditor.preference.menu.PresenceAbsenceMenuPreferences"
+ id="eu.etaxonomy.taxeditor.preferences.distributionStatus"
+ name="%page.name.2">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.general"
+ class="eu.etaxonomy.taxeditor.preference.TaxonomicPreferences"
+ id="eu.etaxonomy.taxeditor.preferences.taxonomic"
+ name="%page.name.3">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.taxonomic"
+ class="eu.etaxonomy.taxeditor.preference.menu.NomenclaturalCodePreferences"
+ id="eu.etaxonomy.taxeditor.preferences.nomenclatural"
+ name="%page.name.4">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.taxonomic"
+ class="eu.etaxonomy.taxeditor.preference.menu.RankMenuPreferences"
+ id="eu.etaxonomy.taxeditor.preferences.ranks"
+ name="%page.name.5">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.taxonomic"
+ class="eu.etaxonomy.taxeditor.preference.menu.NomenclaturalStatusTypeMenuPreferences"
+ id="eu.etaxonomy.taxeditor.preferences.nomenclaturalStatusType"
+ name="%page.name.6">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.taxonomic"
+ class="eu.etaxonomy.taxeditor.preference.menu.NameRelationshipTypeMenuPreferences"
+ id="eu.etaxonomy.taxeditor.preferences.nameRelationshipType"
+ name="%page.name.7">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.taxonomic"
+ class="eu.etaxonomy.taxeditor.preference.menu.TaxonRelationshipTypeMenuPreferences"
+ id="taxeditor-store.page1"
+ name="%page.name.8">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.taxonomic"
+ class="eu.etaxonomy.taxeditor.preference.menu.SpecimenTypeDesignationStatusMenuPreferences"
+ id="eu.etaxonomy.taxeditor.preferences.specimenTypeDesignationStatus"
+ name="%page.name.9">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.taxonomic"
+ class="eu.etaxonomy.taxeditor.preference.menu.NameTypeDesignationStatusMenuPreferences"
+ id="eu.etaxonomy.taxeditor.preferences.nameTypeDesignationStatus"
+ name="%page.name.13">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.language"
+ class="eu.etaxonomy.taxeditor.preference.menu.LanguageMenuPreferences"
+ id="eu.etaxonomy.taxeditor.preferences.languages"
+ name="%page.name.10">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.general"
+ class="eu.etaxonomy.taxeditor.preference.menu.MarkerTypeMenuPreferences"
+ id="eu.etaxonomy.taxeditor.preferences.markerTypes"
+ name="%page.name.11">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.general"
+ class="eu.etaxonomy.taxeditor.preference.menu.ExtensionTypeMenuPreferences"
+ id="eu.etaxonomy.taxeditor.preferences.extensionTypes"
+ name="%page.name.12">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.description"
+ class="eu.etaxonomy.taxeditor.preference.menu.NamedAreaTypeMenuPreferences"
+ id="eu.etaxonomy.taxeditor.preferences.namedAreaType"
+ name="%page.name.14">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.general"
+ class="eu.etaxonomy.taxeditor.preference.MatchingPreferences"
+ id="eu.etaxonomy.taxeditor.preferences.matching"
+ name="%page.name.15">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.matching"
+ class="eu.etaxonomy.taxeditor.preference.matching.NonViralNameMatchingPreference"
+ id="eu.etaxonomy.taxeditor.preferences.matching.nonViralName"
+ name="%page.name.16">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.matching"
+ class="eu.etaxonomy.taxeditor.preference.matching.ReferenceMatchingPreference"
+ id="eu.etaxonomy.taxeditor.preferences.matching"
+ name="%page.name.17">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.matching"
+ class="eu.etaxonomy.taxeditor.preference.matching.TeamOrPersonMatchingPreference"
+ id="eu.etaxonomy.taxeditor.preferences.matching"
+ name="%page.name.18">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.description"
+ class="eu.etaxonomy.taxeditor.preference.menu.StageMenuPreferences"
+ id="eu.etaxonomy.taxeditor.preferences.stage"
+ name="%page.name.19">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.description"
+ class="eu.etaxonomy.taxeditor.preference.menu.PreservationMethodMenuPreferences"
+ id="eu.etaxonomy.taxeditor.preferences.preservationMethod"
+ name="%page.name.20">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.feature"
+ class="eu.etaxonomy.taxeditor.preference.DefaultFeatureTreePreferenecs"
+ id="eu.etaxonomy.taxeditor.preferences.defaultFeatureTreePreferenecs"
+ name="%page.name.22">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preference.defaultlanguagepditorpreferencePage"
+ class="eu.etaxonomy.taxeditor.preference.LanguageRepresentationPreferencePage"
+ id="eu.etaxonomy.taxeditor.preferences.language"
+ name="%page.name.23">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.general"
+ class="eu.etaxonomy.taxeditor.preference.MobotOpenUrlPreferences"
+ id="eu.etaxonomy.taxeditor.preferences.mobotOpenUrl"
+ name="%page.name.24">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.general"
+ class="eu.etaxonomy.taxeditor.preference.TypeDesignationPreferences"
+ id="eu.etaxonomy.taxeditor.preferences.typeDesignation"
+ name="%page.name.25">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.general"
+ class="eu.etaxonomy.taxeditor.preference.SpecimenOrObservationPreferences"
+ id="eu.etaxonomy.taxeditor.preference.SpecimenOrObservationPreferences"
+ name="%page.name.26">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.general"
+ class="eu.etaxonomy.taxeditor.preference.MediaPreferences"
+ id="eu.etaxonomy.taxeditor.preference.MediaPreferences"
+ name="%page.name.27">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.general"
+ class="eu.etaxonomy.taxeditor.preference.ChecklistEditorGeneralPreference"
+ id="eu.etaxonomy.taxeditor.preference.ChecklistEditorGeneralPreferencePage"
+ name="%page.name.28">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.general"
+ class="eu.etaxonomy.taxeditor.preference.LanguageEditorPreferencePage"
+ id="eu.etaxonomy.taxeditor.preference.defaultlanguagepditorpreferencePage"
+ name="%page.name.30">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.general"
+ class="eu.etaxonomy.taxeditor.preference.OrderPreferences"
+ id="eu.etaxonomy.taxeditor.preference.TaxonNavigator"
+ name="%page.name.32">
+ </page>
+</extension>
+<extension
+ point="eu.etaxonomy.taxeditor.store.adminPreferencePage">
+ <!-- <page
+ class="eu.etaxonomy.taxeditor.preference.TaxonomicEditorGeneralAdminPreferences"
+ id="eu.etaxonomy.taxeditor.preferences.general"
+ name="%page.name">
+ </page> -->
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.general"
+ class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.ChecklistEditorGeneralPreference"
+ id="eu.etaxonomy.taxeditor.store.checklist"
+ name="%page.name.21">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.general"
+ class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.AbcdImportPreference"
+ id="eu.etaxonomy.taxeditor.store.abcdImportPreference"
+ name="%page.name.40">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.store.abcdImportPreference"
+ class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.AbcdImportProvider"
+ id="eu.etaxonomy.taxeditor.store.abcdImportProvider"
+ name="%page.name.41">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.general"
+ class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.SpecimenAdminPreferences"
+ id="eu.etaxonomy.taxeditor.store.specimenAdminPreferences"
+ name="%page.name.45">
+ </page>
+ <page
+
+ class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.GeneralAdminPreferencePage"
+ id="eu.etaxonomy.taxeditor.preferences.general"
+ name="%page.name.42">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.general"
+ class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.PublishFlagPreference"
+ id="eu.etaxonomy.taxeditor.preferences.publishFlagPreference"
+ name="%page.name.46">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.general"
+ class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.NomenclaturalCodePreferences"
+ id="eu.etaxonomy.taxeditor.store.page2"
+ name="%page.name.43">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.general"
+ class="eu.etaxonomy.taxeditor.databaseAdmin.preferencePage.NameDetailsViewConfiguration"
+ id="eu.etaxonomy.taxeditor.store.page3"
+ name="%page.name.44">
+ </page>