editor now updatable via updateSite
[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.ui.perspectives">
15 <perspective
16 class="eu.etaxonomy.taxeditor.editor.Perspective"
17 id="eu.etaxonomy.taxeditor.editor.perspective"
18 name="Perspective">
19 </perspective>
20 </extension-->
21 <extension
22 point="org.eclipse.ui.editors">
23 <editor
24 class="eu.etaxonomy.taxeditor.editor.name.TaxonNameEditor"
25 default="false"
26 id="eu.etaxonomy.taxeditor.taxonNameEditor"
27 name="Taxon Name Editor">
28 </editor>
29 <editor
30 class="eu.etaxonomy.taxeditor.editor.description.TaxonDescriptionEditor"
31 default="false"
32 id="eu.etaxonomy.taxeditor.taxonDescriptionEditor"
33 name="Taxon Description Editor">
34 </editor>
35 <editor
36 class="eu.etaxonomy.taxeditor.editor.images.TaxonImageEditor"
37 default="false"
38 id="eu.etaxonomy.taxeditor.taxonImageEditor"
39 name="Taxon Image Editor">
40 </editor>
41 </extension>
42 <extension
43 point="org.eclipse.ui.menus">
44 <!--menuContribution
45 locationURI="menu:org.eclipse.ui.main.menu">
46 <menu
47 id="eu.etaxonomy.taxeditor.ui.taxonMenu"
48 label="Taxon">
49 <visibleWhen
50 checkEnabled="true">
51 <reference
52 definitionId="nameEditorActive">
53 </reference>
54 </visibleWhen>
55 <command
56 commandId="eu.etaxonomy.taxeditor.editor.name.createHeterotypicSynoym"
57 label="Create Heterotypic Synonym"
58 style="push">
59 </command>
60 <command
61 commandId="eu.etaxonomy.taxeditor.editor.name.createHomotypicSynoym"
62 label="Create Homotypic Synonym"
63 style="push">
64 </command>
65 <separator
66 name="separator1"
67 visible="true">
68 </separator>
69 <menu
70 label="Create Concept Relation">
71 <visibleWhen>
72 <and>
73 <not>
74 <reference
75 definitionId="isSynonym">
76 </reference>
77 </not>
78 <not>
79 <reference
80 definitionId="isMisapplication">
81 </reference>
82 </not>
83 </and>
84 </visibleWhen>
85 <dynamic
86 class="eu.etaxonomy.taxeditor.editor.handler.CreateConceptRelationMenu"
87 id="eu.etaxonomy.taxeditor.editor.dynamicConceptRelationMenu">
88 </dynamic>
89 </menu>
90 <menu
91 label="Create Concept Relation">
92 <dynamic
93 class="eu.etaxonomy.taxeditor.editor.handler.AbstractDynamicConceptRelationMenu"
94 id="eu.etaxonomy.taxeditor.editor.dynamicConceptRelationMenu">
95 </dynamic>
96 </menu>
97 <command
98 commandId="eu.etaxonomy.taxeditor.editor.name.createMisapplication"
99 label="Create Misapplication"
100 style="push">
101 </command>
102 <separator
103 name="taxeditor-editor.separator2"
104 visible="true">
105 </separator>
106 <command
107 commandId="eu.etaxonomy.taxeditor.editor.description.createDescriptionElement"
108 label="Create Description Element"
109 style="push">
110 </command>
111 </menu>
112 </menuContribution-->
113 <menuContribution
114 locationURI="popup:eu.etaxonomy.taxeditor.taxonNameEditor">
115 <menu
116 label="New">
117 <command
118 commandId="eu.etaxonomy.taxeditor.editor.name.createChildTaxon"
119 label="Child Taxon"
120 style="push">
121 <visibleWhen>
122 <reference
123 definitionId="isAcceptedTaxon">
124 </reference>
125 </visibleWhen>
126 </command>
127 <command
128 commandId="eu.etaxonomy.taxeditor.editor.name.createHeterotypicSynoym"
129 label="Heterotypic Synonym"
130 style="push">
131 <visibleWhen>
132 <reference
133 definitionId="isAcceptedTaxon">
134 </reference>
135 </visibleWhen>
136 </command>
137 <command
138 commandId="eu.etaxonomy.taxeditor.editor.name.createHomotypicSynoym"
139 label="Homotypic Synonym"
140 style="push">
141 <visibleWhen>
142 <reference
143 definitionId="isAcceptedTaxon">
144 </reference>
145 </visibleWhen>
146 </command>
147 <command
148 commandId="eu.etaxonomy.taxeditor.editor.name.createSynonymInHomotypicalGroup"
149 label="Synonym In Homotypical Group"
150 style="push">
151 <visibleWhen>
152 <reference
153 definitionId="isSynonym">
154 </reference>
155 </visibleWhen>
156 </command>
157 <separator
158 name="separator1"
159 visible="true">
160 </separator>
161 <menu
162 label="Concept Relation">
163 <visibleWhen>
164 <and>
165 <not>
166 <reference
167 definitionId="isSynonym">
168 </reference>
169 </not>
170 <not>
171 <reference
172 definitionId="isMisapplication">
173 </reference></not>
174 </and>
175 </visibleWhen>
176 <dynamic
177 class="eu.etaxonomy.taxeditor.editor.name.handler.CreateConceptRelationMenu"
178 id="eu.etaxonomy.taxeditor.editor.dynamicConceptRelationMenu">
179 </dynamic>
180 </menu>
181 <command
182 commandId="eu.etaxonomy.taxeditor.editor.name.createMisapplication"
183 label="Misapplication"
184 style="push">
185 <visibleWhen>
186 <and>
187 <not>
188 <reference
189 definitionId="isSynonym">
190 </reference>
191 </not>
192 <not>
193 <reference
194 definitionId="isConceptRelation">
195 </reference>
196 </not>
197 </and>
198 </visibleWhen>
199 </command>
200 </menu>
201 <menu
202 label="Change To">
203 <command
204 commandId="eu.etaxonomy.taxeditor.editor.name.changeToAcceptedTaxon"
205 label="Accepted Taxon"
206 style="push">
207 <visibleWhen>
208 <not>
209 <or>
210 <reference
211 definitionId="isAcceptedTaxon">
212 </reference>
213 <reference
214 definitionId="isConceptRelation">
215 </reference>
216 <reference
217 definitionId="isMisapplication">
218 </reference>
219 </or>
220 </not>
221 </visibleWhen>
222 </command>
223 <command
224 commandId="eu.etaxonomy.taxeditor.editor.name.changeToSynonym"
225 label="Synonym"
226 style="push">
227 <visibleWhen>
228 <not>
229 <or>
230 <reference
231 definitionId="isAcceptedTaxon">
232 </reference>
233 <reference
234 definitionId="isSynonym">
235 </reference>
236 </or>
237 </not>
238 </visibleWhen>
239 </command>
240 <menu
241 label="Concept Relation">
242 <visibleWhen>
243 <not>
244 <or>
245 <reference
246 definitionId="isAcceptedTaxon">
247 </reference>
248 <reference
249 definitionId="isConceptRelation">
250 </reference>
251 </or>
252 </not>
253 </visibleWhen>
254 <dynamic
255 class="eu.etaxonomy.taxeditor.editor.name.handler.ChangeToConceptRelationMenu"
256 id="eu.etaxonomy.taxeditor.editor.dynamicConceptRelationMenu">
257 </dynamic>
258 </menu>
259 <command
260 commandId="eu.etaxonomy.taxeditor.editor.name.changeToMisapplication"
261 label="Misapplication"
262 style="push">
263 <visibleWhen>
264 <not>
265 <or>
266 <reference
267 definitionId="isAcceptedTaxon">
268 </reference>
269 <reference
270 definitionId="isMisapplication">
271 </reference>
272 </or>
273 </not>
274 </visibleWhen>
275 </command>
276 </menu>
277 <menu
278 label="Change Relation Type">
279 <visibleWhen>
280 <reference
281 definitionId="isConceptRelation">
282 </reference>
283 </visibleWhen>
284 <dynamic
285 class="eu.etaxonomy.taxeditor.editor.name.handler.ChangeConceptRelationshipTypeMenu"
286 id="eu.etaxonomy.taxeditor.editor.dynamicConceptRelationMenu">
287 </dynamic>
288 </menu>
289 <separator
290 name="taxeditor-editor.separator1"
291 visible="true">
292 </separator>
293 <command
294 commandId="eu.etaxonomy.taxeditor.editor.name.deleteTaxonBase"
295 label="Delete"
296 style="push">
297 <visibleWhen>
298 <not>
299 <reference
300 definitionId="isAcceptedTaxon">
301 </reference>
302 </not>
303 </visibleWhen>
304 </command>
305 <separator
306 name="taxeditor-editor.separator2"
307 visible="true">
308 </separator>
309 <!--command
310 commandId="eu.etaxonomy.taxeditor.editor.name.moveTaxon"
311 label="Move Taxon"
312 style="push">
313 <visibleWhen>
314 <reference
315 definitionId="isAcceptedTaxon">
316 </reference>
317 </visibleWhen>
318 </command-->
319 <command
320 commandId="eu.etaxonomy.taxeditor.editor.name.setBasionym"
321 id="Set Basionym"
322 style="push">
323 <visibleWhen>
324 <reference
325 definitionId="isSynonym">
326 </reference>
327 </visibleWhen>
328 </command>
329 <command
330 commandId="eu.etaxonomy.taxeditor.editor.name.removeBasionym"
331 id="Remove Basionym"
332 style="push">
333 <visibleWhen>
334 <reference
335 definitionId="isSynonym">
336 </reference>
337 </visibleWhen>
338 </command>
339 <command
340 commandId="eu.etaxonomy.taxeditor.editor.name.swapSynonymAndAccepted"
341 label="Swap Synonym And Accepted"
342 style="push">
343 <visibleWhen>
344 <reference
345 definitionId="isSynonym">
346 </reference>
347 </visibleWhen>
348 </command>
349 <separator
350 name="taxeditor-editor.separator3"
351 visible="true">
352 </separator>
353 <command
354 commandId="org.eclipse.ui.file.save"
355 label="Save"
356 style="push">
357 </command>
358 </menuContribution>
359 <menuContribution
360 locationURI="popup:eu.etaxonomy.taxeditor.taxonDescriptionEditor">
361 <menu
362 label="New">
363 <dynamic
364 class="eu.etaxonomy.taxeditor.editor.description.DynamicFeatureMenu"
365 id="eu.etaxonomy.taxeditor.dynamicFeatureMenu">
366 </dynamic>
367 </menu>
368 <separator
369 name="eu.etaxonomy.taxeditor.taxonDescriptionEditor.separator.afterNew"
370 visible="true">
371 </separator>
372 <command
373 commandId="eu.etaxonomy.taxeditor.editor.name.deleteDescriptionElement"
374 label="Delete"
375 style="push">
376 </command>
377 <separator
378 name="eu.etaxonomy.taxeditor.taxonDescriptionEditor.separator.afterDelete"
379 visible="true">
380 </separator>
381 <command
382 commandId="org.eclipse.ui.file.save"
383 label="Save"
384 style="push">
385 </command>
386 </menuContribution>
387 <menuContribution
388 locationURI="popup:eu.etaxonomy.taxeditor.taxonImageEditor">
389 <command
390 commandId="eu.etaxonomy.taxeditor.editor.description.createImage"
391 label="New"
392 style="push">
393 </command>
394 <separator
395 name="eu.etaxonomy.taxeditor.taxonImageEditor.separator.afterNew"
396 visible="true">
397 </separator>
398 <command
399 commandId="eu.etaxonomy.taxeditor.editor.description.deleteImage"
400 label="Delete"
401 style="push">
402 </command>
403 <separator
404 name="eu.etaxonomy.taxeditor.taxonImageEditor.separator.afterDelete"
405 visible="true">
406 </separator>
407 <command
408 commandId="org.eclipse.ui.file.save"
409 label="Save"
410 style="push">
411 </command>
412 </menuContribution>
413 <menuContribution
414 locationURI="menu:org.eclipse.ui.main.menu.file?before=eu.etaxonomy.taxeditor.application.filemenu.separator">
415 <command
416 commandId="eu.etaxonomy.taxeditor.editor.newTaxon"
417 label="New Root Taxon"
418 style="push">
419 </command>
420 <separator
421 name="eu.etaxonomy.taxeditor.ui.file.separator1"
422 visible="true">
423 </separator>
424 <command
425 commandId="org.eclipse.ui.file.close"
426 label="Close"
427 style="push">
428 </command>
429 <command
430 commandId="org.eclipse.ui.file.closeAll"
431 label="Close All"
432 style="push">
433 </command>
434 <separator
435 name="eu.etaxonomy.taxeditor.ui.file.separator2"
436 visible="true">
437 </separator>
438 <command
439 commandId="org.eclipse.ui.file.save"
440 label="Save"
441 style="push">
442 </command>
443 <command
444 commandId="org.eclipse.ui.file.saveAll"
445 label="Save All"
446 style="push">
447 </command>
448 </menuContribution>
449 <menuContribution
450 locationURI="menu:eu.etaxonomy.taxeditor.menu.showView">
451 <command
452 commandId="eu.etaxonomy.taxeditor.editor.command.showPropertySheetView"
453 label="Property Sheet"
454 style="push">
455 </command>
456 </menuContribution>
457 </extension>
458 <extension
459 point="org.eclipse.ui.handlers">
460 <handler
461 class="eu.etaxonomy.taxeditor.editor.handler.SaveTaxonHandler"
462 commandId="org.eclipse.ui.file.save">
463 </handler>
464 <handler
465 class="eu.etaxonomy.taxeditor.editor.handler.SaveAllHandler"
466 commandId="org.eclipse.ui.file.saveAll">
467 </handler>
468 <handler
469 class="eu.etaxonomy.taxeditor.editor.name.handler.RemoveBasionymHandler"
470 commandId="eu.etaxonomy.taxeditor.editor.name.removeBasionym">
471 <enabledWhen>
472 <reference
473 definitionId="isGroupBasionym">
474 </reference>
475 </enabledWhen>
476 </handler>
477 <handler
478 class="eu.etaxonomy.taxeditor.editor.name.handler.SetBasionymHandler"
479 commandId="eu.etaxonomy.taxeditor.editor.name.setBasionym">
480 <enabledWhen>
481 <not>
482 <reference
483 definitionId="isGroupBasionym">
484 </reference>
485 </not>
486 </enabledWhen>
487 </handler>
488 </extension>
489 <extension
490 name="File Menu Commands"
491 point="org.eclipse.ui.commands">
492 <command
493 categoryId="org.eclipse.ui.category.file"
494 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.EditNewTaxonHandler"
495 id="eu.etaxonomy.taxeditor.editor.newTaxon"
496 name="New Taxon">
497 </command>
498 <command
499 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.SaveTaxonHandler"
500 id="eu.etaxonomy.taxeditor.editor.saveTaxon"
501 name="Save">
502 </command>
503 <command
504 categoryId="org.eclipse.ui.category.file"
505 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.SaveAllHandler"
506 id="eu.etaxonomy.taxeditor.editor.saveAll"
507 name="Save All">
508 </command>
509 </extension>
510 <extension
511 point="org.eclipse.core.expressions.definitions">
512 <definition
513 id="nameEditorActive">
514 <with
515 variable="activeEditorId">
516 <equals
517 value="eu.etaxonomy.taxeditor.editor.multipagetaxonview">
518 </equals>
519 </with>
520 </definition>
521 <definition
522 id="isAcceptedTaxon">
523 <with
524 variable="activeMenuSelection">
525 <iterate>
526 <instanceof
527 value="eu.etaxonomy.taxeditor.propertysheet.name.AcceptedTaxonPropertySource">
528 </instanceof>
529 </iterate>
530 </with>
531 </definition>
532 <definition
533 id="isSynonym">
534 <with
535 variable="activeMenuSelection">
536 <iterate>
537 <instanceof
538 value="eu.etaxonomy.taxeditor.propertysheet.name.SynonymPropertySource">
539 </instanceof>
540 </iterate>
541 </with>
542 </definition>
543 <definition
544 id="isGroupBasionym">
545 <with
546 variable="activeMenuSelection">
547 <iterate>
548 <instanceof
549 value="eu.etaxonomy.taxeditor.editor.name.BasionymSynonymPropertySource">
550 </instanceof>
551 </iterate>
552 </with>
553 </definition>
554 <definition
555 id="isMisapplication">
556 <with
557 variable="activeMenuSelection">
558 <iterate>
559 <instanceof
560 value="eu.etaxonomy.taxeditor.propertysheet.name.MisapplicationPropertySource">
561 </instanceof>
562 </iterate>
563 </with>
564 </definition>
565 <definition
566 id="isConceptRelation">
567 <with
568 variable="activeMenuSelection">
569 <iterate>
570 <instanceof
571 value="eu.etaxonomy.taxeditor.propertysheet.name.ConceptPropertySource">
572 </instanceof>
573 </iterate>
574 </with>
575 </definition>
576 <definition
577 id="isNotGroupBasionym">
578 <with
579 variable="activeMenuSelection">
580 <not>
581 <iterate>
582 <instanceof
583 value="eu.etaxonomy.taxeditor.editor.name.BasionymSynonymPropertySource">
584 </instanceof>
585 </iterate>
586 </not>
587 </with>
588 </definition>
589 </extension>
590 <extension
591 name="Name Commands"
592 point="org.eclipse.ui.commands">
593 <category
594 id="eu.etaxonomy.taxeditor.editor.synonymCategory"
595 name="Synonym Category">
596 </category>
597 <command
598 categoryId="eu.etaxonomy.taxeditor.editor.synonymCategory"
599 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.CreateHomotypicSynonymHandler"
600 id="eu.etaxonomy.taxeditor.editor.name.createHomotypicSynoym"
601 name="Create Homotypic Synonym">
602 </command>
603 <command
604 categoryId="eu.etaxonomy.taxeditor.editor.synonymCategory"
605 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.CreateHeterotypicSynonymHandler"
606 id="eu.etaxonomy.taxeditor.editor.name.createHeterotypicSynoym"
607 name="Create Heterotypic Synonym">
608 </command>
609 <command
610 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.CreateSynonymInHomotypicalGroupHandler"
611 id="eu.etaxonomy.taxeditor.editor.name.createSynonymInHomotypicalGroup"
612 name="Create Synonym In Homotypical Group">
613 </command>
614 <command
615 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.CreateConceptRelationHandler"
616 id="eu.etaxonomy.taxeditor.editor.name.createConceptRelation"
617 name="Create Concept Relation">
618 </command>
619 <command
620 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.CreateMisapplicationHandler"
621 id="eu.etaxonomy.taxeditor.editor.name.createMisapplication"
622 name="Create Misapplication">
623 </command>
624 <command
625 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.DeleteTaxonBaseHandler"
626 id="eu.etaxonomy.taxeditor.editor.name.deleteTaxonBase"
627 name="Delete Taxon Base">
628 </command>
629 <!--command
630 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.MoveTaxonHandler"
631 id="eu.etaxonomy.taxeditor.editor.name.moveTaxon"
632 name="Move Taxon">
633 </command-->
634 <command
635 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.CreateChildTaxonHandler"
636 id="eu.etaxonomy.taxeditor.editor.name.createChildTaxon"
637 name="Create Child Taxon">
638 </command>
639 <command
640 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeToSynonymHandler"
641 id="eu.etaxonomy.taxeditor.editor.name.changeToSynonym"
642 name="Change To Synonym">
643 </command>
644 <command
645 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeToAcceptedTaxon"
646 id="eu.etaxonomy.taxeditor.editor.name.changeToAcceptedTaxon"
647 name="Change To Accepted Taxon">
648 </command>
649 <command
650 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeToConceptRelationHandler"
651 id="eu.etaxonomy.taxeditor.editor.name.changeToConceptRelation"
652 name="Change To Concept Relation">
653 </command>
654 <command
655 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeToMisapplicationHandler"
656 id="eu.etaxonomy.taxeditor.editor.name.changeToMisapplication"
657 name="Change To Misapplication">
658 </command>
659 <command
660 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeConceptRelationshipTypeHandler"
661 id="eu.etaxonomy.taxeditor.editor.name.changeConceptRelationshipType"
662 name="Change Concept Relationship Type">
663 </command>
664 <command
665 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.SwapSynonymAndAcceptedHandler"
666 id="eu.etaxonomy.taxeditor.editor.name.swapSynonymAndAccepted"
667 name="Swap Synonym And Accepted">
668 </command>
669 <command
670 id="eu.etaxonomy.taxeditor.editor.name.setBasionym"
671 name="%command.name.17">
672 </command>
673 <command
674 id="eu.etaxonomy.taxeditor.editor.name.removeBasionym"
675 name="%command.name.18">
676 </command>
677 </extension>
678 <extension
679 name="Description Commands"
680 point="org.eclipse.ui.commands">
681 <command
682 defaultHandler="eu.etaxonomy.taxeditor.editor.description.handler.CreateDescriptionElementHandler"
683 id="eu.etaxonomy.taxeditor.editor.description.createDescriptionElement"
684 name="Create Description Element">
685 </command>
686 <command
687 defaultHandler="eu.etaxonomy.taxeditor.editor.description.handler.DeleteDescriptionElementHandler"
688 id="eu.etaxonomy.taxeditor.editor.name.deleteDescriptionElement"
689 name="Delete Description Element">
690 </command>
691 </extension>
692 <extension
693 point="org.eclipse.ui.commands">
694 <command
695 defaultHandler="eu.etaxonomy.taxeditor.editor.images.handler.CreateImageHandler"
696 id="eu.etaxonomy.taxeditor.editor.description.createImage"
697 name="Create Image">
698 </command>
699 <command
700 defaultHandler="eu.etaxonomy.taxeditor.editor.images.handler.DeleteImageHandler"
701 id="eu.etaxonomy.taxeditor.editor.description.deleteImage"
702 name="Delete Image">
703 </command>
704 </extension>
705 <extension
706 point="org.eclipse.ui.commands">
707 <command
708 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.ShowPropertySheetHandler"
709 id="eu.etaxonomy.taxeditor.editor.command.showPropertySheetView"
710 name="Show Property Sheet">
711 </command>
712 </extension>
713 <extension
714 point="org.eclipse.ui.elementFactories">
715 <factory
716 class="eu.etaxonomy.taxeditor.editor.TaxonEditorInputFactory"
717 id="eu.etaxonomy.taxeditor.editor.TaxonEditorInputFactory">
718 </factory>
719 </extension>
720 <extension
721 point="org.eclipse.ui.perspectiveExtensions">
722 <perspectiveExtension
723 targetID="eu.etaxonomy.taxeditor.application.perspective">
724 <view
725 closeable="true"
726 id="org.eclipse.ui.views.PropertySheet"
727 minimized="false"
728 moveable="true"
729 ratio="0.7"
730 relationship="right"
731 relative="org.eclipse.ui.editorss"
732 showTitle="false"
733 visible="true">
734 </view>
735 </perspectiveExtension>
736 </extension>
737 </plugin>