</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="taxeditor-bulkeditor.separator4"\r
- visible="true">\r
+ 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\r
- name="eu.etaxonomy.taxeditor.bulkeditor.separator1"\r
- visible="true">\r
- </separator>\r
+ <separator
+ name="eu.etaxonomy.taxeditor.bulkeditor.separator1"
+ visible="true">
+ </separator>
<command
commandId="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person"
label="%command.label.5"
</reference>
</visibleWhen>
</command>
- </menuContribution>
- <menuContribution
- allPopups="false"
- locationURI="popup:eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects">
<dynamic
class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
- id="eu.etaxonomy.taxeditor.referencingObjectsView.cdmViewerContextMenu">
+ id="eu.etaxonomy.taxeditor.bulkeditor.cdmViewerContextMenu">
</dynamic>
- <separator
- name="eu.etaxonomy.taxeditor.bulkeditor.separator1">
- </separator>
- </menuContribution>
- <menuContribution
- allPopups="false"
- locationURI="menu:eu.etaxonomy.taxeditor.menu.showView?after=org.eclipse.ui.views.showView.supplemental">
- <command
- commandId="eu.etaxonomy.taxeditor.openReferencingObjectsView"
- label="%command.label.OPEN_REFERENCING_OBJECTS_VIEW"
- style="push">
- </command>
+ <!--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="Bulk Editor Class"
- 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">
- </command>
- <command
- id="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person"
- name="%command.name.8">
+ id="eu.etaxonomy.taxeditor.openReferencingObjectsView"
+ name="%command.name.OPEN_REFERENCING_OBJECTS_VIEW">
</command>
<command
- id="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team"
- name="%command.name.10">
+ 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
defaultHandler="eu.etaxonomy.taxeditor.handler.defaultHandler.OpenReferencingObjectsView"
- id="eu.etaxonomy.taxeditor.openReferencingObjectsView"
+ id="eu.etaxonomy.taxeditor.openReferencingObjectsViewFromMenu"
name="%command.name.OPEN_REFERENCING_OBJECTS_VIEW">
</command>
<!--command
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>
</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 -->