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