</extension>
<extension
point="org.eclipse.ui.editors">
- <editor
- class="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor"
- default="false"
- id="bulkeditor.editor"
- name="%editor.name">
- </editor>
- <editor
- class="eu.etaxonomy.taxeditor.nameditor.TaxonNameEditor"
- default="false"
- id="nameeditor.editor"
- name="%editor.name.0">
- </editor>
<editor
class="eu.etaxonomy.taxeditor.dataimport.DataImportEditor"
default="false"
<extension
point="org.eclipse.ui.menus">
<menuContribution
- locationURI="menu:org.eclipse.ui.main.menu.window?before=eu.etaxonomy.taxeditor.application.windowMenu.last">
- <menu
- id="bulkeditor.menus.openmenu"
- label="%menu.label">
- <visibleWhen
- checkEnabled="true">
- <reference
- definitionId="isCdmStoreConnected">
- </reference>
- </visibleWhen>
- </menu>
- <menu
- label="%menu.label.0">
- <visibleWhen
- checkEnabled="true">
- <reference
- definitionId="isCdmStoreConnected">
- </reference>
- </visibleWhen>
- </menu>
- </menuContribution>
- <menuContribution
- locationURI="menu:bulkeditor.menus.openmenu">
- <dynamic
- class="eu.etaxonomy.taxeditor.bulkeditor.command.OpenBulkEditorContributionItem"
- id="taxeditor-bulkeditor.dynamicopenmenu">
- <visibleWhen
- checkEnabled="true">
- <reference
- definitionId="isCdmStoreConnected">
- </reference>
- </visibleWhen>
- </dynamic>
- </menuContribution>
- <menuContribution
- locationURI="popup:#BulkEditorContext">
- <dynamic
- class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
- id="eu.etaxonomy.taxeditor.bulkeditor.cdmViewerContextMenu">
- </dynamic>
- <separator
- name="taxeditor-bulkeditor.separator1"
- visible="true">
- </separator>
+ locationURI="popup:bulkeditor.editor">
<menu
label="%menu.label.1">
<dynamic
</visibleWhen>
</menu>
<separator
- name="eu.etaxonomy.taxeditor.bulkeditor.separator1">
+ name="taxeditor-bulkeditor.separator4"
+ visible="true">
</separator>
<command
commandId="bulkeditor.commands.setmergetarget"
definitionId="isMergeEnabled">
</reference>
</visibleWhen>
- </command>
- <!--menuContribution
- locationURI="popup:org.eclipse.ui.popup.any"-->
+ </command>
<command
commandId="bulkeditor.commands.mergegroup"
label="%command.label.3"
</reference>
</visibleWhen>
</command>
+ <separator
+ name="eu.etaxonomy.taxeditor.bulkeditor.separator1"
+ visible="true">
+ </separator>
<command
commandId="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person"
label="%command.label.5"
</reference>
</visibleWhen>
</command>
+ <dynamic
+ class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
+ id="eu.etaxonomy.taxeditor.bulkeditor.cdmViewerContextMenu">
+ </dynamic>
+ <!--menuContribution
+ locationURI="popup:org.eclipse.ui.popup.any"-->
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.commands">
- <command
- defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.MergeGroupHandler"
- id="bulkeditor.commands.mergegroup"
- name="%command.name">
- </command>
- <command
- defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeTargetHandler"
- id="bulkeditor.commands.setmergetarget"
- name="%command.name.0">
- </command>
- <command
- defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.OpenBulkEditorHandler"
- id="taxeditor-bulkeditor.dynamicopenmenu"
- name="%command.name.1">
- <commandParameter
- id="taxeditor-bulkeditor.commandParameter.inputType"
- name="%commandParameter.name"
- values="eu.etaxonomy.taxeditor.bulkeditor.input.BulkEditorInputTypeValues">
- </commandParameter>
- </command>
- <command
- defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.NewObjectHandler"
- id="taxeditor-bulkeditor.dynamicnewobjectcommand"
- name="%command.name.2">
- </command>
- <command
- defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.DeleteObjectHandler"
- id="taxeditor-bulkeditor.dynamicdeleteobjectcommand"
- name="%command.name.3">
- </command>
- <command
- defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeCandidateHandler"
- id="bulkeditor.commands.setmergecandidate"
- name="%command.name.4">
- </command>
- <command
- defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.RemoveMergeCandidateHandler"
- id="bulkeditor.commands.removemergecandidate"
- name="%command.name.5">
- </command>
<command
defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMarkerFlagHandler"
id="taxeditor-bulkeditor.command.setMarkerFlag"
name="%command.name.6">
</command>
<command
- id="eu.etaxonomy.taxeditor.bulkeditor.delete"
- name="%command.name.7">
+ id="eu.etaxonomy.taxeditor.openReferencingObjectsView"
+ name="%command.name.OPEN_REFERENCING_OBJECTS_VIEW">
</command>
<command
- id="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person"
- name="%command.name.8">
+ id="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity"
+ name="Open bulk editor for identifiable entity">
+ <commandParameter
+ id="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity.uuid"
+ name="Identifiable Entity UUID"
+ optional="true"
+ typeId="eu.etaxonomy.taxeditor.uuidParameterType">
+ </commandParameter>
</command>
<command
- id="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team"
- name="%command.name.10">
- </command>
- <command
- id="eu.etaxonomy.taxeditor.openReferencingObjectsView"
- name="Open Referencing Objects View">
+ defaultHandler="eu.etaxonomy.taxeditor.handler.defaultHandler.OpenReferencingObjectsView"
+ id="eu.etaxonomy.taxeditor.openReferencingObjectsViewFromMenu"
+ name="%command.name.OPEN_REFERENCING_OBJECTS_VIEW">
</command>
<!--command
defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.NewEntityHandler"
name="merge_target_annotation">
</type>
</extension>
- <extension
- point="org.eclipse.ui.views">
- <view
- class="eu.etaxonomy.taxeditor.bulkeditor.referencingobjects.ReferencingObjectsView"
- id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"
- name="%view.name"
- restorable="false">
- </view>
- </extension>
<extension
point="org.eclipse.core.expressions.definitions">
<definition
</test>
</with>
</definition>
+ <definition
+ id="isBulkEditorSupported">
+ <with
+ variable="selection">
+ <test
+ property="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester.isBulkEditorSupported">
+ </test>
+ </with>
+ </definition>
+ <definition
+ id="isGroupEditor">
+ <with
+ variable="activeEditor">
+ <test
+ property="taxeditor-bulkeditor.propertyTester.isGroupEditor">
+ </test>
+ </with>
+ </definition>
</extension>
<extension
point="org.eclipse.core.expressions.propertyTesters">
properties="isTeam, isPerson"
type="java.lang.Object">
</propertyTester>
+ <propertyTester
+ class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester"
+ id="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester"
+ namespace="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester"
+ properties="isBulkEditorSupported"
+ type="org.eclipse.jface.viewers.IStructuredSelection">
+ </propertyTester>
</extension>
<extension
point="org.eclipse.ui.handlers">
</with>
</activeWhen>
</handler>
- <handler
- class="eu.etaxonomy.taxeditor.bulkeditor.handler.DeleteHandler"
- commandId="eu.etaxonomy.taxeditor.bulkeditor.delete">
- <activeWhen>
- <with
- variable="selection">
- <instanceof
- value="eu.etaxonomy.taxeditor.model.LineSelection">
- </instanceof>
- </with>
- </activeWhen>
- </handler>
- <handler
- class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertTeam2PersonHandler"
- commandId="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person">
- </handler>
- <handler
- class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertPerson2TeamHandler"
- commandId="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team">
- </handler>
- <handler
- class="eu.etaxonomy.taxeditor.handler.defaultHandler.OpenReferencingObjectsView"
- commandId="eu.etaxonomy.taxeditor.openReferencingObjectsView">
- <activeWhen>
- <with
- variable="activePartId">
- <equals
- value="bulkeditor.editor">
- </equals>
- </with>
- </activeWhen>
- </handler>
</extension>
<extension
<viewCommandMapping
commandId="eu.etaxonomy.taxeditor.openReferencingObjectsView"
selection="java.lang.Object"
- viewerName="Referencing Objects View">
+ viewerName="%viewCommandMapping.viewerName.REFERENCING_OBJECTS_VIEW">
+ </viewCommandMapping>
+ <viewCommandMapping
+ commandId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForTaxonNode"
+ selection="eu.etaxonomy.cdm.model.taxon.TaxonNode"
+ viewerName="%viewCommandMapping.viewerName.BULK_EDITOR">
</viewCommandMapping>
+ <viewCommandMapping
+ commandId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity"
+ selection="eu.etaxonomy.cdm.model.common.IdentifiableEntity"
+ viewerName="%viewCommandMapping.viewerName.BULK_EDITOR">
+ </viewCommandMapping>
+ </extension>
+ <extension
+ id="eu.etaxonomy.taxeditor.bulkeditor.workbench.model"
+ name="Bulk Editor Workbench Model"
+ point="org.eclipse.e4.workbench.model">
+ <fragment
+ apply="always"
+ uri="fragment.e4xmi">
+ </fragment>
</extension>
<!-- start set marker -->