Project

General

Profile

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