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