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