solved a problem with a missing command declaration
[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="org.eclipse.ui.views.showView"
425 label="Show Details"
426 style="push">
427 <parameter
428 name="org.eclipse.ui.views.showView.viewId"
429 value="eu.etaxonomy.taxeditor.editor.forms.detailsView">
430 </parameter>
431 </command>
432 <separator
433 name="taxeditor-editor.separator4"
434 visible="true">
435 </separator>
436 <command
437 commandId="org.eclipse.ui.file.save"
438 label="Save"
439 style="push">
440 </command>
441 </menuContribution>
442 </extension>
443 <extension
444 point="org.eclipse.ui.handlers">
445 <handler
446 class="org.eclipse.ui.internal.handlers.NewEditorHandler"
447 commandId="org.eclipse.ui.window.newEditor">
448 <activeWhen>
449 <not>
450 <instanceof
451 value="eu.etaxonomy.taxeditor.editor.name.TaxonNameEditor">
452 </instanceof>
453 </not>
454 </activeWhen>
455 <enabledWhen>
456 <count
457 value="-1">
458 </count>
459 </enabledWhen>
460 </handler>
461 <handler
462 class="eu.etaxonomy.taxeditor.editor.name.handler.DeleteTaxonBaseHandler"
463 commandId="org.eclipse.ui.edit.delete">
464 <activeWhen>
465 <and>
466 <not>
467 <reference
468 definitionId="isAcceptedTaxon">
469 </reference>
470 </not>
471 <reference
472 definitionId="isTaxonBase">
473 </reference>
474 </and>
475 </activeWhen>
476 </handler>
477 <!--handler
478 class="eu.etaxonomy.taxeditor.editor.handler.SaveTaxonHandler"
479 commandId="org.eclipse.ui.file.save">
480 </handler>
481 <handler
482 class="eu.etaxonomy.taxeditor.editor.handler.SaveAllHandler"
483 commandId="org.eclipse.ui.file.saveAll">
484 </handler-->
485 </extension>
486 <extension
487 name="File Menu Commands"
488 point="org.eclipse.ui.commands">
489 <command
490 categoryId="org.eclipse.ui.category.file"
491 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.EditNewTaxonHandler"
492 id="eu.etaxonomy.taxeditor.editor.newTaxon"
493 name="New Taxon">
494 </command>
495 <!--command
496 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.SaveTaxonHandler"
497 id="eu.etaxonomy.taxeditor.editor.saveTaxon"
498 name="Save">
499 </command>
500 <command
501 categoryId="org.eclipse.ui.category.file"
502 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.SaveAllHandler"
503 id="eu.etaxonomy.taxeditor.editor.saveAll"
504 name="Save All">
505 </command-->
506 </extension>
507 <extension
508 name="Name Commands"
509 point="org.eclipse.ui.commands">
510 <category
511 id="eu.etaxonomy.taxeditor.editor.synonymCategory"
512 name="Synonym Category">
513 </category>
514 <command
515 categoryId="eu.etaxonomy.taxeditor.editor.synonymCategory"
516 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.CreateHomotypicSynonymHandler"
517 id="eu.etaxonomy.taxeditor.editor.name.createHomotypicSynoym"
518 name="Create Homotypic Synonym">
519 </command>
520 <command
521 categoryId="eu.etaxonomy.taxeditor.editor.synonymCategory"
522 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.CreateHeterotypicSynonymHandler"
523 id="eu.etaxonomy.taxeditor.editor.name.createHeterotypicSynoym"
524 name="Create Heterotypic Synonym">
525 </command>
526 <command
527 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.CreateSynonymInHomotypicalGroupHandler"
528 id="eu.etaxonomy.taxeditor.editor.name.createSynonymInHomotypicalGroup"
529 name="Create Synonym In Homotypical Group">
530 </command>
531 <command
532 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.CreateConceptRelationHandler"
533 id="eu.etaxonomy.taxeditor.editor.name.createConceptRelation"
534 name="Create Concept Relation">
535 </command>
536 <command
537 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.CreateMisapplicationHandler"
538 id="eu.etaxonomy.taxeditor.editor.name.createMisapplication"
539 name="Create Misapplication">
540 </command>
541 <command
542 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.DeleteTaxonBaseHandler"
543 id="eu.etaxonomy.taxeditor.editor.name.deleteTaxonBase"
544 name="Delete Taxon Base">
545 </command>
546 <!--command
547 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.MoveTaxonHandler"
548 id="eu.etaxonomy.taxeditor.editor.name.moveTaxon"
549 name="Move Taxon">
550 </command-->
551 <command
552 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeToSynonymHandler"
553 id="eu.etaxonomy.taxeditor.editor.name.changeToSynonym"
554 name="Change To Synonym">
555 </command>
556 <command
557 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeSynonymToAcceptedTaxonHandler"
558 id="eu.etaxonomy.taxeditor.editor.name.changeToAcceptedTaxon"
559 name="Change To Accepted Taxon">
560 </command>
561 <command
562 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeToConceptRelationHandler"
563 id="eu.etaxonomy.taxeditor.editor.name.changeToConceptRelation"
564 name="Change To Concept Relation">
565 </command>
566 <command
567 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeToMisapplicationHandler"
568 id="eu.etaxonomy.taxeditor.editor.name.changeToMisapplication"
569 name="Change To Misapplication">
570 </command>
571 <command
572 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeConceptRelationshipTypeHandler"
573 id="eu.etaxonomy.taxeditor.editor.name.changeConceptRelationshipType"
574 name="Change Concept Relationship Type">
575 </command>
576 <command
577 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.SwapSynonymAndAcceptedHandler"
578 id="eu.etaxonomy.taxeditor.editor.name.swapSynonymAndAccepted"
579 name="Swap Synonym With Accepted">
580 </command>
581 <command
582 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.SetBasionymHandler"
583 id="eu.etaxonomy.taxeditor.editor.name.setBasionym"
584 name="Set Basionym / Original Combination">
585 </command>
586 <command
587 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.RemoveBasionymHandler"
588 id="eu.etaxonomy.taxeditor.editor.name.removeBasionym"
589 name="Remove Basionym / Original Combination">
590 </command>
591 <command
592 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeAcceptedTaxonToSynonymHandler"
593 id="eu.etaxonomy.taxeditor.editor.name.changeAcceptedToSynonym"
594 name="Change Accepted Taxon to Synonym">
595 </command>
596 </extension>
597 <extension
598 point="org.eclipse.core.expressions.definitions">
599 <definition
600 id="nameEditorActive">
601 <with
602 variable="activeEditorId">
603 <equals
604 value="eu.etaxonomy.taxeditor.editor.multipagetaxonview">
605 </equals>
606 </with>
607 </definition>
608 <definition
609 id="isAcceptedTaxon">
610 <with
611 variable="activeMenuSelection">
612 <test
613 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isAcceptedTaxon">
614 </test>
615 </with>
616 </definition>
617 <definition
618 id="isSynonym">
619 <with
620 variable="activeMenuSelection">
621 <test
622 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isSynonym">
623 </test>
624 </with>
625 </definition>
626 <definition
627 id="isMisapplication">
628 <with
629 variable="activeMenuSelection">
630 <test
631 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isMisapplication">
632 </test>
633 </with>
634 </definition>
635 <definition
636 id="isConceptRelation">
637 <with
638 variable="activeMenuSelection">
639 <test
640 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isConceptRelation">
641 </test>
642 </with>
643 </definition>
644 <definition
645 id="isTaxonBase">
646 <with
647 variable="activeMenuSelection">
648 <test
649 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isTaxonBase">
650 </test>
651 </with>
652 </definition>
653 </extension>
654 <extension
655 point="org.eclipse.core.expressions.propertyTesters">
656 <propertyTester
657 class="eu.etaxonomy.taxeditor.editor.name.handler.NameEditorMenuPropertyTester"
658 id="eu.etaxonomy.taxeditor.editor.name.propertyTester"
659 namespace="eu.etaxonomy.taxeditor.editor.name.propertyTester"
660 properties="isAcceptedTaxon,isSynonym,isMisapplication,isTaxonBase,isConceptRelation"
661 type="org.eclipse.jface.viewers.IStructuredSelection">
662 </propertyTester>
663 </extension>
664 <extension
665 point="org.eclipse.ui.menus">
666 <menuContribution
667 locationURI="popup:eu.etaxonomy.taxeditor.editor.view.description">
668 <command
669 commandId="eu.etaxonomy.taxeditor.description.commands.adddescription"
670 label="New Descriptive Data"
671 style="push">
672 </command>
673 <separator
674 name="eu.etaxonomy.taxeditor.taxonDescriptionEditor.separator3"
675 visible="true">
676 </separator>
677 <menu
678 label="New">
679 <dynamic
680 class="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.DynamicFeatureMenu"
681 id="eu.etaxonomy.taxeditor.dynamicFeatureMenu">
682 </dynamic>
683 <visibleWhen
684 checkEnabled="true">
685 <or>
686 <reference
687 definitionId="isDescription">
688 </reference>
689 <reference
690 definitionId="isDescriptionElement">
691 </reference>
692 <reference
693 definitionId="isFeatureNodeContainer">
694 </reference>
695 </or>
696 </visibleWhen>
697 </menu>
698 <separator
699 name="taxeditor-editor.separator1"
700 visible="true">
701 </separator>
702 <separator
703 name="eu.etaxonomy.taxeditor.taxonDescriptionEditor.separator.afterNew"
704 visible="true">
705 </separator>
706 <command
707 commandId="org.eclipse.ui.edit.delete"
708 label="Delete"
709 style="push">
710 </command>
711 <separator
712 name="eu.etaxonomy.taxeditor.taxonDescriptionEditor.separator.afterDelete"
713 visible="true">
714 </separator>
715 <command
716 commandId="org.eclipse.ui.file.save"
717 label="Save"
718 style="push">
719 </command>
720 </menuContribution>
721 </extension>
722 <extension
723 point="org.eclipse.ui.bindings">
724 <scheme
725 description="The default key binding scheme for the Taxonomic Editor"
726 id="eu.etaxonomy.taxeditor.bindings.scheme.default"
727 name="Taxonomic Editor Default Key Bindings">
728 </scheme>
729 </extension>
730 <extension
731 point="org.eclipse.ui.handlers">
732 <handler
733 class="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.DeleteHandler"
734 commandId="org.eclipse.ui.edit.delete">
735 <activeWhen>
736 <reference
737 definitionId="isDeletable">
738 </reference>
739 </activeWhen>
740 </handler>
741 </extension>
742 <extension
743 point="org.eclipse.ui.commands">
744 <command
745 defaultHandler="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.CreateDescriptionElementHandler"
746 id="eu.etaxonomy.taxeditor.editor.description.createDescriptionElement"
747 name="Create Description Element">
748 </command>
749 <command
750 defaultHandler="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.CreateDescriptionHandler"
751 id="eu.etaxonomy.taxeditor.description.commands.adddescription"
752 name="New Description">
753 </command>
754 </extension>
755 <extension
756 point="org.eclipse.core.expressions.definitions">
757 <definition
758 id="isDeletable">
759 <with
760 variable="activeMenuSelection">
761 <test
762 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDeletable">
763 </test>
764 </with>
765 </definition>
766 <definition
767 id="isMedia">
768 <with
769 variable="activeMenuSelection">
770 <test
771 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isMedia">
772 </test>
773 </with>
774 </definition>
775 <definition
776 id="isDescription">
777 <with
778 variable="activeMenuSelection">
779 <test
780 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDescription">
781 </test>
782 </with>
783 </definition>
784 <definition
785 id="isDescriptionElement">
786 <with
787 variable="activeMenuSelection">
788 <test
789 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDescriptionElement">
790 </test>
791 </with>
792 </definition>
793 <definition
794 id="isFeatureNodeContainer">
795 <with
796 variable="activeMenuSelection">
797 <test
798 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isFeatureNodeContainer">
799 </test>
800 </with>
801 </definition>
802 </extension>
803 <extension
804 point="org.eclipse.core.expressions.propertyTesters">
805 <propertyTester
806 class="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.DescriptionsMenuPropertyTester"
807 id="eu.etaxonomy.taxeditor.descriptions.PropertyTester"
808 namespace="eu.etaxonomy.taxeditor.descriptions.propertyTester"
809 properties="isMedia,isDescription,isDescriptionElement,isDeletable,isFeatureNodeContainer"
810 type="org.eclipse.jface.viewers.TreeSelection">
811 </propertyTester>
812 </extension>
813 <extension
814 point="org.eclipse.ui.commands">
815 <command
816 id="org.eclipse.ui.window.newEditor"
817 name="New Editor">
818 </command>
819 </extension>
820 <extension
821 point="org.eclipse.ui.menus">
822 <menuContribution
823 locationURI="popup:eu.etaxonomy.taxeditor.editor.view.media">
824 <command
825 commandId="taxeditor-editor.command.newimagegallery"
826 label="New Image Gallery"
827 style="push">
828 </command>
829 <separator
830 name="taxeditor-editor.separator1"
831 visible="true">
832 </separator>
833 <command
834 commandId="taxeditor-editor.newimage"
835 label="New Image"
836 style="push">
837 </command>
838 <command
839 commandId="taxeditor-editor.command.moveimgdown"
840 label="Move Image Up In List"
841 style="push">
842 <visibleWhen>
843 <reference
844 definitionId="isMedia">
845 </reference>
846 </visibleWhen>
847 </command>
848 <command
849 commandId="taxeditor-editor.command.moveimgup"
850 label="Move Image Down In List"
851 style="push">
852 <visibleWhen>
853 <reference
854 definitionId="isMedia">
855 </reference>
856 </visibleWhen>
857 </command>
858 <separator
859 name="taxeditor-editor.separator2"
860 visible="true">
861 </separator>
862 <command
863 commandId="org.eclipse.ui.edit.delete"
864 label="Delete"
865 style="push">
866 </command>
867 <command
868 commandId="org.eclipse.ui.file.save"
869 label="Save"
870 style="push">
871 </command>
872 </menuContribution>
873 </extension>
874 <extension
875 point="org.eclipse.ui.commands">
876 <command
877 defaultHandler="eu.etaxonomy.taxeditor.editor.view.media.handler.MoveImageDownInListHandler"
878 id="taxeditor-editor.command.moveimgdown"
879 name="Move Image Down In List">
880 </command>
881 <command
882 defaultHandler="eu.etaxonomy.taxeditor.editor.view.media.handler.AddImageGalleryHandler"
883 id="taxeditor-editor.command.newimagegallery"
884 name="New Image Gallery">
885 </command>
886 <command
887 defaultHandler="eu.etaxonomy.taxeditor.editor.view.media.handler.CreateMediaHandler"
888 id="taxeditor-editor.newimage"
889 name="New Image">
890 </command>
891 <command
892 defaultHandler="eu.etaxonomy.taxeditor.editor.view.media.handler.MoveImageUpInListHandler"
893 id="taxeditor-editor.command.moveimgup"
894 name="Move Image Up In List">
895 </command>
896 </extension>
897 <extension
898 point="org.eclipse.ui.menus">
899 <menuContribution
900 locationURI="menu:eu.etaxonomy.navigation.menu.new?after=eu.etaxonomy.navigation.menu.new.separator1">
901 <command
902 commandId="eu.etaxonomy.taxeditor.editor.command.new.reference"
903 label="Reference"
904 style="push">
905 </command>
906 <command
907 commandId="eu.etaxonomy.taxeditor.editor.command.new.name"
908 label="Name"
909 style="push">
910 </command>
911 <command
912 commandId="eu.etaxonomy.taxeditor.editor.command.new.team"
913 label="Team"
914 style="push">
915 </command>
916 <command
917 commandId="eu.etaxonomy.taxeditor.editor.command.new.person"
918 label="Person"
919 style="push">
920 </command>
921 <command
922 commandId="eu.etaxonomy.taxeditor.editor.command.new.specimen"
923 label="Specimen"
924 style="push">
925 </command>
926 </menuContribution>
927 </extension>
928 <extension
929 point="org.eclipse.ui.commands">
930 <command
931 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewReferenceHandler"
932 id="eu.etaxonomy.taxeditor.editor.command.new.reference"
933 name="New Reference">
934 </command>
935 <command
936 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewNameHandler"
937 id="eu.etaxonomy.taxeditor.editor.command.new.name"
938 name="New Name">
939 </command>
940 <command
941 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewTeamHandler"
942 id="eu.etaxonomy.taxeditor.editor.command.new.team"
943 name="New Team">
944 </command>
945 <command
946 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewPersonHandler"
947 id="eu.etaxonomy.taxeditor.editor.command.new.person"
948 name="New Person">
949 </command>
950 <command
951 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.create.NewSpecimenHandler"
952 id="eu.etaxonomy.taxeditor.editor.command.new.specimen"
953 name="New Specimen">
954 </command>
955 </extension>
956 <extension
957 point="org.eclipse.ui.menus">
958 <menuContribution
959 locationURI="popup:eu.etaxonomy.taxeditor.editor.key.polytomous">
960 <command
961 commandId="eu.etaxonomy.taxeditor.key.polytomous.command.new"
962 label="New Node"
963 style="push">
964 </command>
965 <separator
966 name="taxeditor-editor.separator1"
967 visible="true">
968 </separator>
969 <command
970 commandId="org.eclipse.ui.edit.delete"
971 label="Delete"
972 style="push">
973 </command>
974 <separator
975 name="taxeditor-editor.separator2"
976 visible="true">
977 </separator>
978 <command
979 commandId="eu.etaxonomy.taxeditor.key.command.applyLayout"
980 label="Apply Layout"
981 style="push">
982 </command>
983 <separator
984 name="taxeditor-editor.separator3"
985 visible="true">
986 </separator>
987 </menuContribution>
988 </extension>
989 <extension
990 point="org.eclipse.ui.commands">
991 <command
992 defaultHandler="eu.etaxonomy.taxeditor.editor.key.polytomous.handler.CreateNodeHandler"
993 id="eu.etaxonomy.taxeditor.key.polytomous.command.new"
994 name="New Node">
995 </command>
996 <command
997 defaultHandler="eu.etaxonomy.taxeditor.editor.key.handler.ApplyLayoutHandler"
998 id="eu.etaxonomy.taxeditor.key.command.applyLayout"
999 name="Apply Layout">
1000 </command>
1001 </extension>
1002 <extension
1003 point="org.eclipse.ui.handlers">
1004 <handler
1005 class="eu.etaxonomy.taxeditor.editor.key.polytomous.handler.DeleteNodeHandler"
1006 commandId="org.eclipse.ui.edit.delete">
1007 <activeWhen>
1008 <with
1009 variable="activePartId">
1010 <equals
1011 value="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyEditor">
1012 </equals>
1013 </with>
1014 </activeWhen>
1015 </handler>
1016 </extension>
1017 </plugin>