a329fe597e178592737edd3ee8a5cc1023cec424
[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 <!--command
72 commandId="taxeditor-nameeditor.commands.open"
73 label="Open Name Editor"
74 style="push">
75 <visibleWhen
76 checkEnabled="false">
77 <reference
78 definitionId="pigsFly">
79 </reference>
80 </visibleWhen>
81 </command-->
82 </menuContribution>
83 <menuContribution
84 locationURI="popup:#BulkEditorContext">
85 <dynamic
86 class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
87 id="eu.etaxonomy.taxeditor.bulkeditor.cdmViewerContextMenu">
88 </dynamic>
89 <separator
90 name="taxeditor-bulkeditor.separator1"
91 visible="true">
92 </separator>
93 <menu
94 label="%menu.label.1">
95 <dynamic
96 class="eu.etaxonomy.taxeditor.bulkeditor.command.DynamicNewObjectMenu"
97 id="eu.etaxonomy.taxeditor.bulkeditor.dynamicNewMenu">
98 <visibleWhen
99 checkEnabled="false">
100 <reference
101 definitionId="isCdmStoreConnected">
102 </reference>
103 </visibleWhen>
104 </dynamic>
105 <visibleWhen
106 checkEnabled="true">
107 <reference
108 definitionId="isCdmStoreConnected">
109 </reference>
110 </visibleWhen>
111 </menu>
112 <separator
113 name="eu.etaxonomy.taxeditor.bulkeditor.separator1">
114 </separator>
115 <command
116 commandId="bulkeditor.commands.setmergetarget"
117 label="%command.label.0"
118 style="push">
119 <visibleWhen>
120 <reference
121 definitionId="isMergeEnabled">
122 </reference>
123 </visibleWhen>
124 </command>
125
126 <command
127 commandId="bulkeditor.commands.setmergecandidate"
128 label="%command.label.1"
129 style="push">
130 <visibleWhen>
131 <reference
132 definitionId="isMergeEnabled">
133 </reference>
134 </visibleWhen>
135 </command>
136 <command
137 commandId="bulkeditor.commands.removemergecandidate"
138 label="%command.label.2"
139 style="push">
140 <visibleWhen>
141 <reference
142 definitionId="isMergeEnabled">
143 </reference>
144 </visibleWhen>
145 </command>
146 <!--menuContribution
147 locationURI="popup:org.eclipse.ui.popup.any"-->
148 <command
149 commandId="bulkeditor.commands.mergegroup"
150 label="%command.label.3"
151 style="push">
152 <visibleWhen>
153 <reference
154 definitionId="isMergeEnabled">
155 </reference>
156 </visibleWhen>
157 </command>
158 <command
159 commandId="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person"
160 label="%command.label.5"
161 style="push">
162 <visibleWhen
163 checkEnabled="true">
164 <and>
165 <reference
166 definitionId="isConvertEnabled">
167 </reference>
168 <reference
169 definitionId="isTeam">
170 </reference>
171 </and>
172 </visibleWhen>
173 </command>
174 <command
175 commandId="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team"
176 label="%command.label.6"
177 style="push">
178 <visibleWhen
179 checkEnabled="true">>
180 <and>
181 <reference
182 definitionId="isConvertEnabled">
183 </reference>
184 <reference
185 definitionId="isPerson">
186 </reference>
187 </and>
188 </visibleWhen>
189 </command>
190 <separator
191 name="taxeditor-bulkeditor.separator2"
192 visible="true">
193 </separator>
194 <menu
195 label="%menu.label.2">
196 <dynamic
197 class="eu.etaxonomy.taxeditor.bulkeditor.command.DynamicMarkerTypeEditingMenu"
198 id="eu.etaxonomy.taxeditor.bulkeditor.dynamicMarkerTypeEditingMenu">
199 </dynamic>
200 <visibleWhen
201 checkEnabled="true">
202 <reference
203 definitionId="isCdmStoreConnected">
204 </reference>
205 </visibleWhen>
206 </menu>
207 <separator
208 name="taxeditor-bulkeditor.separator3"
209 visible="true">
210 </separator>
211 <command
212 commandId="eu.etaxonomy.taxeditor.bulkeditor.delete"
213 label="%command.label.4"
214 style="push">
215 <visibleWhen
216 checkEnabled="true">
217 <reference
218 definitionId="isCdmStoreConnected">
219 </reference>
220 </visibleWhen>
221 </command>
222 </menuContribution>
223 </extension>
224 <extension
225 point="org.eclipse.ui.commands">
226 <command
227 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.MergeGroupHandler"
228 id="bulkeditor.commands.mergegroup"
229 name="%command.name">
230 </command>
231 <command
232 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeTargetHandler"
233 id="bulkeditor.commands.setmergetarget"
234 name="%command.name.0">
235 </command>
236 <command
237 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.OpenBulkEditorHandler"
238 id="taxeditor-bulkeditor.dynamicopenmenu"
239 name="%command.name.1">
240 <commandParameter
241 id="taxeditor-bulkeditor.commandParameter.inputType"
242 name="%commandParameter.name"
243 values="eu.etaxonomy.taxeditor.bulkeditor.input.BulkEditorInputTypeValues">
244 </commandParameter>
245 </command>
246 <command
247 defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.NewObjectHandler"
248 id="taxeditor-bulkeditor.dynamicnewobjectcommand"
249 name="%command.name.2">
250 </command>
251 <command
252 defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.DeleteObjectHandler"
253 id="taxeditor-bulkeditor.dynamicdeleteobjectcommand"
254 name="%command.name.3">
255 </command>
256 <command
257 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeCandidateHandler"
258 id="bulkeditor.commands.setmergecandidate"
259 name="%command.name.4">
260 </command>
261 <command
262 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.RemoveMergeCandidateHandler"
263 id="bulkeditor.commands.removemergecandidate"
264 name="%command.name.5">
265 </command>
266 <command
267 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMarkerFlagHandler"
268 id="taxeditor-bulkeditor.command.setMarkerFlag"
269 name="%command.name.6">
270 </command>
271 <command
272 id="eu.etaxonomy.taxeditor.bulkeditor.delete"
273 name="%command.name.7">
274 </command>
275 <command
276 id="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person"
277 name="%command.name.8">
278 </command>
279 <command
280 id="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team"
281 name="%command.name.10">
282 </command>
283 <command
284 id="eu.etaxonomy.taxeditor.openReferencingObjectsView"
285 name="Open Referencing Objects View">
286 </command>
287 <!--command
288 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.NewEntityHandler"
289 id="eu.etaxonomy.taxeditor.bulkeditor.command.new"
290 name="New Entity">
291 </command-->
292 </extension>
293 <extension
294 point="org.eclipse.ui.editors.markerAnnotationSpecification">
295 <specification
296 annotationType="merge_candidate_annotation"
297 colorPreferenceKey="merge_candidate_annotation_color"
298 colorPreferenceValue="220,220,255"
299 highlightPreferenceValue="true"
300 icon="icons/merge_candidate.gif"
301 includeOnPreferencePage="true"
302 label="%specification.label"
303 overviewRulerPreferenceKey="merge_candidate_annotation_overview"
304 overviewRulerPreferenceValue="true"
305 presentationLayer="0"
306 symbolicIcon="task"
307 textPreferenceKey="merge_candidate_annotation_text"
308 textPreferenceValue="false"
309 textStylePreferenceValue="BOX"
310 verticalRulerPreferenceKey="merge_candidate_annotation_vertical"
311 verticalRulerPreferenceValue="true">
312 </specification>
313 <specification
314 annotationType="merge_target_annotation"
315 colorPreferenceKey="merge_target_annotation_color"
316 colorPreferenceValue="220,220,255"
317 highlightPreferenceValue="true"
318 icon="icons/merge_target.gif"
319 includeOnPreferencePage="true"
320 label="%specification.label.0"
321 overviewRulerPreferenceKey="merge_target_annotation_overview"
322 overviewRulerPreferenceValue="true"
323 presentationLayer="1"
324 symbolicIcon="task"
325 textPreferenceKey="merge_target_annotation_text"
326 textPreferenceValue="false"
327 textStylePreferenceValue="BOX"
328 verticalRulerPreferenceKey="merge_target_annotation_vertical"
329 verticalRulerPreferenceValue="true">
330 </specification>
331 </extension>
332 <extension
333 point="org.eclipse.ui.editors.annotationTypes">
334 <type
335 name="merge_candidate_annotation">
336 </type>
337 <type
338 name="merge_target_annotation">
339 </type>
340 </extension>
341 <extension
342 point="org.eclipse.ui.views">
343 <view
344 class="eu.etaxonomy.taxeditor.bulkeditor.referencingobjects.ReferencingObjectsView"
345 id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"
346 name="%view.name"
347 restorable="false">
348 </view>
349 </extension>
350 <extension
351 point="org.eclipse.core.expressions.definitions">
352 <definition
353 id="isMergeEnabled">
354 <with
355 variable="activeEditor">
356 <test
357 property="taxeditor-bulkeditor.propertyTester.isMergingEnabled">
358 </test>
359 </with>
360 </definition>
361 <definition
362 id="isConvertEnabled">
363 <with
364 variable="activeEditor">
365 <test
366 property="taxeditor-bulkeditor.propertyTester.isConvertingEnabled">
367 </test>
368 </with>
369 </definition>
370 <definition
371 id="isTaxonBulkEditorInput">
372 <with
373 variable="activeEditor">
374 <test
375 property="taxeditor-bulkeditor.propertyTester.isTaxonEditor">
376 </test>
377 </with>
378 </definition>
379 <definition
380 id="isTeam">
381 <with
382 variable="selection">
383 <test
384 property="eu.etaxonomy.taxeditor.bulkeditor.command.isTeam">
385 </test>
386 </with>
387 </definition>
388 <definition
389 id="isPerson">
390 <with
391 variable="selection">
392 <test
393 property="eu.etaxonomy.taxeditor.bulkeditor.command.isPerson">
394 </test>
395 </with>
396 </definition>
397 </extension>
398 <extension
399 point="org.eclipse.core.expressions.propertyTesters">
400 <propertyTester
401 class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"
402 id="taxeditor-bulkeditor.PropertyTester"
403 namespace="taxeditor-bulkeditor.propertyTester"
404 properties="isMergingEnabled, isDerivedUnitEditor, isTaxonEditor, isGroupEditor, isConvertingEnabled"
405 type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
406 </propertyTester>
407 <propertyTester
408 class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
409 id="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
410 namespace="eu.etaxonomy.taxeditor.bulkeditor.command"
411 properties="isTeam, isPerson"
412 type="java.lang.Object">
413 </propertyTester>
414 </extension>
415 <extension
416 point="org.eclipse.ui.handlers">
417 <handler
418 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut"
419 commandId="org.eclipse.ui.edit.cut">
420 <activeWhen>
421 <with
422 variable="activeFocusControlId">
423 <equals
424 value="bulkeditor.textControlId">
425 </equals>
426 </with>
427 </activeWhen>
428 </handler>
429 <handler
430 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"
431 commandId="org.eclipse.ui.edit.copy">
432 <activeWhen>
433 <with
434 variable="activeFocusControlId">
435 <equals
436 value="bulkeditor.textControlId">
437 </equals>
438 </with>
439 </activeWhen>
440 </handler>
441 <handler
442 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:paste"
443 commandId="org.eclipse.ui.edit.paste">
444 <activeWhen>
445 <with
446 variable="activeFocusControlId">
447 <equals
448 value="bulkeditor.textControlId">
449 </equals>
450 </with>
451 </activeWhen>
452 </handler>
453 <handler
454 class="eu.etaxonomy.taxeditor.bulkeditor.handler.DeleteHandler"
455 commandId="eu.etaxonomy.taxeditor.bulkeditor.delete">
456 <activeWhen>
457 <with
458 variable="selection">
459 <instanceof
460 value="eu.etaxonomy.taxeditor.model.LineSelection">
461 </instanceof>
462 </with>
463 </activeWhen>
464 </handler>
465 <handler
466 class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertTeam2PersonHandler"
467 commandId="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person">
468 </handler>
469 <handler
470 class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertPerson2TeamHandler"
471 commandId="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team">
472 </handler>
473 <handler
474 class="eu.etaxonomy.taxeditor.handler.defaultHandler.OpenReferencingObjectsView"
475 commandId="eu.etaxonomy.taxeditor.openReferencingObjectsView">
476 </handler>
477
478 </extension>
479 <extension
480 point="org.eclipse.ui.preferencePages">
481 <page
482 category="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
483 class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorMarkerPreferencePage"
484 id="eu.etaxonomy.taxeditor.preferences.bulkeditor.markerTypes"
485 name="%page.name">
486 </page>
487 <page
488 category="eu.etaxonomy.taxeditor.preferences.general"
489 class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorGeneralPreferencePage"
490 id="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
491 name="%page.name.0">
492 </page>
493 </extension>
494 <extension
495 point="org.eclipse.ui.perspectiveExtensions">
496 <perspectiveExtension
497 targetID="*">
498 <showInPart
499 id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"></showInPart>
500 <showInPart
501 id="eu.etaxonomy.taxeditor.view.detail">
502 </showInPart>
503 </perspectiveExtension>
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>