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