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