f72a7b25eb896ba15ad30bbd8d1844f702ce14bd
[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:org.eclipse.ui.main.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.openReferencingObjectsView"
233 label="%command.label.OPEN_REFERENCING_OBJECTS_VIEW"
234 style="push">
235 </command>
236 </menuContribution>
237 </extension>
238 <extension
239 point="org.eclipse.ui.commands">
240 <command
241 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.MergeGroupHandler"
242 id="bulkeditor.commands.mergegroup"
243 name="%command.name">
244 </command>
245 <command
246 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeTargetHandler"
247 id="bulkeditor.commands.setmergetarget"
248 name="%command.name.0">
249 </command>
250 <command
251 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.OpenBulkEditorHandler"
252 id="taxeditor-bulkeditor.dynamicopenmenu"
253 name="%command.name.1">
254 <commandParameter
255 id="taxeditor-bulkeditor.commandParameter.inputType"
256 name="Bulk Editor Class"
257 values="eu.etaxonomy.taxeditor.bulkeditor.input.BulkEditorInputTypeValues">
258 </commandParameter>
259 </command>
260 <command
261 defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.NewObjectHandler"
262 id="taxeditor-bulkeditor.dynamicnewobjectcommand"
263 name="%command.name.2">
264 </command>
265 <command
266 defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.DeleteObjectHandler"
267 id="taxeditor-bulkeditor.dynamicdeleteobjectcommand"
268 name="%command.name.3">
269 </command>
270 <command
271 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeCandidateHandler"
272 id="bulkeditor.commands.setmergecandidate"
273 name="%command.name.4">
274 </command>
275 <command
276 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.RemoveMergeCandidateHandler"
277 id="bulkeditor.commands.removemergecandidate"
278 name="%command.name.5">
279 </command>
280 <command
281 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMarkerFlagHandler"
282 id="taxeditor-bulkeditor.command.setMarkerFlag"
283 name="%command.name.6">
284 </command>
285 <command
286 id="eu.etaxonomy.taxeditor.bulkeditor.delete"
287 name="%command.name.7">
288 </command>
289 <command
290 id="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person"
291 name="%command.name.8">
292 </command>
293 <command
294 id="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team"
295 name="%command.name.10">
296 </command>
297 <command
298 defaultHandler="eu.etaxonomy.taxeditor.handler.defaultHandler.OpenReferencingObjectsView"
299 id="eu.etaxonomy.taxeditor.openReferencingObjectsView"
300 name="%command.name.OPEN_REFERENCING_OBJECTS_VIEW">
301 </command>
302 <command
303 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.defaultHandler.OpenBulkEditorForTaxonNodeHandler"
304 id="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForTaxonNode"
305 name="%command.name.OPEN_BULK_EDITOR_FOR_TAXON_NODE">
306 </command>
307 <command
308 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.defaultHandler.OpenBulkEditorForIdentifiableEntity"
309 id="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity"
310 name="Open bulk editor for identifiable entity">
311 <commandParameter
312 id="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity.uuid"
313 name="Identifiable Entity UUID"
314 optional="true"
315 typeId="eu.etaxonomy.taxeditor.uuidParameterType">
316 </commandParameter>
317 </command>
318 <!--command
319 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.NewEntityHandler"
320 id="eu.etaxonomy.taxeditor.bulkeditor.command.new"
321 name="New Entity">
322 </command-->
323 </extension>
324 <extension
325 point="org.eclipse.ui.editors.markerAnnotationSpecification">
326 <specification
327 annotationType="merge_candidate_annotation"
328 colorPreferenceKey="merge_candidate_annotation_color"
329 colorPreferenceValue="220,220,255"
330 highlightPreferenceValue="true"
331 icon="icons/merge_candidate.gif"
332 includeOnPreferencePage="true"
333 label="%specification.label"
334 overviewRulerPreferenceKey="merge_candidate_annotation_overview"
335 overviewRulerPreferenceValue="true"
336 presentationLayer="0"
337 symbolicIcon="task"
338 textPreferenceKey="merge_candidate_annotation_text"
339 textPreferenceValue="false"
340 textStylePreferenceValue="BOX"
341 verticalRulerPreferenceKey="merge_candidate_annotation_vertical"
342 verticalRulerPreferenceValue="true">
343 </specification>
344 <specification
345 annotationType="merge_target_annotation"
346 colorPreferenceKey="merge_target_annotation_color"
347 colorPreferenceValue="220,220,255"
348 highlightPreferenceValue="true"
349 icon="icons/merge_target.gif"
350 includeOnPreferencePage="true"
351 label="%specification.label.0"
352 overviewRulerPreferenceKey="merge_target_annotation_overview"
353 overviewRulerPreferenceValue="true"
354 presentationLayer="1"
355 symbolicIcon="task"
356 textPreferenceKey="merge_target_annotation_text"
357 textPreferenceValue="false"
358 textStylePreferenceValue="BOX"
359 verticalRulerPreferenceKey="merge_target_annotation_vertical"
360 verticalRulerPreferenceValue="true">
361 </specification>
362 </extension>
363 <extension
364 point="org.eclipse.ui.editors.annotationTypes">
365 <type
366 name="merge_candidate_annotation">
367 </type>
368 <type
369 name="merge_target_annotation">
370 </type>
371 </extension>
372 <extension
373 point="org.eclipse.ui.views">
374 <view
375 class="eu.etaxonomy.taxeditor.bulkeditor.referencingobjects.ReferencingObjectsView"
376 id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"
377 name="%view.name"
378 restorable="false">
379 </view>
380 </extension>
381 <extension
382 point="org.eclipse.core.expressions.definitions">
383 <definition
384 id="isMergeEnabled">
385 <with
386 variable="activeEditor">
387 <test
388 property="taxeditor-bulkeditor.propertyTester.isMergingEnabled">
389 </test>
390 </with>
391 </definition>
392 <definition
393 id="isConvertEnabled">
394 <with
395 variable="activeEditor">
396 <test
397 property="taxeditor-bulkeditor.propertyTester.isConvertingEnabled">
398 </test>
399 </with>
400 </definition>
401 <definition
402 id="isTaxonBulkEditorInput">
403 <with
404 variable="activeEditor">
405 <test
406 property="taxeditor-bulkeditor.propertyTester.isTaxonEditor">
407 </test>
408 </with>
409 </definition>
410 <definition
411 id="isTeam">
412 <with
413 variable="selection">
414 <test
415 property="eu.etaxonomy.taxeditor.bulkeditor.command.isTeam">
416 </test>
417 </with>
418 </definition>
419 <definition
420 id="isPerson">
421 <with
422 variable="selection">
423 <test
424 property="eu.etaxonomy.taxeditor.bulkeditor.command.isPerson">
425 </test>
426 </with>
427 </definition>
428 </extension>
429 <extension
430 point="org.eclipse.core.expressions.propertyTesters">
431 <propertyTester
432 class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"
433 id="taxeditor-bulkeditor.PropertyTester"
434 namespace="taxeditor-bulkeditor.propertyTester"
435 properties="isMergingEnabled, isDerivedUnitEditor, isTaxonEditor, isGroupEditor, isConvertingEnabled"
436 type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
437 </propertyTester>
438 <propertyTester
439 class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
440 id="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
441 namespace="eu.etaxonomy.taxeditor.bulkeditor.command"
442 properties="isTeam, isPerson"
443 type="java.lang.Object">
444 </propertyTester>
445 </extension>
446 <extension
447 point="org.eclipse.ui.handlers">
448 <handler
449 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut"
450 commandId="org.eclipse.ui.edit.cut">
451 <activeWhen>
452 <with
453 variable="activeFocusControlId">
454 <equals
455 value="bulkeditor.textControlId">
456 </equals>
457 </with>
458 </activeWhen>
459 </handler>
460 <handler
461 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"
462 commandId="org.eclipse.ui.edit.copy">
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:paste"
474 commandId="org.eclipse.ui.edit.paste">
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="eu.etaxonomy.taxeditor.bulkeditor.handler.DeleteHandler"
486 commandId="eu.etaxonomy.taxeditor.bulkeditor.delete">
487 <activeWhen>
488 <with
489 variable="selection">
490 <instanceof
491 value="eu.etaxonomy.taxeditor.model.LineSelection">
492 </instanceof>
493 </with>
494 </activeWhen>
495 </handler>
496 <handler
497 class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertTeam2PersonHandler"
498 commandId="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person">
499 </handler>
500 <handler
501 class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertPerson2TeamHandler"
502 commandId="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team">
503 </handler>
504
505 </extension>
506 <extension
507 point="org.eclipse.ui.preferencePages">
508 <page
509 category="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
510 class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorMarkerPreferencePage"
511 id="eu.etaxonomy.taxeditor.preferences.bulkeditor.markerTypes"
512 name="%page.name">
513 </page>
514 <page
515 category="eu.etaxonomy.taxeditor.preferences.general"
516 class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorGeneralPreferencePage"
517 id="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
518 name="%page.name.0">
519 </page>
520 </extension>
521 <extension
522 point="eu.etaxonomy.taxeditor.store.cdmViewer">
523 <viewCommandMapping
524 commandId="eu.etaxonomy.taxeditor.openReferencingObjectsView"
525 selection="java.lang.Object"
526 viewerName="%viewCommandMapping.viewerName.REFERENCING_OBJECTS_VIEW">
527 </viewCommandMapping>
528 <viewCommandMapping
529 commandId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForTaxonNode"
530 selection="eu.etaxonomy.cdm.model.taxon.TaxonNode"
531 viewerName="%viewCommandMapping.viewerName.BULK_EDITOR">
532 </viewCommandMapping>
533 <viewCommandMapping
534 commandId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity"
535 selection="eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache"
536 viewerName="%viewCommandMapping.viewerName.BULK_EDITOR">
537 </viewCommandMapping>
538 <viewCommandMapping
539 commandId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity"
540 selection="eu.etaxonomy.cdm.model.common.IdentifiableEntity"
541 viewerName="%viewCommandMapping.viewerName.BULK_EDITOR">
542 </viewCommandMapping>
543 </extension>
544 <!-- start set marker -->
545
546 </plugin>