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