merge-update from trunk
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.2"?>
3 <plugin>
4 <extension
5 id="application"
6 point="org.eclipse.core.runtime.applications">
7 <application>
8 <run
9 class="eu.etaxonomy.taxeditor.editor.Application">
10 </run>
11 </application>
12 </extension>
13 <extension
14 point="org.eclipse.core.runtime.adapters">
15 <factory
16 adaptableType="eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor"
17 class="eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditorAdapterFactory">
18 <adapter
19 type="eu.etaxonomy.taxeditor.editor.DuplicateArbitrator">
20 </adapter>
21 </factory>
22 </extension>
23 <extension
24 point="org.eclipse.ui.editors">
25 <editor
26 class="eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor"
27 icon="icons/edit_16x16.gif"
28 id="eu.etaxonomy.taxeditor.editor.taxon"
29 name="%editor.name">
30 </editor>
31 <editor
32 class="eu.etaxonomy.taxeditor.editor.name.TaxonNameEditor"
33 default="true"
34 id="eu.etaxonomy.taxeditor.editor.taxon.name"
35 name="%editor.name.0">
36 </editor>
37 <editor
38 class="eu.etaxonomy.taxeditor.editor.key.KeyEditor"
39 default="false"
40 id="eu.etaxonomy.taxeditor.editor.key"
41 name="%editor.name.1">
42 </editor>
43 <editor
44 class="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyGraphEditor"
45 default="false"
46 id="eu.etaxonomy.taxeditor.editor.key.polytomous.graph"
47 name="%editor.name.2">
48 </editor>
49 <editor
50 class="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyListEditor"
51 default="false"
52 id="eu.etaxonomy.taxeditor.editor.key.polytomous.list"
53 name="%editor.name.3">
54 </editor>
55 <editor
56 class="eu.etaxonomy.taxeditor.editor.group.authority.CdmAuthorityEditor"
57 default="false"
58 id="eu.etaxonomy.taxeditor.editor.group.authority"
59 name="%editor.name.4">
60 </editor>
61 <editor
62 class="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView"
63 default="false"
64 icon="icons/derivate_view-16x16-32.png"
65 id="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView"
66 name="%editor.name.5">
67 </editor>
68 <editor
69 class="eu.etaxonomy.taxeditor.editor.view.dataimport.SpecimenImportEditor"
70 default="false"
71 id="eu.etaxonomy.taxeditor.editor.view.dataimport.SpecimenImportEditor"
72 name="Specimen Import Editor">
73 </editor>
74 <editor
75 class="eu.etaxonomy.taxeditor.editor.view.dataimport.GbifImportEditor"
76 default="false"
77 id="eu.etaxonomy.taxeditor.editor.view.dataimport.GbifImportEditor"
78 name="Gbif Import Editor">
79 </editor>
80 <editor
81 class="eu.etaxonomy.taxeditor.editor.view.checklist.ChecklistEditor"
82 icon="icons/address-book-new.png"
83 id="eu.etaxonomy.taxeditor.editor.view.checklist.ChecklistEditor"
84 name="Checklist Editor">
85 </editor>
86 </extension>
87 <extension
88 point="org.eclipse.ui.views">
89 <view
90 allowMultiple="false"
91 category="eu.etaxonomy.taxeditor.editor.category"
92 class="eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptiveViewPart"
93 icon="icons/address-book-new.png"
94 id="eu.etaxonomy.taxeditor.editor.view.descriptive"
95 name="%view.name"
96 restorable="true">
97 </view>
98 <view
99 allowMultiple="false"
100 category="eu.etaxonomy.taxeditor.editor.category"
101 class="eu.etaxonomy.taxeditor.editor.view.uses.UsesViewPart"
102 icon="icons/leaf.png"
103 id="eu.etaxonomy.taxeditor.editor.view.uses"
104 name="%view.name.0"
105 restorable="true">
106 </view>
107 <view
108 allowMultiple="false"
109 category="eu.etaxonomy.taxeditor.editor.category"
110 class="eu.etaxonomy.taxeditor.editor.view.media.MediaViewPart"
111 icon="icons/camera-photo.png"
112 id="eu.etaxonomy.taxeditor.editor.view.media"
113 name="%view.name.1"
114 restorable="true">
115 </view>
116 <view
117 category="eu.etaxonomy.taxeditor.editor.category"
118 class="eu.etaxonomy.taxeditor.editor.view.concept.ConceptViewPart"
119 id="eu.etaxonomy.taxeditor.editor.view.concept"
120 name="%view.name.2"
121 restorable="true">
122 </view>
123 <view
124 category="eu.etaxonomy.taxeditor.editor.category"
125 class="eu.etaxonomy.taxeditor.editor.view.concept.graph.ConceptGraphView"
126 icon="icons/address-book-new.png"
127 id="eu.etaxonomy.taxeditor.editor.view.concept.graph"
128 name="%view.name.3"
129 restorable="true">
130 </view>
131 <category
132 id="eu.etaxonomy.taxeditor.editor.category"
133 name="%category.name">
134 </category>
135 </extension>
136 <extension
137 point="org.eclipse.ui.elementFactories">
138 <factory
139 class="eu.etaxonomy.taxeditor.editor.TaxonEditorInputFactory"
140 id="eu.etaxonomy.taxeditor.editor.name.taxonEditorInputFactory">
141 </factory>
142 </extension>
143 <extension
144 point="org.eclipse.ui.menus">
145 <menuContribution
146 locationURI="menu:eu.etaxonomy.navigation.menu.new?after=eu.etaxonomy.navigation.menu.new.separator1">
147 <command
148 commandId="eu.etaxonomy.taxeditor.editor.command.new.name"
149 label="Name"
150 style="push">
151 </command>
152 <command
153 commandId="eu.etaxonomy.taxeditor.editor.command.new.reference"
154 label="Reference"
155 style="push">
156 </command>
157 <command
158 commandId="eu.etaxonomy.taxeditor.editor.command.new.team"
159 label="%command.label.1"
160 style="push">
161 </command>
162 <command
163 commandId="eu.etaxonomy.taxeditor.editor.command.new.person"
164 label="%command.label.2"
165 style="push">
166 </command>
167 <separator
168 name="eu.etaxonomy.navigation.menu.new.separator2"
169 visible="true">
170 </separator>
171 <command
172 commandId="eu.etaxonomy.taxeditor.editor.command.new.specimen"
173 label="%command.label.3"
174 style="push">
175 </command>
176 <separator
177 name="eu.etaxonomy.navigation.menu.new.separator3"
178 visible="true">
179 </separator>
180 <command
181 commandId="eu.etaxonomy.taxeditor.editor.command.new.datasource"
182 label="Datasource"
183 style="push">
184 </command>
185 </menuContribution>
186 <menuContribution
187 locationURI="menu:eu.etaxonomy.taxeditor.menu.showView?before=eu.etaxonomy.taxeditor.store.showViewMenu.details">
188 <separator
189 name="eu.etaxonomy.taxeditor.editor.showViewMenu"
190 visible="true">
191 </separator>
192 <command
193 commandId="org.eclipse.ui.views.showView"
194 label="%command.label.4"
195 style="push">
196 <parameter
197 name="org.eclipse.ui.views.showView.viewId"
198 value="eu.etaxonomy.taxeditor.editor.view.descriptive">
199 </parameter>
200 </command>
201 <command
202 commandId="org.eclipse.ui.views.showView"
203 label="%command.label.5"
204 style="push">
205 <parameter
206 name="org.eclipse.ui.views.showView.viewId"
207 value="eu.etaxonomy.taxeditor.editor.view.media">
208 </parameter>
209 </command>
210 <command
211 commandId="org.eclipse.ui.views.showView"
212 label="%command.label.6"
213 style="push">
214 <parameter
215 name="org.eclipse.ui.views.showView.viewId"
216 value="eu.etaxonomy.taxeditor.editor.view.concept">
217 </parameter>
218 </command>
219 <command
220 commandId="org.eclipse.ui.views.showView"
221 label="%command.label.7"
222 style="push">
223 <parameter
224 name="org.eclipse.ui.views.showView.viewId"
225 value="eu.etaxonomy.taxeditor.editor.view.concept.graph">
226 </parameter>
227 <visibleWhen
228 checkEnabled="false">
229 <reference
230 definitionId="isShowExperimentalFeatures">
231 </reference>
232 </visibleWhen>
233 </command>
234 </menuContribution>
235 <menuContribution
236 locationURI="menu:org.eclipse.ui.main.menu.navigate">
237 <command
238 commandId="eu.etaxonomy.taxeditor.editor.command.openParent"
239 label="%command.label.8"
240 style="push">
241 </command>
242 </menuContribution>
243 <menuContribution
244 locationURI="popup:eu.etaxonomy.taxeditor.editor.taxon.name">
245 <menu
246 label="%menu.label">
247 <command
248 commandId="eu.etaxonomy.taxeditor.editor.name.createHeterotypicSynoym"
249 label="%command.label.9"
250 style="push">
251 <visibleWhen>
252 <reference
253 definitionId="isAcceptedTaxon">
254 </reference>
255 </visibleWhen>
256 </command>
257 <command
258 commandId="eu.etaxonomy.taxeditor.editor.name.createHomotypicSynoym"
259 label="%command.label.10"
260 style="push">
261 <visibleWhen>
262 <reference
263 definitionId="isAcceptedTaxon">
264 </reference>
265 </visibleWhen>
266 </command>
267 <command
268 commandId="eu.etaxonomy.taxeditor.editor.name.createSynonymInHomotypicalGroup"
269 label="%command.label.11"
270 style="push">
271 <visibleWhen>
272 <reference
273 definitionId="isSynonym">
274 </reference>
275 </visibleWhen>
276 </command>
277 <separator
278 name="separator1"
279 visible="true">
280 </separator>
281 <command
282 commandId="eu.etaxonomy.taxeditor.editor.name.createMisapplication"
283 label="Misapplication"
284 style="push">
285 <visibleWhen>
286 <or>
287 <reference
288 definitionId="isAcceptedTaxon">
289 </reference>
290 <reference
291 definitionId="isMisapplication">
292 </reference>
293 </or>
294 </visibleWhen>
295 </command>
296 </menu>
297 <!--<command
298 commandId="eu.etaxonomy.taxeditor.editor.name.changeAcceptedToSynonym"
299 label="Change Accepted Taxon to Synonym"
300 style="push">
301 <visibleWhen
302 checkEnabled="true">
303 <reference
304 definitionId="isAcceptedAndHasNoHomotypicSynonyms">
305 </reference>
306 </visibleWhen
307 <visibleWhen>
308 <or>
309 <reference
310 definitionId="isAcceptedTaxon">
311 </reference>
312 <reference
313 definitionId="isMisapplication">
314 </reference>
315 </or>
316 </visibleWhen>
317 </command>-->
318 <menu
319 label="%menu.label.0">
320 <command
321 commandId="eu.etaxonomy.taxeditor.editor.name.changeToAcceptedTaxon"
322 label="%command.label.12"
323 style="push">
324 <visibleWhen>
325 <not>
326 <or>
327 <reference
328 definitionId="isAcceptedTaxon">
329 </reference>
330 <reference
331 definitionId="isMisapplication">
332 </reference>
333 </or>
334 </not>
335 </visibleWhen>
336 </command>
337 <command
338 commandId="eu.etaxonomy.taxeditor.editor.name.changeToSynonym"
339 label="%command.label.13"
340 style="push">
341 <visibleWhen>
342 <not>
343 <or>
344 <reference
345 definitionId="isAcceptedTaxon">
346 </reference>
347 <reference
348 definitionId="isSynonym">
349 </reference>
350 </or>
351 </not>
352 </visibleWhen>
353 </command>
354 <command
355 commandId="eu.etaxonomy.taxeditor.editor.name.changeToMisapplication"
356 label="%command.label.14"
357 style="push">
358 <visibleWhen>
359 <not>
360 <or>
361 <reference
362 definitionId="isAcceptedTaxon">
363 </reference>
364 <reference
365 definitionId="isMisapplication">
366 </reference>
367 </or>
368 </not>
369 </visibleWhen>
370 </command>
371 </menu>
372 <separator
373 name="taxeditor-editor.separator1"
374 visible="true">
375 </separator>
376 <command
377 commandId="org.eclipse.ui.edit.delete"
378 label="%command.label.15"
379 style="push">
380 <visibleWhen>
381 <or>
382 <reference
383 definitionId="isSynonym">
384 </reference>
385 <reference
386 definitionId="isMisapplication">
387 </reference>
388 <reference
389 definitionId="isConceptRelation">
390 </reference>
391 </or>
392 </visibleWhen>
393 </command>
394 <command
395 commandId="eu.etaxonomy.taxeditor.editor.name.deleteAllEmptyNames"
396 label="%command.label.16"
397 style="push">
398 <visibleWhen>
399 <reference
400 definitionId="hasEmptyNames">
401 </reference>
402 </visibleWhen>
403 </command>
404 <separator
405 name="taxeditor-editor.separator2"
406 visible="true">
407 </separator>
408 <dynamic
409 class="eu.etaxonomy.taxeditor.editor.name.handler.GroupBasionymContributionItem"
410 id="taxeditor-editor.dynamic.setBasionym">
411 <visibleWhen>
412 <or>
413 <reference
414 definitionId="isAcceptedTaxon">
415 </reference>
416 <reference
417 definitionId="isSynonym">
418 </reference>
419 </or>
420 </visibleWhen>
421 </dynamic>
422 <command
423 commandId="eu.etaxonomy.taxeditor.editor.name.swapSynonymAndAccepted"
424 label="%command.label.17"
425 style="push">
426 <visibleWhen>
427 <reference
428 definitionId="isSynonym">
429 </reference>
430 </visibleWhen>
431 </command>
432 <separator
433 name="taxeditor-editor.separator3"
434 visible="true">
435 </separator>
436 <command
437 commandId="org.eclipse.ui.views.showView"
438 label="%command.label.18"
439 style="push">
440 <parameter
441 name="org.eclipse.ui.views.showView.viewId"
442 value="eu.etaxonomy.taxeditor.editor.forms.detailsView">
443 </parameter>
444 </command>
445 <separator
446 name="taxeditor-editor.separator4"
447 visible="true">
448 </separator>
449 <command
450 commandId="org.eclipse.ui.file.save"
451 label="%command.label.19"
452 style="push">
453 </command>
454 </menuContribution>
455 <menuContribution
456 locationURI="popup:eu.etaxonomy.taxeditor.editor.key.polytomous">
457 <command
458 commandId="eu.etaxonomy.taxeditor.key.polytomous.command.new"
459 label="%command.label.20"
460 style="push">
461 </command>
462 <separator
463 name="taxeditor-editor.separator1"
464 visible="true">
465 </separator>
466 <command
467 commandId="org.eclipse.ui.edit.delete"
468 label="%command.label.21"
469 style="push">
470 </command>
471 <separator
472 name="taxeditor-editor.separator2"
473 visible="true">
474 </separator>
475 <command
476 commandId="eu.etaxonomy.taxeditor.key.command.applyLayout"
477 label="%command.label.22"
478 style="push">
479 </command>
480 <separator
481 name="taxeditor-editor.separator3"
482 visible="true">
483 </separator>
484 </menuContribution>
485 <menuContribution
486 locationURI="popup:eu.etaxonomy.taxeditor.editor.key.polytomous.list">
487 <command
488 commandId="eu.etaxonomy.taxeditor.key.polytomous.command.new.child"
489 label="%command.label.23"
490 style="push">
491 </command>
492 <command
493 commandId="eu.etaxonomy.taxeditor.key.polytomous.command.new.sibling"
494 label="%command.label.24"
495 style="push">
496 </command>
497 <command
498 commandId="eu.etaxonomy.taxeditor.key.polytomous.command.refresh"
499 label="%command.label.25"
500 style="push">
501 </command>
502 <command
503 commandId="org.eclipse.ui.edit.delete"
504 label="%command.label.26"
505 style="push">
506 </command>
507 </menuContribution>
508 <menuContribution
509 locationURI="popup:eu.etaxonomy.taxeditor.editor.view.descriptive">
510 <command
511 commandId="eu.etaxonomy.taxeditor.description.commands.adddescription"
512 label="%command.label.27"
513 style="push">
514 </command>
515 <separator
516 name="eu.etaxonomy.taxeditor.taxonDescriptionEditor.separator3"
517 visible="true">
518 </separator>
519 <menu
520 label="%menu.label.1">
521 <dynamic
522 class="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.DynamicFeatureMenu"
523 id="eu.etaxonomy.taxeditor.dynamicFeatureMenu">
524 </dynamic>
525 <visibleWhen
526 checkEnabled="true">
527 <or>
528 <reference
529 definitionId="isDescription">
530 </reference>
531 <reference
532 definitionId="isDescriptionElement">
533 </reference>
534 <reference
535 definitionId="isFeatureNodeContainer">
536 </reference>
537 </or>
538 </visibleWhen>
539 </menu>
540 <separator
541 name="taxeditor-editor.separator1"
542 visible="true">
543 </separator>
544 <command
545 commandId="eu.etaxonomy.taxeditor.editor.commands.description.moveDescriptionToTaxon"
546 label="%command.label.28"
547 style="push">
548 <visibleWhen
549 checkEnabled="true">
550 <reference
551 definitionId="isDescription">
552 </reference>
553 </visibleWhen>
554 </command>
555 <command
556 commandId="eu.etaxonomy.taxeditor.description.commands.moveDescriptionElements"
557 label="%command.label.29"
558 style="push">
559 <visibleWhen
560 checkEnabled="true">
561 <or>
562 <reference
563 definitionId="isDescriptionElement">
564 </reference>
565 <reference
566 definitionId="isFeatureNodeContainer">
567 </reference>
568 </or>
569 </visibleWhen>
570 </command>
571 <separator
572 name="eu.etaxonomy.taxeditor.taxonDescriptionEditor.separator.afterNew"
573 visible="true">
574 </separator>
575 <command
576 commandId="org.eclipse.ui.edit.delete"
577 label="%command.label.30"
578 style="push">
579 </command>
580 <separator
581 name="eu.etaxonomy.taxeditor.taxonDescriptionEditor.separator.afterDelete"
582 visible="true">
583 </separator>
584 <command
585 commandId="org.eclipse.ui.file.save"
586 label="%command.label.31"
587 style="push">
588 </command>
589 </menuContribution>
590 <menuContribution
591 locationURI="popup:eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView">
592 <dynamic
593 class="eu.etaxonomy.taxeditor.editor.view.derivate.contextMenu.DerivateViewContextMenu"
594 id="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateContextMenu">
595 </dynamic>
596 </menuContribution>
597 <menuContribution
598 locationURI="popup:eu.etaxonomy.taxeditor.editor.view.dataimport.SpecimenImportEditor">
599 <dynamic
600 class="eu.etaxonomy.taxeditor.editor.view.dataimport.DataImportEditorContextMenu"
601 id="eu.etaxonomy.taxeditor.editor.view.dataimport.DataImportEditorContextMenu">
602 </dynamic>
603 </menuContribution>
604 <menuContribution
605 locationURI="popup:eu.etaxonomy.taxeditor.editor.view.dataimport.GbifImportEditor">
606 <dynamic
607 class="eu.etaxonomy.taxeditor.editor.view.dataimport.DataImportEditorContextMenu"
608 id="eu.etaxonomy.taxeditor.editor.view.dataimport.DataImportEditorContextMenu">
609 </dynamic>
610 </menuContribution>
611
612
613
614
615 <menuContribution
616 locationURI="popup:eu.etaxonomy.taxeditor.editor.view.uses">
617 <command
618 commandId="eu.etaxonomy.taxeditor.use.commands.adduse"
619 label="%command.label.32"
620 style="push">
621 </command>
622 <command
623 commandId="eu.etaxonomy.taxeditor.editor.use.createUseSummary"
624 label="%command.label.33"
625 style="push">
626 <visibleWhen
627 checkEnabled="true">
628 <or>
629 <reference
630 definitionId="isDescription">
631 </reference>
632 <reference
633 definitionId="isDescriptionElement">
634 </reference>
635 <reference
636 definitionId="isFeatureNodeContainer">
637 </reference>
638 </or>
639 </visibleWhen>
640 </command>
641 <command
642 commandId="eu.etaxonomy.taxeditor.editor.use.createUseRecord"
643 label="%command.label.34"
644 style="push">
645 <visibleWhen
646 checkEnabled="true">
647 <or>
648 <reference
649 definitionId="isDescription">
650 </reference>
651 <reference
652 definitionId="isDescriptionElement">
653 </reference>
654 <reference
655 definitionId="isFeatureNodeContainer">
656 </reference>
657 </or>
658 </visibleWhen>
659 </command>
660 <separator
661 name="eu.etaxonomy.taxeditor.usesEditor.separator3"
662 visible="true">
663 </separator>
664 <separator
665 name="taxeditor-editor.separator1"
666 visible="true">
667 </separator>
668 <separator
669 name="eu.etaxonomy.taxeditor.taxonDescriptionEditor.separator.afterNew"
670 visible="true">
671 </separator>
672 <command
673 commandId="org.eclipse.ui.edit.delete"
674 label="%command.label.35"
675 style="push">
676 </command>
677 <separator
678 name="eu.etaxonomy.taxeditor.taxonDescriptionEditor.separator.afterDelete"
679 visible="true">
680 </separator>
681 <command
682 commandId="org.eclipse.ui.file.save"
683 label="%command.label.36"
684 style="push">
685 </command>
686 </menuContribution>
687
688
689
690
691
692 <menuContribution
693 locationURI="popup:eu.etaxonomy.taxeditor.editor.view.media">
694 <command
695 commandId="taxeditor-editor.command.newimagegallery"
696 label="%command.label.37"
697 style="push">
698 </command>
699 <separator
700 name="taxeditor-editor.separator1"
701 visible="true">
702 </separator>
703 <command
704 commandId="taxeditor-editor.newimage"
705 label="%command.label.38"
706 style="push">
707 <visibleWhen>
708 <reference
709 definitionId="isImageGallery">
710 </reference>
711 </visibleWhen>
712 </command>
713 <command
714 commandId="taxeditor-editor.command.moveimgdown"
715 label="%command.label.39"
716 style="push">
717 <visibleWhen>
718 <reference
719 definitionId="isMedia">
720 </reference>
721 </visibleWhen>
722 </command>
723 <command
724 commandId="taxeditor-editor.command.moveimgup"
725 label="%command.label.40"
726 style="push">
727 <visibleWhen>
728 <reference
729 definitionId="isMedia">
730 </reference>
731 </visibleWhen>
732 </command>
733 <separator
734 name="taxeditor-editor.separator2"
735 visible="true">
736 </separator>
737 <command
738 commandId="org.eclipse.ui.edit.delete"
739 label="%command.label.41"
740 style="push">
741 </command>
742 <command
743 commandId="org.eclipse.ui.file.save"
744 label="%command.label.42"
745 style="push">
746 </command>
747 </menuContribution>
748 <menuContribution
749 locationURI="popup:eu.etaxonomy.taxeditor.editor.view.concept">
750 <menu
751 label="%menu.label.3">
752 <dynamic
753 class="eu.etaxonomy.taxeditor.editor.view.concept.handler.CreateConceptRelationMenu"
754 id="eu.etaxonomy.taxeditor.editor.view.concept.menus.new">
755 </dynamic>
756 </menu>
757 <command
758 commandId="eu.etaxonomy.taxeditor.editor.view.concept.command.open"
759 label="%command.label.43"
760 style="push">
761 </command>
762 <separator
763 name="eu.etaxonomy.taxeditor.editor.view.concept.menu.separator1"
764 visible="true">
765 </separator>
766 <command
767 commandId="org.eclipse.ui.edit.delete"
768 label="%command.label.44"
769 style="push">
770 </command>
771 </menuContribution>
772 <menuContribution
773 allPopups="false"
774 locationURI="popup:#BulkEditorContext?before=taxeditor-bulkeditor.separator1">
775 <command
776 commandId="eu.etaxonomy.taxeditor.group.cdmauthorities.edit"
777 label="%command.label.45"
778 style="push">
779 <visibleWhen>
780 <reference
781 definitionId="isGroup">
782 </reference>
783 </visibleWhen>
784 </command>
785 </menuContribution>
786 </extension>
787 <extension
788 point="org.eclipse.ui.handlers">
789 <handler
790 class="org.eclipse.ui.internal.handlers.NewEditorHandler"
791 commandId="org.eclipse.ui.window.newEditor">
792 <activeWhen>
793 <not>
794 <instanceof
795 value="eu.etaxonomy.taxeditor.editor.name.TaxonNameEditor">
796 </instanceof>
797 </not>
798 </activeWhen>
799 <enabledWhen>
800 <count
801 value="-1">
802 </count>
803 </enabledWhen>
804 </handler>
805 <handler
806 class="eu.etaxonomy.taxeditor.editor.name.handler.DeleteTaxonBaseHandler"
807 commandId="org.eclipse.ui.edit.delete">
808 <activeWhen>
809 <and>
810 <reference
811 definitionId="isTaxonBase">
812 </reference>
813 <not>
814 <reference
815 definitionId="isAcceptedTaxon">
816 </reference>
817 </not>
818 </and>
819 </activeWhen>
820 </handler>
821 <handler
822 class="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.DeleteHandler"
823 commandId="org.eclipse.ui.edit.delete">
824 <activeWhen>
825 <with
826 variable="activePartId">
827 <or>
828 <equals
829 value="eu.etaxonomy.taxeditor.editor.view.descriptive">
830 </equals>
831 <equals
832 value="eu.etaxonomy.taxeditor.editor.view.media">
833 </equals>
834 </or>
835 </with>
836 </activeWhen>
837 </handler>
838 <handler
839 class="eu.etaxonomy.taxeditor.editor.key.polytomous.handler.DeleteNodeHandler"
840 commandId="org.eclipse.ui.edit.delete">
841 <activeWhen>
842 <with
843 variable="activePartId">
844 <equals
845 value="eu.etaxonomy.taxeditor.editor.key">
846 </equals>
847 </with>
848 </activeWhen>
849 </handler>
850 <handler
851 class="eu.etaxonomy.taxeditor.editor.view.concept.handler.DeleteConceptRelationHandler"
852 commandId="org.eclipse.ui.edit.delete">
853 <activeWhen>
854 <with
855 variable="activePartId">
856 <equals
857 value="eu.etaxonomy.taxeditor.editor.view.concept">
858 </equals>
859 </with>
860 </activeWhen>
861 </handler>
862 <handler
863 class="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.DeleteHandler"
864 commandId="org.eclipse.ui.edit.delete">
865 <activeWhen>
866 <with
867 variable="activePartId">
868 <equals
869 value="eu.etaxonomy.taxeditor.editor.view.uses">
870 </equals>
871 </with>
872 </activeWhen>
873 </handler>
874 <handler
875 class="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistEditorHandler"
876 commandId="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistEditorHandler">
877 </handler>
878 </extension>
879 <extension
880 name="%extension.name"
881 point="org.eclipse.ui.commands">
882 <category
883 id="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
884 name="%category.name.0">
885 </category>
886 <command
887 categoryId="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
888 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.OpenParentHandler"
889 id="eu.etaxonomy.taxeditor.editor.command.openParent"
890 name="%command.name">
891 </command>
892 <command
893 categoryId="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
894 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.CreateHomotypicSynonymHandler"
895 id="eu.etaxonomy.taxeditor.editor.name.createHomotypicSynoym"
896 name="%command.name.0">
897 </command>
898 <command
899 categoryId="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
900 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.CreateHeterotypicSynonymHandler"
901 id="eu.etaxonomy.taxeditor.editor.name.createHeterotypicSynoym"
902 name="%command.name.1">
903 </command>
904 <command
905 categoryId="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
906 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.CreateSynonymInHomotypicalGroupHandler"
907 id="eu.etaxonomy.taxeditor.editor.name.createSynonymInHomotypicalGroup"
908 name="%command.name.2">
909 </command>
910 <command
911 categoryId="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
912 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.CreateMisapplicationHandler"
913 id="eu.etaxonomy.taxeditor.editor.name.createMisapplication"
914 name="Create Misapplication">
915 </command>
916 <!--command
917 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.MoveTaxonHandler"
918 id="eu.etaxonomy.taxeditor.editor.name.moveTaxon"
919 name="Move Taxon">
920 </command-->
921 <command
922 categoryId="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
923 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeToSynonymHandler"
924 id="eu.etaxonomy.taxeditor.editor.name.changeToSynonym"
925 name="%command.name.3">
926 </command>
927 <command
928 categoryId="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
929 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeSynonymToAcceptedTaxonHandler"
930 id="eu.etaxonomy.taxeditor.editor.name.changeToAcceptedTaxon"
931 name="%command.name.4">
932 </command>
933 <command
934 categoryId="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
935 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeToMisapplicationHandler"
936 id="eu.etaxonomy.taxeditor.editor.name.changeToMisapplication"
937 name="%command.name.5">
938 </command>
939 <command
940 categoryId="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
941 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.SwapSynonymAndAcceptedHandler"
942 id="eu.etaxonomy.taxeditor.editor.name.swapSynonymAndAccepted"
943 name="%command.name.6">
944 </command>
945 <command
946 categoryId="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
947 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.SetBasionymHandler"
948 id="eu.etaxonomy.taxeditor.editor.name.setBasionym"
949 name="%command.name.7">
950 </command>
951 <command
952 categoryId="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
953 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.RemoveBasionymHandler"
954 id="eu.etaxonomy.taxeditor.editor.name.removeBasionym"
955 name="%command.name.8">
956 </command>
957 <!-- <command
958 categoryId="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
959 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeAcceptedTaxonToSynonymHandler"
960 id="eu.etaxonomy.taxeditor.editor.name.changeAcceptedToSynonym"
961 name="Change Accepted Taxon to Synonym">
962 </command>-->
963 <command
964 categoryId="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
965 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.DeleteAllEmptyNamesHandler"
966 id="eu.etaxonomy.taxeditor.editor.name.deleteAllEmptyNames"
967 name="%command.name.9">
968 </command>
969 <category
970 id="eu.etaxonomy.taxeditor.editor.view.descriptive.command.category"
971 name="%category.name.1">
972 </category>
973 <command
974 categoryId="eu.etaxonomy.taxeditor.editor.view.descriptive.command.category"
975 defaultHandler="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.CreateDescriptionElementHandler"
976 id="eu.etaxonomy.taxeditor.editor.description.createDescriptionElement"
977 name="%command.name.10">
978 </command>
979 <command
980 categoryId="eu.etaxonomy.taxeditor.editor.view.descriptive.command.category"
981 defaultHandler="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.CreateDescriptionHandler"
982 id="eu.etaxonomy.taxeditor.description.commands.adddescription"
983 name="%command.name.11">
984 </command>
985 <command
986 categoryId="eu.etaxonomy.taxeditor.editor.view.descriptive.command.category"
987 defaultHandler="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.MoveDescriptionElementsHandler"
988 id="eu.etaxonomy.taxeditor.description.commands.moveDescriptionElements"
989 name="%command.name.12">
990 </command>
991 <command
992 categoryId="eu.etaxonomy.taxeditor.editor.view.descriptive.command.category"
993 defaultHandler="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.MoveDescriptionToOtherTaxonHandler"
994 id="eu.etaxonomy.taxeditor.editor.commands.description.moveDescriptionToTaxon"
995 name="%command.name.13">
996 </command>
997 <category
998 id="eu.etaxonomy.taxeditor.editor.view.uses.command.category"
999 name="%category.name.2">
1000 </category>
1001 <command
1002 categoryId="eu.etaxonomy.taxeditor.editor.view.uses.command.category"
1003 defaultHandler="eu.etaxonomy.taxeditor.editor.view.uses.handler.CreateUseHandler"
1004 id="eu.etaxonomy.taxeditor.use.commands.adduse"
1005 name="%command.name.14">
1006 </command>
1007 <command
1008 categoryId="eu.etaxonomy.taxeditor.editor.view.uses.command.category"
1009 defaultHandler="eu.etaxonomy.taxeditor.editor.view.uses.handler.CreateUseSummaryHandler"
1010 id="eu.etaxonomy.taxeditor.editor.use.createUseSummary"
1011 name="%command.name.15">
1012 </command>
1013 <command
1014 categoryId="eu.etaxonomy.taxeditor.editor.view.uses.command.category"
1015 defaultHandler="eu.etaxonomy.taxeditor.editor.view.uses.handler.CreateUseRecordHandler"
1016 id="eu.etaxonomy.taxeditor.editor.use.createUseRecord"
1017 name="%command.name.16">
1018 </command>
1019 <category
1020 id="eu.etaxonomy.taxeditor.editor.media.category"
1021 name="%category.name.3">
1022 </category>
1023 <command
1024 categoryId="eu.etaxonomy.taxeditor.editor.media.category"
1025 defaultHandler="eu.etaxonomy.taxeditor.editor.view.media.handler.MoveImageDownInListHandler"
1026 id="taxeditor-editor.command.moveimgdown"
1027 name="%command.name.19">
1028 </command>
1029 <command
1030 categoryId="eu.etaxonomy.taxeditor.editor.media.category"
1031 defaultHandler="eu.etaxonomy.taxeditor.editor.view.media.handler.AddImageGalleryHandler"
1032 id="taxeditor-editor.command.newimagegallery"
1033 name="%command.name.20">
1034 </command>
1035 <command
1036 categoryId="eu.etaxonomy.taxeditor.editor.media.category"
1037 defaultHandler="eu.etaxonomy.taxeditor.editor.view.media.handler.CreateMediaHandler"
1038 id="taxeditor-editor.newimage"
1039 name="%command.name.21">
1040 </command>
1041 <command
1042 categoryId="eu.etaxonomy.taxeditor.editor.media.category"
1043 defaultHandler="eu.etaxonomy.taxeditor.editor.view.media.handler.MoveImageUpInListHandler"
1044 id="taxeditor-editor.command.moveimgup"
1045 name="%command.name.22">
1046 </command>
1047 <category
1048 id="eu.etaxonomy.taxeditor.editor.new.category"
1049 name="%category.name.4">
1050 </category>
1051 <command
1052 categoryId="eu.etaxonomy.taxeditor.editor.new.category"
1053 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewReferenceHandler"
1054 id="eu.etaxonomy.taxeditor.editor.command.new.reference"
1055 name="%command.name.23">
1056 </command>
1057 <command
1058 categoryId="eu.etaxonomy.taxeditor.editor.new.category"
1059 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewNameHandler"
1060 id="eu.etaxonomy.taxeditor.editor.command.new.name"
1061 name="%command.name.24">
1062 </command>
1063 <command
1064 categoryId="eu.etaxonomy.taxeditor.editor.new.category"
1065 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewTeamHandler"
1066 id="eu.etaxonomy.taxeditor.editor.command.new.team"
1067 name="%command.name.25">
1068 </command>
1069 <command
1070 categoryId="eu.etaxonomy.taxeditor.editor.new.category"
1071 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewPersonHandler"
1072 id="eu.etaxonomy.taxeditor.editor.command.new.person"
1073 name="%command.name.26">
1074 </command>
1075 <command
1076 categoryId="eu.etaxonomy.taxeditor.editor.new.category"
1077 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewSpecimenHandler"
1078 id="eu.etaxonomy.taxeditor.editor.command.new.specimen"
1079 name="%command.name.27">
1080 </command>
1081 <category
1082 id="eu.etaxonomy.taxeditor.editor.key.category"
1083 name="%category.name.5">
1084 </category>
1085 <command
1086 categoryId="eu.etaxonomy.taxeditor.editor.key.category"
1087 defaultHandler="eu.etaxonomy.taxeditor.editor.key.polytomous.handler.CreateChildNodeHandler"
1088 id="eu.etaxonomy.taxeditor.key.polytomous.command.new.child"
1089 name="%command.name.28">
1090 </command>
1091 <command
1092 categoryId="eu.etaxonomy.taxeditor.editor.key.category"
1093 defaultHandler="eu.etaxonomy.taxeditor.editor.key.polytomous.handler.CreateSiblingNodeHandler"
1094 id="eu.etaxonomy.taxeditor.key.polytomous.command.new.sibling"
1095 name="%command.name.29">
1096 </command>
1097 <command
1098 categoryId="eu.etaxonomy.taxeditor.editor.key.category"
1099 defaultHandler="eu.etaxonomy.taxeditor.editor.key.polytomous.handler.RefreshNodeNumberingHandler"
1100 id="eu.etaxonomy.taxeditor.key.polytomous.command.refresh"
1101 name="%command.name.30">
1102 </command>
1103 <command
1104 categoryId="eu.etaxonomy.taxeditor.editor.key.category"
1105 defaultHandler="eu.etaxonomy.taxeditor.editor.key.handler.ApplyLayoutHandler"
1106 id="eu.etaxonomy.taxeditor.key.command.applyLayout"
1107 name="%command.name.31">
1108 </command>
1109 <category
1110 id="eu.etaxonomy.taxeditor.editor.view.concept.category"
1111 name="%category.name.6">
1112 </category>
1113 <command
1114 categoryId="eu.etaxonomy.taxeditor.editor.view.concept.category"
1115 defaultHandler="eu.etaxonomy.taxeditor.editor.view.concept.handler.CreateConceptRelationHandler"
1116 id="eu.etaxonomy.taxeditor.editor.name.createConceptRelation"
1117 name="%command.name.32">
1118 </command>
1119 <command
1120 categoryId="eu.etaxonomy.taxeditor.editor.view.concept.category"
1121 defaultHandler="eu.etaxonomy.taxeditor.editor.view.concept.handler.OpenRelatedConceptHandler"
1122 id="eu.etaxonomy.taxeditor.editor.view.concept.command.open"
1123 name="%command.name.33">
1124 </command>
1125 <category
1126 id="eu.etaxonomy.taxeditor.bulkeditor.group.category"
1127 name="%category.name.7">
1128 </category>
1129 <command
1130 categoryId="eu.etaxonomy.taxeditor.bulkeditor.group.category"
1131 defaultHandler="eu.etaxonomy.taxeditor.editor.group.authority.handler.EditCdmAuthoritiesHandler"
1132 id="eu.etaxonomy.taxeditor.group.cdmauthorities.edit"
1133 name="%command.name.34">
1134 </command>
1135 <command
1136 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.OpenDerivateViewHandler"
1137 id="eu.etaxonomy.taxeditor.editor.handler.openDerivateView"
1138 name="%command.name.35">
1139 </command>
1140 <command
1141 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistEditorHandler"
1142 id="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistViewHandler"
1143 name="Open Checklist Editor">
1144 </command>
1145 <command
1146 categoryId="eu.etaxonomy.taxeditor.editor.new.category"
1147 defaultHandler="eu.etaxonomy.taxeditor.view.datasource.handler.CreateDataSourceHandler"
1148 id="eu.etaxonomy.taxeditor.editor.command.new.datasource"
1149 name="New Datasource">
1150 </command>
1151 </extension>
1152 <extension
1153 point="org.eclipse.core.expressions.definitions">
1154 <definition
1155 id="nameEditorActive">
1156 <with
1157 variable="activeEditorId">
1158 <equals
1159 value="eu.etaxonomy.taxeditor.editor.multipagetaxonview">
1160 </equals>
1161 </with>
1162 </definition>
1163 <definition
1164 id="isAcceptedTaxon">
1165 <with
1166 variable="selection">
1167 <test
1168 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isAcceptedTaxon">
1169 </test>
1170 </with>
1171 </definition>
1172 <definition
1173 id="isSynonym">
1174 <with
1175 variable="selection">
1176 <test
1177 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isSynonym">
1178 </test>
1179 </with>
1180 </definition>
1181 <definition
1182 id="isMisapplication">
1183 <with
1184 variable="selection">
1185 <test
1186 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isMisapplication">
1187 </test>
1188 </with>
1189 </definition>
1190 <definition
1191 id="isTaxonBase">
1192 <with
1193 variable="selection">
1194 <test
1195 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isTaxonBase">
1196 </test>
1197 </with>
1198 </definition>
1199 <definition
1200 id="hasEmptyNames">
1201 <with
1202 variable="selection">
1203 <test
1204 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.hasEmptyNames">
1205 </test>
1206 </with>
1207 </definition>
1208 <definition
1209 id="isDeletable">
1210 <with
1211 variable="selection">
1212 <test
1213 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDeletable">
1214 </test>
1215 </with>
1216 </definition>
1217 <definition
1218 id="isMedia">
1219 <with
1220 variable="selection">
1221 <test
1222 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isMedia">
1223 </test>
1224 </with>
1225 </definition>
1226 <definition
1227 id="isTaxonEditor">
1228 <with
1229 variable="selection">
1230 <test
1231 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isTaxonEditor">
1232 </test>
1233 </with>
1234 </definition>
1235 <definition
1236 id="isDescription">
1237 <with
1238 variable="selection">
1239 <test
1240 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDescription">
1241 </test>
1242 </with>
1243 </definition>
1244 <definition
1245 id="isDescriptionElement">
1246 <with
1247 variable="selection">
1248 <test
1249 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDescriptionElement">
1250 </test>
1251 </with>
1252 </definition>
1253 <definition
1254 id="isFeatureNodeContainer">
1255 <with
1256 variable="selection">
1257 <test
1258 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isFeatureNodeContainer">
1259 </test>
1260 </with>
1261 </definition>
1262 <definition
1263 id="isImageGallery">
1264 <with
1265 variable="selection">
1266 <test
1267 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isImageGallery">
1268 </test>
1269 </with>
1270 </definition>
1271 <definition
1272 id="isAcceptedAndHasNoHomotypicSynonyms">
1273 <with
1274 variable="selection">
1275 <test
1276 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isAcceptedAndHasNoHomotypicSynonyms">
1277 </test>
1278 </with>
1279 </definition>
1280 <definition
1281 id="isGroup">
1282 <with
1283 variable="activeEditor">
1284 <test
1285 property="taxeditor-bulkeditor.propertyTester.isGroup">
1286 </test>
1287 </with>
1288 </definition>
1289 </extension>
1290 <extension
1291 point="org.eclipse.core.expressions.propertyTesters">
1292 <propertyTester
1293 class="eu.etaxonomy.taxeditor.editor.name.handler.NameEditorMenuPropertyTester"
1294 id="eu.etaxonomy.taxeditor.editor.name.propertyTester"
1295 namespace="eu.etaxonomy.taxeditor.editor.name.propertyTester"
1296 properties="isAcceptedTaxon,isSynonym,isMisapplication,isTaxonBase,hasEmptyNames,isAcceptedAndHasNoHomotypicSynonyms"
1297 type="org.eclipse.jface.viewers.IStructuredSelection">
1298 </propertyTester>
1299 <propertyTester
1300 class="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.DescriptionsMenuPropertyTester"
1301 id="eu.etaxonomy.taxeditor.descriptions.PropertyTester"
1302 namespace="eu.etaxonomy.taxeditor.descriptions.propertyTester"
1303 properties="isMedia,isDescription,isDescriptionElement,isDeletable,isFeatureNodeContainer,isImageGallery,isTaxonEditor"
1304 type="org.eclipse.jface.viewers.TreeSelection">
1305 </propertyTester>
1306 <propertyTester
1307 class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"
1308 id="taxeditor-bulkeditor.PropertyTester"
1309 namespace="taxeditor-bulkeditor.propertyTester"
1310 properties="isGroup"
1311 type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
1312 </propertyTester>
1313 </extension>
1314 <extension
1315 point="org.eclipse.ui.bindings">
1316 <scheme
1317 description="%scheme.description"
1318 id="eu.etaxonomy.taxeditor.bindings.scheme.default"
1319 name="%scheme.name">
1320 </scheme>
1321 </extension>
1322 <extension
1323 point="org.eclipse.ui.importWizards">
1324 <wizard
1325 category="eu.etaxonomy.taxeditor.import.category.cdm"
1326 class="eu.etaxonomy.taxeditor.editor.view.dataimport.SpecimenSearchWizard"
1327 id="eu.etaxonomy.taxeditor.editor.view.dataimport.SpecimenSearchWizard"
1328 name="Specimen Search/Import">
1329 <description>
1330 Queries data provider for specimens with specified parameters.
1331 Note: Query results are currently limited to 100.
1332 </description>
1333 </wizard>
1334 </extension>
1335 </plugin>