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