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