a54e298ac9129ee64bb85bd598cc3ba4cc28f097
[taxeditor.git] / 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.newWizards">
25 <wizard
26 category="eu.etaxonomy.taxeditor.new.category.cdm"
27 class="eu.etaxonomy.taxeditor.editor.newWizard.NewReferenceWizard"
28 hasPages="true"
29 id="eu.etaxonomy.taxeditor.new.reference"
30 name="Reference">
31 </wizard>
32 <wizard
33 category="eu.etaxonomy.taxeditor.new.category.cdm"
34 class="eu.etaxonomy.taxeditor.editor.newWizard.NewNonViralNameWizard"
35 hasPages="true"
36 id="eu.etaxonomy.taxeditor.new.nonViralName"
37 name="Name">
38 </wizard>
39 <wizard
40 category="eu.etaxonomy.taxeditor.new.category.cdm"
41 class="eu.etaxonomy.taxeditor.editor.newWizard.NewTeamWizard"
42 hasPages="true"
43 id="eu.etaxonomy.taxeditor.new.team"
44 name="Team">
45 </wizard>
46 <wizard
47 category="eu.etaxonomy.taxeditor.new.category.cdm"
48 class="eu.etaxonomy.taxeditor.editor.newWizard.NewPersonWizard"
49 hasPages="true"
50 id="eu.etaxonomy.taxeditor.new.person"
51 name="Person">
52 </wizard>
53 <wizard
54 category="eu.etaxonomy.taxeditor.new.category.cdm"
55 class="eu.etaxonomy.taxeditor.editor.newWizard.NewDerivedUnitBaseWizard"
56 hasPages="true"
57 id="eu.etaxonomy.taxeditor.new.specimen"
58 name="Specimen">
59 </wizard>
60 <wizard
61 category="eu.etaxonomy.taxeditor.new.category.cdm"
62 class="eu.etaxonomy.taxeditor.editor.newWizard.NewPolytomousKeyWizard"
63 hasPages="true"
64 id="eu.etaxonomy.taxeditor.new.key.polytomous"
65 name="Polytomous Key">
66 </wizard>
67 </extension>
68 <extension
69 point="org.eclipse.ui.editors">
70 <editor
71 class="eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor"
72 icon="icons/edit_16x16.gif"
73 id="eu.etaxonomy.taxeditor.editor.multipagetaxonview"
74 name="Multitabbed Taxon Editor">
75 </editor>
76 <editor
77 class="eu.etaxonomy.taxeditor.editor.name.TaxonNameEditor"
78 default="true"
79 id="eu.etaxonomy.taxeditor.taxonNameEditor"
80 name="Taxon Name Editor">
81 </editor>
82 <editor
83 class="eu.etaxonomy.taxeditor.editor.descriptiontree.TaxonDescriptionTreeEditor"
84 default="false"
85 id="eu.etaxonomy.taxeditor.descriptiontreeeditor"
86 name="Taxon Description Editor">
87 </editor>
88 <editor
89 class="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyEditor"
90 default="false"
91 id="eu.etaxonomy.taxeditor.editor.key.polytomous"
92 name="Polytomous Key Editor">
93 </editor>
94 </extension>
95 <extension
96 point="org.eclipse.ui.views">
97 <view
98 allowMultiple="false"
99 class="eu.etaxonomy.taxeditor.editor.view.detail.DetailsViewPart"
100 icon="icons/accessories-text-editor.png"
101 id="eu.etaxonomy.taxeditor.editor.forms.detailsView"
102 name="Details"
103 restorable="true">
104 </view>
105 <view
106 allowMultiple="false"
107 class="eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptiveViewPart"
108 icon="icons/address-book-new.png"
109 id="eu.etaxonomy.taxeditor.editor.view.description"
110 name="Descriptive"
111 restorable="true">
112 </view>
113 <view
114 allowMultiple="false"
115 class="eu.etaxonomy.taxeditor.editor.view.supplementaldata.SupplementalDataViewPart"
116 icon="icons/applications-office.png"
117 id="eu.etaxonomy.taxeditor.editor.view.supplementalData"
118 name="Supplemental Data"
119 restorable="true">
120 </view>
121 <view
122 allowMultiple="false"
123 class="eu.etaxonomy.taxeditor.editor.view.media.MediaViewPart"
124 icon="icons/camera-photo.png"
125 id="eu.etaxonomy.taxeditor.editor.view.media"
126 name="Media"
127 restorable="true">
128 </view>
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.TaxonEditorInputFactory">
135 </factory>
136 </extension>
137 <extension
138 point="org.eclipse.ui.menus">
139 <menuContribution
140 locationURI="menu:eu.etaxonomy.taxeditor.menu.showView">
141 <command
142 commandId="org.eclipse.ui.views.showView"
143 label="Details"
144 style="push">
145 <parameter
146 name="org.eclipse.ui.views.showView.viewId"
147 value="eu.etaxonomy.taxeditor.editor.forms.detailsView">
148 </parameter>
149 </command>
150 <command
151 commandId="org.eclipse.ui.views.showView"
152 label="Descriptive"
153 style="push">
154 <parameter
155 name="org.eclipse.ui.views.showView.viewId"
156 value="eu.etaxonomy.taxeditor.editor.view.description">
157 </parameter>
158 </command>
159 <command
160 commandId="org.eclipse.ui.views.showView"
161 label="Supplemental"
162 style="push">
163 <parameter
164 name="org.eclipse.ui.views.showView.viewId"
165 value="eu.etaxonomy.taxeditor.editor.view.supplementalData">
166 </parameter>
167 </command>
168 <command
169 commandId="org.eclipse.ui.views.showView"
170 label="Media"
171 style="push">
172 <parameter
173 name="org.eclipse.ui.views.showView.viewId"
174 value="eu.etaxonomy.taxeditor.editor.view.media">
175 </parameter>
176 </command>
177 </menuContribution>
178 </extension>
179 <extension
180 point="org.eclipse.ui.menus">
181 <menuContribution
182 locationURI="menu:org.eclipse.ui.main.menu.navigate">
183 <command
184 commandId="eu.etaxonomy.taxeditor.editor.command.openParent"
185 label="Open Parent"
186 style="push">
187 </command>
188 </menuContribution>
189 </extension>
190 <extension
191 point="org.eclipse.ui.commands">
192 <command
193 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.OpenParentHandler"
194 id="eu.etaxonomy.taxeditor.editor.command.openParent"
195 name="Open Parent">
196 </command>
197 </extension>
198 <extension
199 point="org.eclipse.ui.menus">
200 <menuContribution
201 locationURI="popup:eu.etaxonomy.taxeditor.taxonNameEditor">
202 <menu
203 label="New">
204 <command
205 commandId="eu.etaxonomy.taxeditor.editor.name.createHeterotypicSynoym"
206 label="Heterotypic Synonym"
207 style="push">
208 <visibleWhen>
209 <reference
210 definitionId="isAcceptedTaxon">
211 </reference>
212 </visibleWhen>
213 </command>
214 <command
215 commandId="eu.etaxonomy.taxeditor.editor.name.createHomotypicSynoym"
216 label="Homotypic Synonym"
217 style="push">
218 <visibleWhen>
219 <reference
220 definitionId="isAcceptedTaxon">
221 </reference>
222 </visibleWhen>
223 </command>
224 <command
225 commandId="eu.etaxonomy.taxeditor.editor.name.createSynonymInHomotypicalGroup"
226 label="Synonym In Homotypical Group"
227 style="push">
228 <visibleWhen>
229 <reference
230 definitionId="isSynonym">
231 </reference>
232 </visibleWhen>
233 </command>
234 <separator
235 name="separator1"
236 visible="true">
237 </separator>
238 <menu
239 label="Concept Relation">
240 <visibleWhen>
241 <or>
242 <reference
243 definitionId="isAcceptedTaxon">
244 </reference>
245 <reference
246 definitionId="isConceptRelation">
247 </reference>
248 </or>
249 </visibleWhen>
250 <dynamic
251 class="eu.etaxonomy.taxeditor.editor.name.handler.CreateConceptRelationMenu"
252 id="eu.etaxonomy.taxeditor.editor.dynamicConceptRelationMenu">
253 </dynamic>
254 </menu>
255 <command
256 commandId="eu.etaxonomy.taxeditor.editor.name.createMisapplication"
257 label="Misapplication"
258 style="push">
259 <visibleWhen>
260 <or>
261 <reference
262 definitionId="isAcceptedTaxon">
263 </reference>
264 <reference
265 definitionId="isMisapplication">
266 </reference>
267 </or>
268 </visibleWhen>
269 </command>
270 </menu>
271 <command
272 commandId="eu.etaxonomy.taxeditor.editor.name.changeAcceptedToSynonym"
273 label="Change Accepted Taxon to Synonym"
274 style="push">
275 <visibleWhen>
276 <reference
277 definitionId="isAcceptedTaxon">
278 </reference>
279 </visibleWhen>
280 </command>
281 <menu
282 label="Change To">
283 <command
284 commandId="eu.etaxonomy.taxeditor.editor.name.changeToAcceptedTaxon"
285 label="Accepted Taxon"
286 style="push">
287 <visibleWhen>
288 <not>
289 <or>
290 <reference
291 definitionId="isAcceptedTaxon">
292 </reference>
293 <reference
294 definitionId="isConceptRelation">
295 </reference>
296 <reference
297 definitionId="isMisapplication">
298 </reference>
299 </or>
300 </not>
301 </visibleWhen>
302 </command>
303 <command
304 commandId="eu.etaxonomy.taxeditor.editor.name.changeToSynonym"
305 label="Synonym"
306 style="push">
307 <visibleWhen>
308 <not>
309 <or>
310 <reference
311 definitionId="isAcceptedTaxon">
312 </reference>
313 <reference
314 definitionId="isSynonym">
315 </reference>
316 </or>
317 </not>
318 </visibleWhen>
319 </command>
320 <menu
321 label="Concept Relation">
322 <visibleWhen>
323 <not>
324 <or>
325 <reference
326 definitionId="isAcceptedTaxon">
327 </reference>
328 <reference
329 definitionId="isConceptRelation">
330 </reference>
331 </or>
332 </not>
333 </visibleWhen>
334 <dynamic
335 class="eu.etaxonomy.taxeditor.editor.name.handler.ChangeToConceptRelationMenu"
336 id="eu.etaxonomy.taxeditor.editor.dynamicConceptRelationMenu">
337 </dynamic>
338 </menu>
339 <command
340 commandId="eu.etaxonomy.taxeditor.editor.name.changeToMisapplication"
341 label="Misapplication"
342 style="push">
343 <visibleWhen>
344 <not>
345 <or>
346 <reference
347 definitionId="isAcceptedTaxon">
348 </reference>
349 <reference
350 definitionId="isMisapplication">
351 </reference>
352 </or>
353 </not>
354 </visibleWhen>
355 </command>
356 </menu>
357 <menu
358 label="Change Relation Type">
359 <visibleWhen>
360 <reference
361 definitionId="isConceptRelation">
362 </reference>
363 </visibleWhen>
364 <dynamic
365 class="eu.etaxonomy.taxeditor.editor.name.handler.ChangeConceptRelationshipTypeMenu"
366 id="eu.etaxonomy.taxeditor.editor.dynamicConceptRelationMenu">
367 </dynamic>
368 </menu>
369 <separator
370 name="taxeditor-editor.separator1"
371 visible="true">
372 </separator>
373 <command
374 commandId="org.eclipse.ui.edit.delete"
375 label="Delete"
376 style="push">
377 <visibleWhen>
378 <or>
379 <reference
380 definitionId="isSynonym">
381 </reference>
382 <reference
383 definitionId="isMisapplication">
384 </reference>
385 <reference
386 definitionId="isConceptRelation">
387 </reference>
388 </or>
389 </visibleWhen>
390 </command>
391 <separator
392 name="taxeditor-editor.separator2"
393 visible="true">
394 </separator>
395 <dynamic
396 class="eu.etaxonomy.taxeditor.editor.name.handler.GroupBasionymContributionItem"
397 id="taxeditor-editor.dynamic.setBasionym">
398 <visibleWhen>
399 <or>
400 <reference
401 definitionId="isAcceptedTaxon">
402 </reference>
403 <reference
404 definitionId="isSynonym">
405 </reference>
406 </or>
407 </visibleWhen>
408 </dynamic>
409 <command
410 commandId="eu.etaxonomy.taxeditor.editor.name.swapSynonymAndAccepted"
411 label="Swap Synonym With Accepted"
412 style="push">
413 <visibleWhen>
414 <reference
415 definitionId="isSynonym">
416 </reference>
417 </visibleWhen>
418 </command>
419 <separator
420 name="taxeditor-editor.separator3"
421 visible="true">
422 </separator>
423 <command
424 commandId="eu.etaxonomy.taxeditor.editor.commands.showDetailsView"
425 label="Show Details"
426 style="push">
427 </command>
428 <separator
429 name="taxeditor-editor.separator4"
430 visible="true">
431 </separator>
432 <command
433 commandId="org.eclipse.ui.file.save"
434 label="Save"
435 style="push">
436 </command>
437 </menuContribution>
438 </extension>
439 <extension
440 point="org.eclipse.ui.handlers">
441 <handler
442 class="org.eclipse.ui.internal.handlers.NewEditorHandler"
443 commandId="org.eclipse.ui.window.newEditor">
444 <activeWhen>
445 <not>
446 <instanceof
447 value="eu.etaxonomy.taxeditor.editor.name.TaxonNameEditor">
448 </instanceof>
449 </not>
450 </activeWhen>
451 <enabledWhen>
452 <count
453 value="-1">
454 </count>
455 </enabledWhen>
456 </handler>
457 <handler
458 class="eu.etaxonomy.taxeditor.editor.name.handler.DeleteTaxonBaseHandler"
459 commandId="org.eclipse.ui.edit.delete">
460 <activeWhen>
461 <and>
462 <not>
463 <reference
464 definitionId="isAcceptedTaxon">
465 </reference>
466 </not>
467 <reference
468 definitionId="isTaxonBase">
469 </reference>
470 </and>
471 </activeWhen>
472 </handler>
473 <!--handler
474 class="eu.etaxonomy.taxeditor.editor.handler.SaveTaxonHandler"
475 commandId="org.eclipse.ui.file.save">
476 </handler>
477 <handler
478 class="eu.etaxonomy.taxeditor.editor.handler.SaveAllHandler"
479 commandId="org.eclipse.ui.file.saveAll">
480 </handler-->
481 </extension>
482 <extension
483 name="File Menu Commands"
484 point="org.eclipse.ui.commands">
485 <command
486 categoryId="org.eclipse.ui.category.file"
487 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.EditNewTaxonHandler"
488 id="eu.etaxonomy.taxeditor.editor.newTaxon"
489 name="New Taxon">
490 </command>
491 <!--command
492 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.SaveTaxonHandler"
493 id="eu.etaxonomy.taxeditor.editor.saveTaxon"
494 name="Save">
495 </command>
496 <command
497 categoryId="org.eclipse.ui.category.file"
498 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.SaveAllHandler"
499 id="eu.etaxonomy.taxeditor.editor.saveAll"
500 name="Save All">
501 </command-->
502 </extension>
503 <extension
504 name="Name Commands"
505 point="org.eclipse.ui.commands">
506 <category
507 id="eu.etaxonomy.taxeditor.editor.synonymCategory"
508 name="Synonym Category">
509 </category>
510 <command
511 categoryId="eu.etaxonomy.taxeditor.editor.synonymCategory"
512 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.CreateHomotypicSynonymHandler"
513 id="eu.etaxonomy.taxeditor.editor.name.createHomotypicSynoym"
514 name="Create Homotypic Synonym">
515 </command>
516 <command
517 categoryId="eu.etaxonomy.taxeditor.editor.synonymCategory"
518 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.CreateHeterotypicSynonymHandler"
519 id="eu.etaxonomy.taxeditor.editor.name.createHeterotypicSynoym"
520 name="Create Heterotypic Synonym">
521 </command>
522 <command
523 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.CreateSynonymInHomotypicalGroupHandler"
524 id="eu.etaxonomy.taxeditor.editor.name.createSynonymInHomotypicalGroup"
525 name="Create Synonym In Homotypical Group">
526 </command>
527 <command
528 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.CreateConceptRelationHandler"
529 id="eu.etaxonomy.taxeditor.editor.name.createConceptRelation"
530 name="Create Concept Relation">
531 </command>
532 <command
533 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.CreateMisapplicationHandler"
534 id="eu.etaxonomy.taxeditor.editor.name.createMisapplication"
535 name="Create Misapplication">
536 </command>
537 <command
538 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.DeleteTaxonBaseHandler"
539 id="eu.etaxonomy.taxeditor.editor.name.deleteTaxonBase"
540 name="Delete Taxon Base">
541 </command>
542 <!--command
543 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.MoveTaxonHandler"
544 id="eu.etaxonomy.taxeditor.editor.name.moveTaxon"
545 name="Move Taxon">
546 </command-->
547 <command
548 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeToSynonymHandler"
549 id="eu.etaxonomy.taxeditor.editor.name.changeToSynonym"
550 name="Change To Synonym">
551 </command>
552 <command
553 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeSynonymToAcceptedTaxonHandler"
554 id="eu.etaxonomy.taxeditor.editor.name.changeToAcceptedTaxon"
555 name="Change To Accepted Taxon">
556 </command>
557 <command
558 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeToConceptRelationHandler"
559 id="eu.etaxonomy.taxeditor.editor.name.changeToConceptRelation"
560 name="Change To Concept Relation">
561 </command>
562 <command
563 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeToMisapplicationHandler"
564 id="eu.etaxonomy.taxeditor.editor.name.changeToMisapplication"
565 name="Change To Misapplication">
566 </command>
567 <command
568 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeConceptRelationshipTypeHandler"
569 id="eu.etaxonomy.taxeditor.editor.name.changeConceptRelationshipType"
570 name="Change Concept Relationship Type">
571 </command>
572 <command
573 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.SwapSynonymAndAcceptedHandler"
574 id="eu.etaxonomy.taxeditor.editor.name.swapSynonymAndAccepted"
575 name="Swap Synonym With Accepted">
576 </command>
577 <command
578 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.SetBasionymHandler"
579 id="eu.etaxonomy.taxeditor.editor.name.setBasionym"
580 name="Set Basionym / Original Combination">
581 </command>
582 <command
583 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.RemoveBasionymHandler"
584 id="eu.etaxonomy.taxeditor.editor.name.removeBasionym"
585 name="Remove Basionym / Original Combination">
586 </command>
587 <command
588 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeAcceptedTaxonToSynonymHandler"
589 id="eu.etaxonomy.taxeditor.editor.name.changeAcceptedToSynonym"
590 name="Change Accepted Taxon to Synonym">
591 </command>
592 </extension>
593 <extension
594 point="org.eclipse.core.expressions.definitions">
595 <definition
596 id="nameEditorActive">
597 <with
598 variable="activeEditorId">
599 <equals
600 value="eu.etaxonomy.taxeditor.editor.multipagetaxonview">
601 </equals>
602 </with>
603 </definition>
604 <definition
605 id="isAcceptedTaxon">
606 <with
607 variable="activeMenuSelection">
608 <test
609 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isAcceptedTaxon">
610 </test>
611 </with>
612 </definition>
613 <definition
614 id="isSynonym">
615 <with
616 variable="activeMenuSelection">
617 <test
618 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isSynonym">
619 </test>
620 </with>
621 </definition>
622 <definition
623 id="isMisapplication">
624 <with
625 variable="activeMenuSelection">
626 <test
627 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isMisapplication">
628 </test>
629 </with>
630 </definition>
631 <definition
632 id="isConceptRelation">
633 <with
634 variable="activeMenuSelection">
635 <test
636 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isConceptRelation">
637 </test>
638 </with>
639 </definition>
640 <definition
641 id="isTaxonBase">
642 <with
643 variable="activeMenuSelection">
644 <test
645 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isTaxonBase">
646 </test>
647 </with>
648 </definition>
649 </extension>
650 <extension
651 point="org.eclipse.core.expressions.propertyTesters">
652 <propertyTester
653 class="eu.etaxonomy.taxeditor.editor.name.handler.NameEditorMenuPropertyTester"
654 id="eu.etaxonomy.taxeditor.editor.name.propertyTester"
655 namespace="eu.etaxonomy.taxeditor.editor.name.propertyTester"
656 properties="isAcceptedTaxon,isSynonym,isMisapplication,isTaxonBase,isConceptRelation"
657 type="org.eclipse.jface.viewers.IStructuredSelection">
658 </propertyTester>
659 </extension>
660 <extension
661 point="org.eclipse.ui.menus">
662 <menuContribution
663 locationURI="popup:eu.etaxonomy.taxeditor.editor.view.description">
664 <command
665 commandId="eu.etaxonomy.taxeditor.description.commands.adddescription"
666 label="New Descriptive Data"
667 style="push">
668 </command>
669 <separator
670 name="eu.etaxonomy.taxeditor.taxonDescriptionEditor.separator3"
671 visible="true">
672 </separator>
673 <menu
674 label="New">
675 <dynamic
676 class="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.DynamicFeatureMenu"
677 id="eu.etaxonomy.taxeditor.dynamicFeatureMenu">
678 </dynamic>
679 <visibleWhen
680 checkEnabled="true">
681 <or>
682 <reference
683 definitionId="isDescription">
684 </reference>
685 <reference
686 definitionId="isDescriptionElement">
687 </reference>
688 <reference
689 definitionId="isFeatureNodeContainer">
690 </reference>
691 </or>
692 </visibleWhen>
693 </menu>
694 <separator
695 name="taxeditor-editor.separator1"
696 visible="true">
697 </separator>
698 <separator
699 name="eu.etaxonomy.taxeditor.taxonDescriptionEditor.separator.afterNew"
700 visible="true">
701 </separator>
702 <command
703 commandId="org.eclipse.ui.edit.delete"
704 label="Delete"
705 style="push">
706 </command>
707 <separator
708 name="eu.etaxonomy.taxeditor.taxonDescriptionEditor.separator.afterDelete"
709 visible="true">
710 </separator>
711 <command
712 commandId="org.eclipse.ui.file.save"
713 label="Save"
714 style="push">
715 </command>
716 </menuContribution>
717 </extension>
718 <extension
719 point="org.eclipse.ui.bindings">
720 <scheme
721 description="The default key binding scheme for the Taxonomic Editor"
722 id="eu.etaxonomy.taxeditor.bindings.scheme.default"
723 name="Taxonomic Editor Default Key Bindings">
724 </scheme>
725 </extension>
726 <extension
727 point="org.eclipse.ui.handlers">
728 <handler
729 class="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.DeleteHandler"
730 commandId="org.eclipse.ui.edit.delete">
731 <activeWhen>
732 <reference
733 definitionId="isDeletable">
734 </reference>
735 </activeWhen>
736 </handler>
737 </extension>
738 <extension
739 point="org.eclipse.ui.commands">
740 <command
741 defaultHandler="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.CreateDescriptionElementHandler"
742 id="eu.etaxonomy.taxeditor.editor.description.createDescriptionElement"
743 name="Create Description Element">
744 </command>
745 <command
746 defaultHandler="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.CreateDescriptionHandler"
747 id="eu.etaxonomy.taxeditor.description.commands.adddescription"
748 name="New Description">
749 </command>
750 </extension>
751 <extension
752 point="org.eclipse.core.expressions.definitions">
753 <definition
754 id="isDeletable">
755 <with
756 variable="activeMenuSelection">
757 <test
758 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDeletable">
759 </test>
760 </with>
761 </definition>
762 <definition
763 id="isMedia">
764 <with
765 variable="activeMenuSelection">
766 <test
767 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isMedia">
768 </test>
769 </with>
770 </definition>
771 <definition
772 id="isDescription">
773 <with
774 variable="activeMenuSelection">
775 <test
776 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDescription">
777 </test>
778 </with>
779 </definition>
780 <definition
781 id="isDescriptionElement">
782 <with
783 variable="activeMenuSelection">
784 <test
785 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDescriptionElement">
786 </test>
787 </with>
788 </definition>
789 <definition
790 id="isFeatureNodeContainer">
791 <with
792 variable="activeMenuSelection">
793 <test
794 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isFeatureNodeContainer">
795 </test>
796 </with>
797 </definition>
798 </extension>
799 <extension
800 point="org.eclipse.core.expressions.propertyTesters">
801 <propertyTester
802 class="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.DescriptionsMenuPropertyTester"
803 id="eu.etaxonomy.taxeditor.descriptions.PropertyTester"
804 namespace="eu.etaxonomy.taxeditor.descriptions.propertyTester"
805 properties="isMedia,isDescription,isDescriptionElement,isDeletable,isFeatureNodeContainer"
806 type="org.eclipse.jface.viewers.TreeSelection">
807 </propertyTester>
808 </extension>
809 <extension
810 point="org.eclipse.ui.commands">
811 <command
812 id="org.eclipse.ui.window.newEditor"
813 name="New Editor">
814 </command>
815 </extension>
816 <extension
817 point="org.eclipse.ui.menus">
818 <menuContribution
819 locationURI="popup:eu.etaxonomy.taxeditor.editor.view.media">
820 <command
821 commandId="taxeditor-editor.command.newimagegallery"
822 label="New Image Gallery"
823 style="push">
824 </command>
825 <separator
826 name="taxeditor-editor.separator1"
827 visible="true">
828 </separator>
829 <command
830 commandId="taxeditor-editor.newimage"
831 label="New Image"
832 style="push">
833 </command>
834 <command
835 commandId="taxeditor-editor.command.moveimgdown"
836 label="Move Image Up In List"
837 style="push">
838 <visibleWhen>
839 <reference
840 definitionId="isMedia">
841 </reference>
842 </visibleWhen>
843 </command>
844 <command
845 commandId="taxeditor-editor.command.moveimgup"
846 label="Move Image Down In List"
847 style="push">
848 <visibleWhen>
849 <reference
850 definitionId="isMedia">
851 </reference>
852 </visibleWhen>
853 </command>
854 <separator
855 name="taxeditor-editor.separator2"
856 visible="true">
857 </separator>
858 <command
859 commandId="org.eclipse.ui.edit.delete"
860 label="Delete"
861 style="push">
862 </command>
863 <command
864 commandId="org.eclipse.ui.file.save"
865 label="Save"
866 style="push">
867 </command>
868 </menuContribution>
869 </extension>
870 <extension
871 point="org.eclipse.ui.commands">
872 <command
873 defaultHandler="eu.etaxonomy.taxeditor.editor.view.media.handler.MoveImageDownInListHandler"
874 id="taxeditor-editor.command.moveimgdown"
875 name="Move Image Down In List">
876 </command>
877 <command
878 defaultHandler="eu.etaxonomy.taxeditor.editor.view.media.handler.AddImageGalleryHandler"
879 id="taxeditor-editor.command.newimagegallery"
880 name="New Image Gallery">
881 </command>
882 <command
883 defaultHandler="eu.etaxonomy.taxeditor.editor.view.media.handler.CreateMediaHandler"
884 id="taxeditor-editor.newimage"
885 name="New Image">
886 </command>
887 <command
888 defaultHandler="eu.etaxonomy.taxeditor.editor.view.media.handler.MoveImageUpInListHandler"
889 id="taxeditor-editor.command.moveimgup"
890 name="Move Image Up In List">
891 </command>
892 </extension>
893 <extension
894 point="org.eclipse.ui.menus">
895 <menuContribution
896 locationURI="menu:eu.etaxonomy.navigation.menu.new?after=eu.etaxonomy.navigation.menu.new.separator1">
897 <command
898 commandId="eu.etaxonomy.taxeditor.editor.command.new.reference"
899 label="Reference"
900 style="push">
901 </command>
902 <command
903 commandId="eu.etaxonomy.taxeditor.editor.command.new.name"
904 label="Name"
905 style="push">
906 </command>
907 <command
908 commandId="eu.etaxonomy.taxeditor.editor.command.new.team"
909 label="Team"
910 style="push">
911 </command>
912 <command
913 commandId="eu.etaxonomy.taxeditor.editor.command.new.person"
914 label="Person"
915 style="push">
916 </command>
917 <command
918 commandId="eu.etaxonomy.taxeditor.editor.command.new.specimen"
919 label="Specimen"
920 style="push">
921 </command>
922 </menuContribution>
923 </extension>
924 <extension
925 point="org.eclipse.ui.commands">
926 <command
927 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewReferenceHandler"
928 id="eu.etaxonomy.taxeditor.editor.command.new.reference"
929 name="New Reference">
930 </command>
931 <command
932 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewNameHandler"
933 id="eu.etaxonomy.taxeditor.editor.command.new.name"
934 name="New Name">
935 </command>
936 <command
937 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewTeamHandler"
938 id="eu.etaxonomy.taxeditor.editor.command.new.team"
939 name="New Team">
940 </command>
941 <command
942 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewPersonHandler"
943 id="eu.etaxonomy.taxeditor.editor.command.new.person"
944 name="New Person">
945 </command>
946 <command
947 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewSpecimenHandler"
948 id="eu.etaxonomy.taxeditor.editor.command.new.specimen"
949 name="New Specimen">
950 </command>
951 </extension>
952 <extension
953 point="org.eclipse.ui.menus">
954 <menuContribution
955 locationURI="popup:eu.etaxonomy.taxeditor.editor.key.polytomous">
956 <command
957 commandId="eu.etaxonomy.taxeditor.key.polytomous.command.new"
958 label="New Node"
959 style="push">
960 </command>
961 <separator
962 name="taxeditor-editor.separator1"
963 visible="true">
964 </separator>
965 <command
966 commandId="org.eclipse.ui.edit.delete"
967 label="Delete"
968 style="push">
969 </command>
970 <separator
971 name="taxeditor-editor.separator2"
972 visible="true">
973 </separator>
974 <command
975 commandId="eu.etaxonomy.taxeditor.key.command.applyLayout"
976 label="Apply Layout"
977 style="push">
978 </command>
979 <separator
980 name="taxeditor-editor.separator3"
981 visible="true">
982 </separator>
983 </menuContribution>
984 </extension>
985 <extension
986 point="org.eclipse.ui.commands">
987 <command
988 defaultHandler="eu.etaxonomy.taxeditor.editor.key.polytomous.handler.CreateNodeHandler"
989 id="eu.etaxonomy.taxeditor.key.polytomous.command.new"
990 name="New Node">
991 </command>
992 <command
993 defaultHandler="eu.etaxonomy.taxeditor.editor.key.handler.ApplyLayoutHandler"
994 id="eu.etaxonomy.taxeditor.key.command.applyLayout"
995 name="Apply Layout">
996 </command>
997 </extension>
998 <extension
999 point="org.eclipse.ui.handlers">
1000 <handler
1001 class="eu.etaxonomy.taxeditor.editor.key.polytomous.handler.DeleteNodeHandler"
1002 commandId="org.eclipse.ui.edit.delete">
1003 <activeWhen>
1004 <with
1005 variable="activePartId">
1006 <equals
1007 value="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyEditor">
1008 </equals>
1009 </with>
1010 </activeWhen>
1011 </handler>
1012 </extension>
1013 </plugin>