</extension>
<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
</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
name="%command.name.10">
</command>
<command
- defaultHandler="eu.etaxonomy.taxeditor.handler.defaultHandler.OpenReferencingObjectsView"
id="eu.etaxonomy.taxeditor.openReferencingObjectsView"
name="%command.name.OPEN_REFERENCING_OBJECTS_VIEW">
</command>
<command
- defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.defaultHandler.OpenBulkEditorForTaxonNodeHandler"
- id="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForTaxonNode"
- name="Open bulk editor for taxon node">
+ 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.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">
commandId="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person">
</handler>
<handler
- class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertPerson2TeamHandler"
+ class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertPerson2TeamRemotingHandler"
commandId="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team">
+ <activeWhen>
+ <reference
+ definitionId="isRemoting">
+ </reference>
+ </activeWhen>
+ </handler>
+ <handler
+ class="eu.etaxonomy.taxeditor.bulkeditor.handler.defaultHandler.OpenBulkEditorForIdentifiableEntity"
+ commandId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity">
+ <activeWhen>
+ <and>
+ <reference
+ definitionId="isBulkEditorSupported">
+ </reference>
+ <not>
+ <with
+ variable="activePartId">
+ <equals
+ value="bulkeditor.editor">
+ </equals>
+ </with>
+ </not>
+ </and>
+ </activeWhen>
</handler>
</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="Bulk Editor">
+ 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 -->