ref #6566 Sort main menu
[taxeditor.git] / eu.etaxonomy.taxeditor.bulkeditor / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.4"?>
3 <plugin>
4
5 <extension
6 id="application"
7 point="org.eclipse.core.runtime.applications">
8 <application>
9 <run
10 class="eu.etaxonomy.taxeditor.bulkeditor.Application">
11 </run>
12 </application>
13 </extension>
14 <extension
15 point="org.eclipse.ui.editors">
16 <editor
17 class="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor"
18 default="false"
19 id="bulkeditor.editor"
20 name="%editor.name">
21 </editor>
22 <editor
23 class="eu.etaxonomy.taxeditor.nameditor.TaxonNameEditor"
24 default="false"
25 id="nameeditor.editor"
26 name="%editor.name.0">
27 </editor>
28 <editor
29 class="eu.etaxonomy.taxeditor.dataimport.DataImportEditor"
30 default="false"
31 id="eu.etaxonomy.taxeditor.dataimport.DataImportEditor"
32 name="%editor.name.1">
33 </editor>
34 </extension>
35 <extension
36 point="org.eclipse.ui.menus">
37 <menuContribution
38 locationURI="menu:eu.etaxonomy.taxeditor.workbench.menu.window?before=eu.etaxonomy.taxeditor.application.windowMenu.last">
39 <menu
40 id="bulkeditor.menus.openmenu"
41 label="%menu.label">
42 <visibleWhen
43 checkEnabled="true">
44 <reference
45 definitionId="isCdmStoreConnected">
46 </reference>
47 </visibleWhen>
48 </menu>
49 <menu
50 label="%menu.label.0">
51 <visibleWhen
52 checkEnabled="true">
53 <reference
54 definitionId="isCdmStoreConnected">
55 </reference>
56 </visibleWhen>
57 </menu>
58 </menuContribution>
59 <menuContribution
60 locationURI="menu:bulkeditor.menus.openmenu">
61 <dynamic
62 class="eu.etaxonomy.taxeditor.bulkeditor.command.OpenBulkEditorContributionItem"
63 id="taxeditor-bulkeditor.dynamicopenmenu">
64 <visibleWhen
65 checkEnabled="true">
66 <reference
67 definitionId="isCdmStoreConnected">
68 </reference>
69 </visibleWhen>
70 </dynamic>
71 </menuContribution>
72 <menuContribution
73 locationURI="popup:#BulkEditorContext">
74 <dynamic
75 class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
76 id="eu.etaxonomy.taxeditor.bulkeditor.cdmViewerContextMenu">
77 </dynamic>
78 <separator
79 name="taxeditor-bulkeditor.separator1"
80 visible="true">
81 </separator>
82 <menu
83 label="%menu.label.1">
84 <dynamic
85 class="eu.etaxonomy.taxeditor.bulkeditor.command.DynamicNewObjectMenu"
86 id="eu.etaxonomy.taxeditor.bulkeditor.dynamicNewMenu">
87 <visibleWhen
88 checkEnabled="false">
89 <reference
90 definitionId="isCdmStoreConnected">
91 </reference>
92 </visibleWhen>
93 </dynamic>
94 <visibleWhen
95 checkEnabled="true">
96 <reference
97 definitionId="isCdmStoreConnected">
98 </reference>
99 </visibleWhen>
100 </menu>
101 <separator
102 name="taxeditor-bulkeditor.separator4"
103 visible="true">
104 </separator>
105 <command
106 commandId="bulkeditor.commands.setmergetarget"
107 label="%command.label.0"
108 style="push">
109 <visibleWhen>
110 <reference
111 definitionId="isMergeEnabled">
112 </reference>
113 </visibleWhen>
114 </command>
115
116 <command
117 commandId="bulkeditor.commands.setmergecandidate"
118 label="%command.label.1"
119 style="push">
120 <visibleWhen>
121 <reference
122 definitionId="isMergeEnabled">
123 </reference>
124 </visibleWhen>
125 </command>
126 <command
127 commandId="bulkeditor.commands.removemergecandidate"
128 label="%command.label.2"
129 style="push">
130 <visibleWhen>
131 <reference
132 definitionId="isMergeEnabled">
133 </reference>
134 </visibleWhen>
135 </command>
136 <!--menuContribution
137 locationURI="popup:org.eclipse.ui.popup.any"-->
138 <command
139 commandId="bulkeditor.commands.mergegroup"
140 label="%command.label.3"
141 style="push">
142 <visibleWhen>
143 <reference
144 definitionId="isMergeEnabled">
145 </reference>
146 </visibleWhen>
147 </command>
148 <separator
149 name="eu.etaxonomy.taxeditor.bulkeditor.separator1"
150 visible="true">
151 </separator>
152 <command
153 commandId="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person"
154 label="%command.label.5"
155 style="push">
156 <visibleWhen
157 checkEnabled="true">
158 <and>
159 <reference
160 definitionId="isConvertEnabled">
161 </reference>
162 <reference
163 definitionId="isTeam">
164 </reference>
165 </and>
166 </visibleWhen>
167 </command>
168 <command
169 commandId="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team"
170 label="%command.label.6"
171 style="push">
172 <visibleWhen
173 checkEnabled="true">>
174 <and>
175 <reference
176 definitionId="isConvertEnabled">
177 </reference>
178 <reference
179 definitionId="isPerson">
180 </reference>
181 </and>
182 </visibleWhen>
183 </command>
184 <separator
185 name="taxeditor-bulkeditor.separator2"
186 visible="true">
187 </separator>
188 <menu
189 label="%menu.label.2">
190 <dynamic
191 class="eu.etaxonomy.taxeditor.bulkeditor.command.DynamicMarkerTypeEditingMenu"
192 id="eu.etaxonomy.taxeditor.bulkeditor.dynamicMarkerTypeEditingMenu">
193 </dynamic>
194 <visibleWhen
195 checkEnabled="true">
196 <reference
197 definitionId="isCdmStoreConnected">
198 </reference>
199 </visibleWhen>
200 </menu>
201 <separator
202 name="taxeditor-bulkeditor.separator3"
203 visible="true">
204 </separator>
205 <command
206 commandId="eu.etaxonomy.taxeditor.bulkeditor.delete"
207 label="%command.label.4"
208 style="push">
209 <visibleWhen
210 checkEnabled="true">
211 <reference
212 definitionId="isCdmStoreConnected">
213 </reference>
214 </visibleWhen>
215 </command>
216 </menuContribution>
217 <menuContribution
218 allPopups="false"
219 locationURI="popup:eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects">
220 <dynamic
221 class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
222 id="eu.etaxonomy.taxeditor.referencingObjectsView.cdmViewerContextMenu">
223 </dynamic>
224 <separator
225 name="eu.etaxonomy.taxeditor.bulkeditor.separator1">
226 </separator>
227 </menuContribution>
228 <menuContribution
229 allPopups="false"
230 locationURI="menu:eu.etaxonomy.taxeditor.menu.showView?after=org.eclipse.ui.views.showView.supplemental">
231 <command
232 commandId="eu.etaxonomy.taxeditor.openReferencingObjectsViewFromMenu"
233 label="%command.label.OPEN_REFERENCING_OBJECTS_VIEW"
234 style="push">
235 <visibleWhen
236 checkEnabled="true">
237 <reference
238 definitionId="isCdmStoreConnected">
239 </reference>
240 </visibleWhen>
241 </command>
242 </menuContribution>
243 </extension>
244 <extension
245 point="org.eclipse.ui.commands">
246 <command
247 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.MergeGroupHandler"
248 id="bulkeditor.commands.mergegroup"
249 name="%command.name">
250 </command>
251 <command
252 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeTargetHandler"
253 id="bulkeditor.commands.setmergetarget"
254 name="%command.name.0">
255 </command>
256 <command
257 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.OpenBulkEditorHandler"
258 id="taxeditor-bulkeditor.dynamicopenmenu"
259 name="%command.name.1">
260 <commandParameter
261 id="taxeditor-bulkeditor.commandParameter.inputType"
262 name="Bulk Editor Class"
263 values="eu.etaxonomy.taxeditor.bulkeditor.input.BulkEditorInputTypeValues">
264 </commandParameter>
265 </command>
266 <command
267 defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.NewObjectHandler"
268 id="taxeditor-bulkeditor.dynamicnewobjectcommand"
269 name="%command.name.2">
270 </command>
271 <command
272 defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.DeleteObjectHandler"
273 id="taxeditor-bulkeditor.dynamicdeleteobjectcommand"
274 name="%command.name.3">
275 </command>
276 <command
277 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeCandidateHandler"
278 id="bulkeditor.commands.setmergecandidate"
279 name="%command.name.4">
280 </command>
281 <command
282 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.RemoveMergeCandidateHandler"
283 id="bulkeditor.commands.removemergecandidate"
284 name="%command.name.5">
285 </command>
286 <command
287 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMarkerFlagHandler"
288 id="taxeditor-bulkeditor.command.setMarkerFlag"
289 name="%command.name.6">
290 </command>
291 <command
292 id="eu.etaxonomy.taxeditor.bulkeditor.delete"
293 name="%command.name.7">
294 </command>
295 <command
296 id="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person"
297 name="%command.name.8">
298 </command>
299 <command
300 id="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team"
301 name="%command.name.10">
302 </command>
303 <command
304 id="eu.etaxonomy.taxeditor.openReferencingObjectsView"
305 name="%command.name.OPEN_REFERENCING_OBJECTS_VIEW">
306 </command>
307 <command
308 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.defaultHandler.OpenBulkEditorForTaxonNodeHandler"
309 id="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForTaxonNode"
310 name="%command.name.OPEN_BULK_EDITOR_FOR_TAXON_NODE">
311 </command>
312 <command
313 id="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity"
314 name="Open bulk editor for identifiable entity">
315 <commandParameter
316 id="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity.uuid"
317 name="Identifiable Entity UUID"
318 optional="true"
319 typeId="eu.etaxonomy.taxeditor.uuidParameterType">
320 </commandParameter>
321 </command>
322 <command
323 defaultHandler="eu.etaxonomy.taxeditor.handler.defaultHandler.OpenReferencingObjectsView"
324 id="eu.etaxonomy.taxeditor.openReferencingObjectsViewFromMenu"
325 name="%command.name.OPEN_REFERENCING_OBJECTS_VIEW">
326 </command>
327 <!--command
328 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.NewEntityHandler"
329 id="eu.etaxonomy.taxeditor.bulkeditor.command.new"
330 name="New Entity">
331 </command-->
332 </extension>
333 <extension
334 point="org.eclipse.ui.editors.markerAnnotationSpecification">
335 <specification
336 annotationType="merge_candidate_annotation"
337 colorPreferenceKey="merge_candidate_annotation_color"
338 colorPreferenceValue="220,220,255"
339 highlightPreferenceValue="true"
340 icon="icons/merge_candidate.gif"
341 includeOnPreferencePage="true"
342 label="%specification.label"
343 overviewRulerPreferenceKey="merge_candidate_annotation_overview"
344 overviewRulerPreferenceValue="true"
345 presentationLayer="0"
346 symbolicIcon="task"
347 textPreferenceKey="merge_candidate_annotation_text"
348 textPreferenceValue="false"
349 textStylePreferenceValue="BOX"
350 verticalRulerPreferenceKey="merge_candidate_annotation_vertical"
351 verticalRulerPreferenceValue="true">
352 </specification>
353 <specification
354 annotationType="merge_target_annotation"
355 colorPreferenceKey="merge_target_annotation_color"
356 colorPreferenceValue="220,220,255"
357 highlightPreferenceValue="true"
358 icon="icons/merge_target.gif"
359 includeOnPreferencePage="true"
360 label="%specification.label.0"
361 overviewRulerPreferenceKey="merge_target_annotation_overview"
362 overviewRulerPreferenceValue="true"
363 presentationLayer="1"
364 symbolicIcon="task"
365 textPreferenceKey="merge_target_annotation_text"
366 textPreferenceValue="false"
367 textStylePreferenceValue="BOX"
368 verticalRulerPreferenceKey="merge_target_annotation_vertical"
369 verticalRulerPreferenceValue="true">
370 </specification>
371 </extension>
372 <extension
373 point="org.eclipse.ui.editors.annotationTypes">
374 <type
375 name="merge_candidate_annotation">
376 </type>
377 <type
378 name="merge_target_annotation">
379 </type>
380 </extension>
381 <extension
382 point="org.eclipse.ui.views">
383 <view
384 class="eu.etaxonomy.taxeditor.bulkeditor.referencingobjects.ReferencingObjectsView"
385 id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"
386 name="%view.name"
387 restorable="false">
388 </view>
389 </extension>
390 <extension
391 point="org.eclipse.core.expressions.definitions">
392 <definition
393 id="isMergeEnabled">
394 <with
395 variable="activeEditor">
396 <test
397 property="taxeditor-bulkeditor.propertyTester.isMergingEnabled">
398 </test>
399 </with>
400 </definition>
401 <definition
402 id="isConvertEnabled">
403 <with
404 variable="activeEditor">
405 <test
406 property="taxeditor-bulkeditor.propertyTester.isConvertingEnabled">
407 </test>
408 </with>
409 </definition>
410 <definition
411 id="isTaxonBulkEditorInput">
412 <with
413 variable="activeEditor">
414 <test
415 property="taxeditor-bulkeditor.propertyTester.isTaxonEditor">
416 </test>
417 </with>
418 </definition>
419 <definition
420 id="isTeam">
421 <with
422 variable="selection">
423 <test
424 property="eu.etaxonomy.taxeditor.bulkeditor.command.isTeam">
425 </test>
426 </with>
427 </definition>
428 <definition
429 id="isPerson">
430 <with
431 variable="selection">
432 <test
433 property="eu.etaxonomy.taxeditor.bulkeditor.command.isPerson">
434 </test>
435 </with>
436 </definition>
437 <definition
438 id="isBulkEditorSupported">
439 <with
440 variable="selection">
441 <test
442 property="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester.isBulkEditorSupported">
443 </test>
444 </with>
445 </definition>
446 <definition
447 id="isGroupEditor">
448 <with
449 variable="activeEditor">
450 <test
451 property="taxeditor-bulkeditor.propertyTester.isGroupEditor">
452 </test>
453 </with>
454 </definition>
455 </extension>
456 <extension
457 point="org.eclipse.core.expressions.propertyTesters">
458 <propertyTester
459 class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"
460 id="taxeditor-bulkeditor.PropertyTester"
461 namespace="taxeditor-bulkeditor.propertyTester"
462 properties="isMergingEnabled, isDerivedUnitEditor, isTaxonEditor, isGroupEditor, isConvertingEnabled"
463 type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
464 </propertyTester>
465 <propertyTester
466 class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
467 id="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
468 namespace="eu.etaxonomy.taxeditor.bulkeditor.command"
469 properties="isTeam, isPerson"
470 type="java.lang.Object">
471 </propertyTester>
472 <propertyTester
473 class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester"
474 id="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester"
475 namespace="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester"
476 properties="isBulkEditorSupported"
477 type="org.eclipse.jface.viewers.IStructuredSelection">
478 </propertyTester>
479 </extension>
480 <extension
481 point="org.eclipse.ui.handlers">
482 <handler
483 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut"
484 commandId="org.eclipse.ui.edit.cut">
485 <activeWhen>
486 <with
487 variable="activeFocusControlId">
488 <equals
489 value="bulkeditor.textControlId">
490 </equals>
491 </with>
492 </activeWhen>
493 </handler>
494 <handler
495 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"
496 commandId="org.eclipse.ui.edit.copy">
497 <activeWhen>
498 <with
499 variable="activeFocusControlId">
500 <equals
501 value="bulkeditor.textControlId">
502 </equals>
503 </with>
504 </activeWhen>
505 </handler>
506 <handler
507 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:paste"
508 commandId="org.eclipse.ui.edit.paste">
509 <activeWhen>
510 <with
511 variable="activeFocusControlId">
512 <equals
513 value="bulkeditor.textControlId">
514 </equals>
515 </with>
516 </activeWhen>
517 </handler>
518 <handler
519 class="eu.etaxonomy.taxeditor.bulkeditor.handler.DeleteHandler"
520 commandId="eu.etaxonomy.taxeditor.bulkeditor.delete">
521 <activeWhen>
522 <with
523 variable="selection">
524 <instanceof
525 value="eu.etaxonomy.taxeditor.model.LineSelection">
526 </instanceof>
527 </with>
528 </activeWhen>
529 </handler>
530 <handler
531 class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertTeam2PersonHandler"
532 commandId="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person">
533 </handler>
534 <handler
535 class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertPerson2TeamHandler"
536 commandId="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team">
537 </handler>
538 <handler
539 class="eu.etaxonomy.taxeditor.bulkeditor.handler.defaultHandler.OpenBulkEditorForIdentifiableEntity"
540 commandId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity">
541 <activeWhen>
542 <and>
543 <reference
544 definitionId="isBulkEditorSupported">
545 </reference>
546 <not>
547 <with
548 variable="activePartId">
549 <equals
550 value="bulkeditor.editor">
551 </equals>
552 </with>
553 </not>
554 </and>
555 </activeWhen>
556 </handler>
557
558 </extension>
559 <extension
560 point="org.eclipse.ui.preferencePages">
561 <page
562 category="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
563 class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorMarkerPreferencePage"
564 id="eu.etaxonomy.taxeditor.preferences.bulkeditor.markerTypes"
565 name="%page.name">
566 </page>
567 <page
568 category="eu.etaxonomy.taxeditor.preferences.general"
569 class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorGeneralPreferencePage"
570 id="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
571 name="%page.name.0">
572 </page>
573 </extension>
574 <extension
575 point="eu.etaxonomy.taxeditor.store.cdmViewer">
576 <viewCommandMapping
577 commandId="eu.etaxonomy.taxeditor.openReferencingObjectsView"
578 selection="java.lang.Object"
579 viewerName="%viewCommandMapping.viewerName.REFERENCING_OBJECTS_VIEW">
580 </viewCommandMapping>
581 <viewCommandMapping
582 commandId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForTaxonNode"
583 selection="eu.etaxonomy.cdm.model.taxon.TaxonNode"
584 viewerName="%viewCommandMapping.viewerName.BULK_EDITOR">
585 </viewCommandMapping>
586 <viewCommandMapping
587 commandId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity"
588 selection="eu.etaxonomy.cdm.model.common.IdentifiableEntity"
589 viewerName="%viewCommandMapping.viewerName.BULK_EDITOR">
590 </viewCommandMapping>
591 </extension>
592 <extension
593 id="id1"
594 point="org.eclipse.e4.workbench.model">
595 <fragment
596 apply="always"
597 uri="fragment.e4xmi">
598 </fragment>
599 </extension>
600 <!-- start set marker -->
601
602 </plugin>