Merge branch 'release/4.0.0'
[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.NewEntityHandler"
304 id="eu.etaxonomy.taxeditor.bulkeditor.command.new"
305 name="New Entity">
306 </command-->
307 </extension>
308 <extension
309 point="org.eclipse.ui.editors.markerAnnotationSpecification">
310 <specification
311 annotationType="merge_candidate_annotation"
312 colorPreferenceKey="merge_candidate_annotation_color"
313 colorPreferenceValue="220,220,255"
314 highlightPreferenceValue="true"
315 icon="icons/merge_candidate.gif"
316 includeOnPreferencePage="true"
317 label="%specification.label"
318 overviewRulerPreferenceKey="merge_candidate_annotation_overview"
319 overviewRulerPreferenceValue="true"
320 presentationLayer="0"
321 symbolicIcon="task"
322 textPreferenceKey="merge_candidate_annotation_text"
323 textPreferenceValue="false"
324 textStylePreferenceValue="BOX"
325 verticalRulerPreferenceKey="merge_candidate_annotation_vertical"
326 verticalRulerPreferenceValue="true">
327 </specification>
328 <specification
329 annotationType="merge_target_annotation"
330 colorPreferenceKey="merge_target_annotation_color"
331 colorPreferenceValue="220,220,255"
332 highlightPreferenceValue="true"
333 icon="icons/merge_target.gif"
334 includeOnPreferencePage="true"
335 label="%specification.label.0"
336 overviewRulerPreferenceKey="merge_target_annotation_overview"
337 overviewRulerPreferenceValue="true"
338 presentationLayer="1"
339 symbolicIcon="task"
340 textPreferenceKey="merge_target_annotation_text"
341 textPreferenceValue="false"
342 textStylePreferenceValue="BOX"
343 verticalRulerPreferenceKey="merge_target_annotation_vertical"
344 verticalRulerPreferenceValue="true">
345 </specification>
346 </extension>
347 <extension
348 point="org.eclipse.ui.editors.annotationTypes">
349 <type
350 name="merge_candidate_annotation">
351 </type>
352 <type
353 name="merge_target_annotation">
354 </type>
355 </extension>
356 <extension
357 point="org.eclipse.ui.views">
358 <view
359 class="eu.etaxonomy.taxeditor.bulkeditor.referencingobjects.ReferencingObjectsView"
360 id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"
361 name="%view.name"
362 restorable="false">
363 </view>
364 </extension>
365 <extension
366 point="org.eclipse.core.expressions.definitions">
367 <definition
368 id="isMergeEnabled">
369 <with
370 variable="activeEditor">
371 <test
372 property="taxeditor-bulkeditor.propertyTester.isMergingEnabled">
373 </test>
374 </with>
375 </definition>
376 <definition
377 id="isConvertEnabled">
378 <with
379 variable="activeEditor">
380 <test
381 property="taxeditor-bulkeditor.propertyTester.isConvertingEnabled">
382 </test>
383 </with>
384 </definition>
385 <definition
386 id="isTaxonBulkEditorInput">
387 <with
388 variable="activeEditor">
389 <test
390 property="taxeditor-bulkeditor.propertyTester.isTaxonEditor">
391 </test>
392 </with>
393 </definition>
394 <definition
395 id="isTeam">
396 <with
397 variable="selection">
398 <test
399 property="eu.etaxonomy.taxeditor.bulkeditor.command.isTeam">
400 </test>
401 </with>
402 </definition>
403 <definition
404 id="isPerson">
405 <with
406 variable="selection">
407 <test
408 property="eu.etaxonomy.taxeditor.bulkeditor.command.isPerson">
409 </test>
410 </with>
411 </definition>
412 </extension>
413 <extension
414 point="org.eclipse.core.expressions.propertyTesters">
415 <propertyTester
416 class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"
417 id="taxeditor-bulkeditor.PropertyTester"
418 namespace="taxeditor-bulkeditor.propertyTester"
419 properties="isMergingEnabled, isDerivedUnitEditor, isTaxonEditor, isGroupEditor, isConvertingEnabled"
420 type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
421 </propertyTester>
422 <propertyTester
423 class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
424 id="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
425 namespace="eu.etaxonomy.taxeditor.bulkeditor.command"
426 properties="isTeam, isPerson"
427 type="java.lang.Object">
428 </propertyTester>
429 </extension>
430 <extension
431 point="org.eclipse.ui.handlers">
432 <handler
433 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut"
434 commandId="org.eclipse.ui.edit.cut">
435 <activeWhen>
436 <with
437 variable="activeFocusControlId">
438 <equals
439 value="bulkeditor.textControlId">
440 </equals>
441 </with>
442 </activeWhen>
443 </handler>
444 <handler
445 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"
446 commandId="org.eclipse.ui.edit.copy">
447 <activeWhen>
448 <with
449 variable="activeFocusControlId">
450 <equals
451 value="bulkeditor.textControlId">
452 </equals>
453 </with>
454 </activeWhen>
455 </handler>
456 <handler
457 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:paste"
458 commandId="org.eclipse.ui.edit.paste">
459 <activeWhen>
460 <with
461 variable="activeFocusControlId">
462 <equals
463 value="bulkeditor.textControlId">
464 </equals>
465 </with>
466 </activeWhen>
467 </handler>
468 <handler
469 class="eu.etaxonomy.taxeditor.bulkeditor.handler.DeleteHandler"
470 commandId="eu.etaxonomy.taxeditor.bulkeditor.delete">
471 <activeWhen>
472 <with
473 variable="selection">
474 <instanceof
475 value="eu.etaxonomy.taxeditor.model.LineSelection">
476 </instanceof>
477 </with>
478 </activeWhen>
479 </handler>
480 <handler
481 class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertTeam2PersonHandler"
482 commandId="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person">
483 </handler>
484 <handler
485 class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertPerson2TeamHandler"
486 commandId="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team">
487 </handler>
488
489 </extension>
490 <extension
491 point="org.eclipse.ui.preferencePages">
492 <page
493 category="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
494 class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorMarkerPreferencePage"
495 id="eu.etaxonomy.taxeditor.preferences.bulkeditor.markerTypes"
496 name="%page.name">
497 </page>
498 <page
499 category="eu.etaxonomy.taxeditor.preferences.general"
500 class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorGeneralPreferencePage"
501 id="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
502 name="%page.name.0">
503 </page>
504 </extension>
505 <extension
506 point="eu.etaxonomy.taxeditor.store.cdmViewer">
507 <viewCommandMapping
508 commandId="eu.etaxonomy.taxeditor.openReferencingObjectsView"
509 selection="java.lang.Object"
510 viewerName="Referencing Objects View">
511 </viewCommandMapping>
512 </extension>
513 <!-- start set marker -->
514
515 </plugin>