-<?xml version="1.0" encoding="UTF-8"?>\r
-<?eclipse version="3.4"?>\r
-<plugin>\r
-\r
- <extension\r
- id="application"\r
- point="org.eclipse.core.runtime.applications">\r
- <application>\r
- <run\r
- class="eu.etaxonomy.taxeditor.bulkeditor.Application">\r
- </run>\r
- </application>\r
- </extension>\r
- <extension\r
- point="org.eclipse.ui.editors">\r
- <editor\r
- class="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor"\r
- default="false"\r
- id="bulkeditor.editor"\r
- name="%editor.name">\r
- </editor>\r
- <editor\r
- class="eu.etaxonomy.taxeditor.nameditor.TaxonNameEditor"\r
- default="false"\r
- id="nameeditor.editor"\r
- name="%editor.name.0">\r
- </editor>\r
- <editor\r
- class="eu.etaxonomy.taxeditor.dataimport.DataImportEditor"\r
- default="false"\r
- id="eu.etaxonomy.taxeditor.dataimport.DataImportEditor"\r
- name="%editor.name.1">\r
- </editor>\r
- </extension>\r
- <extension\r
- point="org.eclipse.ui.menus">\r
- <menuContribution\r
- locationURI="menu:org.eclipse.ui.main.menu.window?before=eu.etaxonomy.taxeditor.application.windowMenu.last">\r
- <menu\r
- id="bulkeditor.menus.openmenu"\r
- label="%menu.label">\r
- <visibleWhen\r
- checkEnabled="true">\r
- <reference\r
- definitionId="isCdmStoreConnected">\r
- </reference>\r
- </visibleWhen>\r
- </menu>\r
- <menu\r
- label="%menu.label.0">\r
- <visibleWhen\r
- checkEnabled="true">\r
- <reference\r
- definitionId="isCdmStoreConnected">\r
- </reference>\r
- </visibleWhen>\r
- </menu>\r
- </menuContribution>\r
- <menuContribution\r
- locationURI="menu:bulkeditor.menus.openmenu">\r
- <dynamic\r
- class="eu.etaxonomy.taxeditor.bulkeditor.command.OpenBulkEditorContributionItem"\r
- id="taxeditor-bulkeditor.dynamicopenmenu">\r
- <visibleWhen\r
- checkEnabled="true">\r
- <reference\r
- definitionId="isCdmStoreConnected">\r
- </reference>\r
- </visibleWhen>\r
- </dynamic>\r
- <!--command\r
- commandId="taxeditor-nameeditor.commands.open"\r
- label="Open Name Editor"\r
- style="push">\r
- <visibleWhen\r
- checkEnabled="false">\r
- <reference\r
- definitionId="pigsFly">\r
- </reference>\r
- </visibleWhen>\r
- </command-->\r
- </menuContribution>\r
- <menuContribution\r
- locationURI="popup:#BulkEditorContext">\r
- <command\r
- commandId="eu.etaxonomy.taxeditor.navigation.command.update.editSelection"\r
- label="%command.label"\r
- style="push">\r
- <visibleWhen>\r
- <reference\r
- definitionId="isTaxonBulkEditorInput">\r
- </reference>\r
- </visibleWhen>\r
- </command>\r
- <separator\r
- name="taxeditor-bulkeditor.separator1"\r
- visible="true">\r
- </separator>\r
- <menu\r
- label="%menu.label.1">\r
- <dynamic\r
- class="eu.etaxonomy.taxeditor.bulkeditor.command.DynamicNewObjectMenu"\r
- id="eu.etaxonomy.taxeditor.bulkeditor.dynamicNewMenu">\r
- <visibleWhen\r
- checkEnabled="false">\r
- <reference\r
- definitionId="isCdmStoreConnected">\r
- </reference>\r
- </visibleWhen>\r
- </dynamic>\r
- <visibleWhen\r
- checkEnabled="true">\r
- <reference\r
- definitionId="isCdmStoreConnected">\r
- </reference>\r
- </visibleWhen>\r
- </menu>\r
- <separator\r
- name="eu.etaxonomy.taxeditor.bulkeditor.separator1">\r
- </separator>\r
- <command\r
- commandId="bulkeditor.commands.setmergetarget"\r
- label="%command.label.0"\r
- style="push">\r
- <visibleWhen>\r
- <reference\r
- definitionId="isMergeEnabled">\r
- </reference>\r
- </visibleWhen>\r
- </command>\r
- <command\r
- commandId="bulkeditor.commands.setmergecandidate"\r
- label="%command.label.1"\r
- style="push">\r
- <visibleWhen>\r
- <reference\r
- definitionId="isMergeEnabled">\r
- </reference>\r
- </visibleWhen>\r
- </command>\r
- <command\r
- commandId="bulkeditor.commands.removemergecandidate"\r
- label="%command.label.2"\r
- style="push">\r
- <visibleWhen>\r
- <reference\r
- definitionId="isMergeEnabled">\r
- </reference>\r
- </visibleWhen>\r
- </command>\r
- <!--menuContribution\r
- locationURI="popup:org.eclipse.ui.popup.any"--> \r
- <command\r
- commandId="bulkeditor.commands.mergegroup"\r
- label="%command.label.3"\r
- style="push">\r
- <visibleWhen>\r
- <reference\r
- definitionId="isMergeEnabled">\r
- </reference>\r
- </visibleWhen>\r
- </command>\r
- <separator\r
- name="taxeditor-bulkeditor.separator2"\r
- visible="true">\r
- </separator>\r
- <menu\r
- label="%menu.label.2">\r
- <dynamic\r
- class="eu.etaxonomy.taxeditor.bulkeditor.command.DynamicMarkerTypeEditingMenu"\r
- id="eu.etaxonomy.taxeditor.bulkeditor.dynamicMarkerTypeEditingMenu">\r
- </dynamic>\r
- <visibleWhen\r
- checkEnabled="true">\r
- <reference\r
- definitionId="isCdmStoreConnected">\r
- </reference>\r
- </visibleWhen>\r
- </menu>\r
- <separator\r
- name="taxeditor-bulkeditor.separator3"\r
- visible="true">\r
- </separator>\r
- <command\r
- commandId="eu.etaxonomy.taxeditor.bulkeditor.delete"\r
- label="%command.label.4"\r
- style="push">\r
- <visibleWhen\r
- checkEnabled="true">\r
- <reference\r
- definitionId="isCdmStoreConnected">\r
- </reference>\r
- </visibleWhen>\r
- </command>\r
- </menuContribution>\r
- </extension>\r
- <extension\r
- point="org.eclipse.ui.commands">\r
- <command\r
- defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.MergeGroupHandler"\r
- id="bulkeditor.commands.mergegroup"\r
- name="Merge Group">\r
- </command>\r
- <command\r
- defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeTargetHandler"\r
- id="bulkeditor.commands.setmergetarget"\r
- name="Set as Target for Group Merge">\r
- </command>\r
- <command\r
- defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.OpenBulkEditorHandler"\r
- id="taxeditor-bulkeditor.dynamicopenmenu"\r
- name="Dynamic Open Bulk Editor">\r
- <commandParameter\r
- id="taxeditor-bulkeditor.commandParameter.inputType"\r
- name="Bulk Editor Class"\r
- values="eu.etaxonomy.taxeditor.bulkeditor.input.BulkEditorInputTypeValues">\r
- </commandParameter>\r
- </command>\r
- <command\r
- defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.NewObjectHandler"\r
- id="taxeditor-bulkeditor.dynamicnewobjectcommand"\r
- name="Dynamic New Object">\r
- </command>\r
- <command\r
- defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.DeleteObjectHandler"\r
- id="taxeditor-bulkeditor.dynamicdeleteobjectcommand"\r
- name="Dynamic Delete Object">\r
- </command>\r
- <command\r
- defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeCandidateHandler"\r
- id="bulkeditor.commands.setmergecandidate"\r
- name="Set as Candidate for Group Merge">\r
- </command>\r
- <command\r
- defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.RemoveMergeCandidateHandler"\r
- id="bulkeditor.commands.removemergecandidate"\r
- name="Remove as Candidate for Group Merge">\r
- </command>\r
- <command\r
- defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMarkerFlagHandler"\r
- id="taxeditor-bulkeditor.command.setMarkerFlag"\r
- name="Set Marker Flag">\r
- </command>\r
- <command\r
- id="eu.etaxonomy.taxeditor.bulkeditor.delete"\r
- name="delete">\r
- </command>\r
- <!--command\r
- defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.NewEntityHandler"\r
- id="eu.etaxonomy.taxeditor.bulkeditor.command.new"\r
- name="New Entity">\r
- </command-->\r
- </extension>\r
- <extension\r
- point="org.eclipse.ui.editors.markerAnnotationSpecification">\r
- <specification\r
- annotationType="merge_candidate_annotation"\r
- colorPreferenceKey="merge_candidate_annotation_color"\r
- colorPreferenceValue="220,220,255"\r
- highlightPreferenceValue="true"\r
- icon="icons/merge_candidate.gif"\r
- includeOnPreferencePage="true"\r
- label="Merge Candidate Annotation"\r
- overviewRulerPreferenceKey="merge_candidate_annotation_overview"\r
- overviewRulerPreferenceValue="true"\r
- presentationLayer="0"\r
- symbolicIcon="task"\r
- textPreferenceKey="merge_candidate_annotation_text"\r
- textPreferenceValue="false"\r
- textStylePreferenceValue="BOX"\r
- verticalRulerPreferenceKey="merge_candidate_annotation_vertical"\r
- verticalRulerPreferenceValue="true">\r
- </specification>\r
- <specification\r
- annotationType="merge_target_annotation"\r
- colorPreferenceKey="merge_target_annotation_color"\r
- colorPreferenceValue="220,220,255"\r
- highlightPreferenceValue="true"\r
- icon="icons/merge_target.gif"\r
- includeOnPreferencePage="true"\r
- label="Merge Target Annotation"\r
- overviewRulerPreferenceKey="merge_target_annotation_overview"\r
- overviewRulerPreferenceValue="true"\r
- presentationLayer="1"\r
- symbolicIcon="task"\r
- textPreferenceKey="merge_target_annotation_text"\r
- textPreferenceValue="false"\r
- textStylePreferenceValue="BOX"\r
- verticalRulerPreferenceKey="merge_target_annotation_vertical"\r
- verticalRulerPreferenceValue="true">\r
- </specification> \r
- </extension>\r
- <extension\r
- point="org.eclipse.ui.editors.annotationTypes">\r
- <type\r
- name="merge_candidate_annotation">\r
- </type>\r
- <type\r
- name="merge_target_annotation">\r
- </type>\r
- </extension>\r
- <extension\r
- point="org.eclipse.ui.views">\r
- <view\r
- class="eu.etaxonomy.taxeditor.bulkeditor.referencingobjects.ReferencingObjectsView"\r
- id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"\r
- name="%view.name"\r
- restorable="false">\r
- </view>\r
- </extension> \r
- <extension\r
- point="org.eclipse.core.expressions.definitions">\r
- <definition\r
- id="isMergeEnabled">\r
- <with\r
- variable="activeEditor">\r
- <test\r
- property="taxeditor-bulkeditor.propertyTester.isMergingEnabled">\r
- </test>\r
- </with>\r
- </definition>\r
- <definition\r
- id="isTaxonBulkEditorInput">\r
- <with\r
- variable="activeEditor">\r
- <test\r
- property="taxeditor-bulkeditor.propertyTester.isTaxonEditor">\r
- </test>\r
- </with>\r
- </definition>\r
- </extension>\r
- <extension\r
- point="org.eclipse.core.expressions.propertyTesters">\r
- <propertyTester\r
- class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"\r
- id="taxeditor-bulkeditor.PropertyTester"\r
- namespace="taxeditor-bulkeditor.propertyTester"\r
- properties="isMergingEnabled, isDerivedUnitEditor, isTaxonEditor, isGroupEditor"\r
- type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">\r
- </propertyTester>\r
- </extension>\r
- <extension\r
- point="org.eclipse.ui.handlers">\r
- <handler\r
- class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut"\r
- commandId="org.eclipse.ui.edit.cut">\r
- <activeWhen>\r
- <with\r
- variable="activeFocusControlId">\r
- <equals\r
- value="bulkeditor.textControlId">\r
- </equals>\r
- </with>\r
- </activeWhen>\r
- </handler>\r
- <handler\r
- class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"\r
- commandId="org.eclipse.ui.edit.copy">\r
- <activeWhen>\r
- <with\r
- variable="activeFocusControlId">\r
- <equals\r
- value="bulkeditor.textControlId">\r
- </equals>\r
- </with>\r
- </activeWhen>\r
- </handler>\r
- <handler\r
- class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:paste"\r
- commandId="org.eclipse.ui.edit.paste">\r
- <activeWhen>\r
- <with\r
- variable="activeFocusControlId">\r
- <equals\r
- value="bulkeditor.textControlId">\r
- </equals>\r
- </with>\r
- </activeWhen>\r
- </handler>\r
- <handler\r
- class="eu.etaxonomy.taxeditor.bulkeditor.handler.DeleteHandler"\r
- commandId="eu.etaxonomy.taxeditor.bulkeditor.delete">\r
- <activeWhen>\r
- <with\r
- variable="selection">\r
- <instanceof\r
- value="eu.etaxonomy.taxeditor.model.LineSelection">\r
- </instanceof>\r
- </with>\r
- </activeWhen>\r
- </handler>\r
- </extension>\r
- <extension\r
- point="org.eclipse.ui.preferencePages">\r
- <page\r
- category="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"\r
- class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorMarkerPreferencePage"\r
- id="eu.etaxonomy.taxeditor.preferences.bulkeditor.markerTypes"\r
- name="%page.name">\r
- </page>\r
- <page\r
- category="eu.etaxonomy.taxeditor.preferences.general"\r
- class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorGeneralPreferencePage"\r
- id="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"\r
- name="%page.name.0">\r
- </page>\r
- </extension>\r
- <extension\r
- point="org.eclipse.ui.perspectiveExtensions">\r
- <perspectiveExtension\r
- targetID="*">\r
- <showInPart\r
- id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"></showInPart>\r
- <showInPart\r
- id="eu.etaxonomy.taxeditor.view.detail">\r
- </showInPart>\r
- </perspectiveExtension>\r
- </extension>\r
-<!-- start set marker -->\r
-\r
-</plugin>\r
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+
+ <extension
+ id="application"
+ point="org.eclipse.core.runtime.applications">
+ <application>
+ <run
+ class="eu.etaxonomy.taxeditor.bulkeditor.Application">
+ </run>
+ </application>
+ </extension>
+ <extension
+ point="org.eclipse.core.expressions.definitions">
+ <definition
+ id="isMergeEnabled">
+ <with
+ variable="activeEditor">
+ <test
+ property="taxeditor-bulkeditor.propertyTester.isMergingEnabled">
+ </test>
+ </with>
+ </definition>
+ <definition
+ id="isConvertEnabled">
+ <with
+ variable="activeEditor">
+ <test
+ property="taxeditor-bulkeditor.propertyTester.isConvertingEnabled">
+ </test>
+ </with>
+ </definition>
+ <definition
+ id="isTaxonBulkEditorInput">
+ <with
+ variable="activeEditor">
+ <test
+ property="taxeditor-bulkeditor.propertyTester.isTaxonEditor">
+ </test>
+ </with>
+ </definition>
+ <definition
+ id="isTeam">
+ <with
+ variable="selection">
+ <test
+ property="eu.etaxonomy.taxeditor.bulkeditor.command.isTeam">
+ </test>
+ </with>
+ </definition>
+ <definition
+ id="isPerson">
+ <with
+ variable="selection">
+ <test
+ property="eu.etaxonomy.taxeditor.bulkeditor.command.isPerson">
+ </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">
+ <propertyTester
+ class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"
+ id="taxeditor-bulkeditor.PropertyTester"
+ namespace="taxeditor-bulkeditor.propertyTester"
+ properties="isMergingEnabled, isDerivedUnitEditor, isTaxonEditor, isGroupEditor, isConvertingEnabled"
+ type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
+ </propertyTester>
+ <propertyTester
+ class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
+ id="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
+ namespace="eu.etaxonomy.taxeditor.bulkeditor.command"
+ 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="eu.etaxonomy.taxeditor.store.cdmViewer">
+ <viewCommandMapping
+ commandId="eu.etaxonomy.taxeditor.openReferencingObjectsView"
+ selection="java.lang.Object"
+ 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>
+ <extension
+ point="eu.etaxonomy.taxeditor.store.preferencePage">
+ <page
+ category="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
+ class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorMarkerPreferencePage"
+ id="eu.etaxonomy.taxeditor.preferences.bulkeditor.markerTypes"
+ name="%page.name">
+ </page>
+ <page
+ category="eu.etaxonomy.taxeditor.preference.UIPreferences"
+ class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorGeneralPreferencePage"
+ id="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
+ name="%page.name.0">
+ </page>
+ </extension>
+<!-- start set marker -->
+
+</plugin>