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