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