Project

General

Profile

Download (36 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.navigation.Application">
10
         </run>
11
      </application>
12
   </extension>
13
   <extension
14
         point="org.eclipse.ui.views">
15
      <view
16
            allowMultiple="true"
17
            class="eu.etaxonomy.taxeditor.navigation.search.SearchResultView"
18
            icon="icons/system-search.png"
19
            id="eu.etaxonomy.taxeditor.navigation.search.searchResultView"
20
            name="%view.name"
21
            restorable="false">
22
      </view>
23
      <view
24
            allowMultiple="false"
25
            class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator"
26
            icon="icons/preferences-system-windows.png"
27
            id="eu.etaxonomy.taxeditor.navigation.navigator"
28
            name="%view.name.0"
29
            restorable="true">
30
      </view>
31
      <view
32
            allowMultiple="false"
33
            class="eu.etaxonomy.taxeditor.navigation.key.polytomous.PolytomousKeyViewPart"
34
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart"
35
            name="%view.name.1"
36
            restorable="true">
37
      </view>
38
   </extension>
39
   <extension
40
         point="org.eclipse.ui.menus">
41
      <menuContribution
42
            locationURI="menu:eu.etaxonomy.taxeditor.workbench.menu.file">
43
         <separator
44
               name="eu.etaxonomy.taxeditor.navigation.recentnames.separator"
45
               visible="true">
46
         </separator>
47
         <dynamic
48
               class="eu.etaxonomy.taxeditor.navigation.RecentNamesContributionItem"
49
               id="eu.etaxonomy.taxeditor.navigation.recentnames">
50
            <visibleWhen
51
                  checkEnabled="true">
52
               <reference
53
                     definitionId="isCdmStoreConnected">
54
               </reference>
55
            </visibleWhen>
56
         </dynamic>
57
      </menuContribution>
58
      <menuContribution
59
            locationURI="menu:eu.etaxonomy.taxeditor.menu.showView?before=eu.etaxonomy.taxeditor.editor.showViewMenu">
60
         <command
61
               commandId="org.eclipse.ui.views.showView"
62
               label="%command.label"
63
               style="push">
64
            <parameter
65
                  name="org.eclipse.ui.views.showView.viewId"
66
                  value="eu.etaxonomy.taxeditor.navigation.navigator">
67
            </parameter>
68
            <visibleWhen
69
                  checkEnabled="true">
70
               <reference
71
                     definitionId="isCdmStoreConnected">
72
               </reference>
73
            </visibleWhen>
74
         </command>
75
         <command
76
               commandId="org.eclipse.ui.views.showView"
77
               label="%command.label.0"
78
               style="push">
79
            <parameter
80
                  name="org.eclipse.ui.views.showView.viewId"
81
                  value="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
82
            </parameter>
83
            <visibleWhen
84
                  checkEnabled="true">
85
               <reference
86
                     definitionId="isCdmStoreConnected">
87
               </reference>
88
            </visibleWhen>
89
         </command>
90
      </menuContribution>
91
      <menuContribution
92
            locationURI="popup:eu.etaxonomy.taxeditor.navigation.search.searchResultView">
93
         <dynamic
94
               class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
95
               id="eu.etaxonomy.taxeditor.navigation.cdmViewerContextMenu">
96
         </dynamic>
97
         <separator
98
               name="eu.etaxonomy.taxeditor.navigation.separator2">
99
         </separator>
100
      </menuContribution>
101
      <menuContribution
102
            locationURI="popup:eu.etaxonomy.taxeditor.navigation.navigatorpopup">
103
         <menu
104
               id="eu.etaxonomy.navigation.menu.new"
105
               label="%menu.label">
106
            <command
107
                  commandId="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
108
                  label="%command.label.2"
109
                  style="push">
110
               <visibleWhen
111
                     checkEnabled="true">
112
                  <with
113
                        variable="selection">
114
                     <count
115
                           value="+">
116
                     </count>
117
                  </with>
118
               </visibleWhen>
119
            </command>
120
            <separator
121
                  name="eu.etaxonomy.navigation.menu.new.separator1"
122
                  visible="true">
123
            </separator>
124
            <command
125
                  commandId="eu.etaxonomy.taxeditor.navigation.create.classification"
126
                  id="eu.etaxonomy.taxeditor.navigation.create.classificationHandler"
127
                  label="%command.label.3"
128
                  style="push">
129
            </command>
130
            <visibleWhen
131
                  checkEnabled="true">
132
               <reference
133
                     definitionId="isCdmStoreConnected">
134
               </reference>
135
            </visibleWhen>
136
         </menu>
137
         <command
138
               commandId="eu.etaxonomy.taxeditor.navigation.navigator.handler.OpenFixClassificationHierarchyHandler"
139
               label="%command.label.fixClassificationHierarchy"
140
               style="push">
141
            <visibleWhen
142
                  checkEnabled="true">
143
               <and>
144
                  <reference
145
                        definitionId="isShowExperimentalFeatures">
146
                  </reference>
147
                  <test
148
                        property="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester.isClassification">
149
                  </test>
150
               </and>
151
            </visibleWhen>
152
         </command>
153
         <command
154
               commandId="eu.etaxonomy.taxeditor.navigation.cloneClassification"
155
               label="Clone Classification"
156
               style="push">
157
            <visibleWhen
158
                  checkEnabled="true">
159
               <and>
160
                  <reference
161
                        definitionId="isShowExperimentalFeatures">
162
                  </reference>
163
                  <test
164
                        property="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester.isClassification">
165
                  </test>
166
               </and>
167
            </visibleWhen>
168
         </command>
169
         <separator
170
               name="taxeditor-navigation.separator1"
171
               visible="true">
172
         </separator>
173
         <command
174
               commandId="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym"
175
               label="%command.label.6"
176
               style="push">
177
               <visibleWhen
178
                  checkEnabled="true">
179
                  <and>
180
                     <reference
181
                           definitionId="isCdmStoreConnected">
182
                     </reference>
183
                     <reference
184
                           definitionId="isTaxonNode">
185
                     </reference>
186
                     <not>
187
                     <test
188
                           property="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester.isClassification">
189
                     </test>
190
                     </not>
191
                  </and>
192
            </visibleWhen>
193
         </command>
194
          <command
195
               commandId="eu.etaxonomy.taxeditor.navigator.command.update.setSecundumForSubtree"
196
               label="%command.label.setSecForSubtree"
197
               style="push">
198
               <visibleWhen
199
                  checkEnabled="true">
200
                  <and>
201
                     <reference
202
                           definitionId="isCdmStoreConnected">
203
                     </reference>
204
                  </and>
205
            </visibleWhen>
206
         </command>
207
         <command
208
               commandId="eu.etaxonomy.taxeditor.navigation.command.update.moveTaxon"
209
               label="%command.label.7"
210
               style="push">
211
            <visibleWhen
212
                  checkEnabled="true">
213
                  <and>
214
	                  <reference
215
	                        definitionId="isTaxonNode">
216
	                  </reference>
217
	                  <not>
218
	                     <test
219
	                           property="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester.isClassification">
220
	                     </test>
221
	                  </not>
222
                  </and>
223
            </visibleWhen>
224
         </command>
225
         <command
226
               commandId="eu.etaxonomy.taxeditor.navigation.moveFactualData"
227
               label="%command.label.moveFactualData"
228
               style="push">
229
            <visibleWhen
230
                  checkEnabled="true">
231
               <and>
232
                  <reference
233
                        definitionId="isCdmStoreConnected">
234
                  </reference>
235
                  <reference
236
                        definitionId="isTaxonNode">
237
                  </reference>
238
                  <not>
239
                     <test
240
                           property="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester.isClassification">
241
                     </test>
242
                  </not>
243
                     
244
               </and>
245
            </visibleWhen>
246
         </command>
247
         <separator
248
               name="taxeditor-navigation.separator2"
249
               visible="true">
250
         </separator>
251
         <command
252
               commandId="org.eclipse.ui.file.import"
253
               label="%command.label.8"
254
               style="push">
255
            <visibleWhen
256
                  checkEnabled="true">
257
               <reference
258
                     definitionId="isCdmStoreConnected">
259
               </reference>
260
            </visibleWhen>
261
         </command>
262
         <command
263
               commandId="org.eclipse.ui.file.export"
264
               label="%command.label.9"
265
               style="push">
266
            <visibleWhen
267
                  checkEnabled="true">
268
               <reference
269
                     definitionId="isCdmStoreConnected">
270
               </reference>
271
            </visibleWhen>
272
         </command>
273
         <separator
274
               name="taxeditor-navigation.separator4"
275
               visible="true">
276
         </separator>
277
         <command
278
               commandId="eu.etaxonomy.taxeditor.navigation.command.delete"
279
               label="%command.label.10"
280
               style="push">
281
            <visibleWhen
282
                  checkEnabled="true">
283
               <and>
284
                  <reference
285
                        definitionId="isCdmStoreConnected">
286
                  </reference>
287
                  <not>
288
                     <reference
289
                           definitionId="isSynonymNode">
290
                     </reference>
291
                  </not>
292
                  <with
293
                        variable="selection">
294
                     <count
295
                           value="+">
296
                     </count>
297
                  </with>
298
               </and>
299
            </visibleWhen>
300
         </command>
301
         <separator
302
               name="taxeditor-navigation.separator5"
303
               visible="true">
304
         </separator>
305
         <command
306
               commandId="org.eclipse.ui.file.refresh"
307
               label="%command.label.11"
308
               style="push">
309
            <visibleWhen
310
                  checkEnabled="true">
311
               <reference
312
                     definitionId="isCdmStoreConnected">
313
               </reference>
314
            </visibleWhen>
315
         </command>
316
         <command
317
               commandId="eu.etaxonomy.taxeditor.navigation.command.copyTaxonName"
318
               label="%command.label.12"
319
               style="push">
320
            <visibleWhen
321
                  checkEnabled="true">
322
               <and>
323
                  <reference
324
                        definitionId="isCdmStoreConnected">
325
                  </reference>
326
                  <reference
327
                        definitionId="isTaxonNode">
328
                  </reference></and>
329
            </visibleWhen>
330
         </command>
331
         <separator
332
               name="eu.etaxonomy.taxeditor.navigation.separator2"
333
               visible="true">
334
         </separator>
335
         <dynamic
336
               class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
337
               id="eu.etaxonomy.taxeditor.navigation.cdmViewerContextMenu">
338
         </dynamic>
339
         <!--command
340
               commandId="eu.etaxonomy.taxeditor.navigation.command.createChildTaxon"
341
               label="New Child"
342
               style="push">
343
         </command>
344
         <command
345
               commandId="eu.etaxonomy.taxeditor.navigation.command.quickCreateChildTaxon"
346
               label="Quick Add Child "
347
               style="push">
348
         </command-->
349
      </menuContribution>
350
      <menuContribution
351
            locationURI="menu:eu.etaxonomy.navigation.menu.new">
352
         <command
353
               commandId="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
354
               label="%command.label.13"
355
               style="push">
356
            <visibleWhen
357
                  checkEnabled="true">
358
               <reference
359
                     definitionId="isCdmStoreConnected">
360
               </reference>
361
            </visibleWhen>
362
         </command>
363
         <separator
364
               name="eu.etaxonomy.navigation.menu.new.separator1"
365
               visible="true">
366
         </separator>
367
         <command
368
               commandId="eu.etaxonomy.taxeditor.navigation.create.classification"
369
               id="eu.etaxonomy.taxeditor.navigation.create.classificationHandler"
370
               label="%command.label.14"
371
               style="push">
372
            <visibleWhen
373
                  checkEnabled="true">
374
               <reference
375
                     definitionId="isCdmStoreConnected">
376
               </reference>
377
            </visibleWhen>
378
         </command>
379
      </menuContribution>
380
      <menuContribution
381
            locationURI="popup:eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
382
         <command
383
               commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
384
               label="%command.label.15"
385
               style="push">
386
         </command>
387
         <dynamic
388
               class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
389
               id="eu.etaxonomy.taxeditor.navigation.polytomous.cdmViewerContextMenu">
390
         </dynamic>
391
         <command
392
               commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
393
               label="%command.label.16"
394
               style="push">
395
         </command>
396
         <menu
397
               label="%menu.label.0">
398
            <command
399
                  commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyList"
400
                  label="%command.label.17"
401
                  style="push">
402
            </command>
403
            <command
404
                  commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes"
405
                  label="%command.label.18"
406
                  style="push">
407
            </command>
408
         </menu>
409
         <separator
410
               name="eu.etaxonomy.eu.polytomousKeyView.separator2"
411
               visible="true">
412
         </separator>
413
         <command
414
               commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete"
415
               label="%command.label.19"
416
               style="push">
417
         </command>
418
         
419
      </menuContribution>
420
   </extension>
421
   <extension
422
         point="org.eclipse.ui.commands">
423
      <command
424
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.MoveTaxonHandler"
425
            id="eu.etaxonomy.taxeditor.navigation.command.update.moveTaxon"
426
            name="%command.name.2">
427
      </command>
428
      <command
429
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.RefreshTreeHandler"
430
            id="org.eclipse.ui.file.refresh"
431
            name="%command.name.3">
432
      </command>
433
      <command
434
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.CopyHandler"
435
            id="eu.etaxonomy.taxeditor.navigation.command.copyTaxonName"
436
            name="%command.name.4">
437
      </command>
438
      <command
439
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.ChangeAcceptedTaxonToSynonymHandler"
440
            id="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym"
441
            name="%command.name.5">
442
      </command>
443
       <command
444
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.SetSecReferenceForSubtreeHandler"
445
            id="eu.etaxonomy.taxeditor.navigator.command.update.setSecundumForSubtree"
446
            name="%command.name.setSecForSubtree">
447
      </command>
448
      <command
449
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewClassificationHandler"
450
            id="eu.etaxonomy.taxeditor.navigation.create.classification"
451
            name="%command.name.0">
452
      </command>
453
      <command
454
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewTaxonNodeHandler"
455
            id="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
456
            name="%command.name">
457
      </command>
458
      <command
459
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.NewPolytomousKeyHandler"
460
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
461
            name="%command.name.6">
462
      </command>
463
      <command
464
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.EditPolytomousKeyNodesHandler"
465
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
466
            name="%command.name.7">
467
      </command>
468
      <command
469
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RefreshPolytomousKeyListHandler"
470
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyList"
471
            name="%command.name.8">
472
      </command>
473
      <command
474
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RefreshPolytomousKeyNodesHandler"
475
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes"
476
            name="%command.name.9">
477
      </command>
478
      <command
479
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.MoveFactualDataHandler"
480
            id="eu.etaxonomy.taxeditor.navigation.moveFactualData"
481
            name="%command.name.moveFactualData">
482
      </command>
483
      <command
484
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.CreateClassificationHierarchyHandler"
485
            id="eu.etaxonomy.taxeditor.navigation.navigator.handler.OpenFixClassificationHierarchyHandler"
486
            name="%command.name.10">
487
      </command>
488
      <command
489
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.DeleteHandler"
490
            id="eu.etaxonomy.taxeditor.navigation.command.delete"
491
            name="%command.name.11">
492
      </command>
493
      <command
494
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.DeleteHandler"
495
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete"
496
            name="%command.name.11">
497
      </command>
498
      <command
499
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.CloneClassificationHandler"
500
            id="eu.etaxonomy.taxeditor.navigation.cloneClassification"
501
            name="Clone Classification">
502
      </command>
503
   </extension>
504
   <extension
505
         point="org.eclipse.ui.handlers">
506
      <handler
507
            class="eu.etaxonomy.taxeditor.navigation.navigator.handler.DeleteHandler"
508
            commandId="eu.etaxonomy.taxeditor.navigation.navigator.command.delete">
509
         <activeWhen>
510
            <with
511
                  variable="activePartId">
512
               <equals
513
                     value="eu.etaxonomy.taxeditor.navigation.navigator">
514
               </equals>
515
            </with>
516
         </activeWhen>
517
      </handler>
518
      <handler
519
            class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.DeleteHandler"
520
            commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete">
521
         <activeWhen>
522
            <with
523
                  variable="activePartId">
524
               <equals
525
                     value="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
526
               </equals>
527
            </with>
528
         </activeWhen>
529
      </handler>
530
      <handler
531
            class="eu.etaxonomy.taxeditor.navigation.navigator.handler.RemotingChangeAcceptedTaxonToSynonymHandler"
532
            commandId="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym">
533
         <activeWhen>
534
            <reference
535
                  definitionId="isRemoting">
536
            </reference>
537
         </activeWhen>
538
      </handler>
539
       <handler
540
            class="eu.etaxonomy.taxeditor.navigation.navigator.handler.SetSecReferenceForSubtreeHandler"
541
            commandId="eu.etaxonomy.taxeditor.navigator.command.update.setSecundumForSubtree">
542
         <activeWhen>
543
            <reference
544
                  definitionId="isRemoting">
545
            </reference>
546
         </activeWhen>
547
      </handler>
548
      <handler
549
            class="eu.etaxonomy.taxeditor.navigation.navigator.handler.RemotingMoveFactualDataHandler"
550
            commandId="eu.etaxonomy.taxeditor.navigation.moveFactualData">
551
         <activeWhen>
552
            <reference
553
                  definitionId="isRemoting">
554
            </reference>
555
         </activeWhen>
556
      </handler>
557
      <handler
558
            class="eu.etaxonomy.taxeditor.navigation.navigator.handler.RemotingMoveTaxonNodeHandler"
559
            commandId="eu.etaxonomy.taxeditor.navigation.command.update.moveTaxon">
560
         <activeWhen>
561
            <reference
562
                  definitionId="isRemoting">
563
            </reference>
564
         </activeWhen>
565
      </handler>
566
      <handler
567
            class="eu.etaxonomy.taxeditor.navigation.navigator.handler.RemotingDeleteTaxonNodeHandler"
568
            commandId="eu.etaxonomy.taxeditor.navigation.command.delete">
569
         <activeWhen>
570
            <reference
571
                  definitionId="isRemoting">
572
            </reference>
573
         </activeWhen>
574
      </handler>
575
      <handler
576
            class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RemotingDeletePolytomousKeyHandler"
577
            commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete">
578
         <activeWhen>
579
            <reference
580
                  definitionId="isRemoting">
581
            </reference>
582
         </activeWhen>
583
      </handler>
584
      <handler
585
            class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RemotingUpdatePolytomousKeyAllNodesHandler"
586
            commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes">
587
         <activeWhen>
588
            <reference
589
                  definitionId="isRemoting">
590
            </reference>
591
         </activeWhen>
592
      </handler>
593
      <handler
594
            class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RemotingEditPolytomousKeyNodesHandler"
595
            commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes">
596
         <activeWhen>
597
            <reference
598
                  definitionId="isRemoting">
599
            </reference>
600
         </activeWhen>
601
      </handler>
602
      <handler
603
            class="eu.etaxonomy.taxeditor.handler.defaultHandler.OpenReferencingObjectsView"
604
            commandId="eu.etaxonomy.taxeditor.openReferencingObjectsView">
605
         <activeWhen>
606
            <with
607
                  variable="activePartId">
608
               <equals
609
                     value="eu.etaxonomy.taxeditor.navigation.navigator">
610
               </equals>
611
            </with>
612
         </activeWhen>
613
      </handler>
614
      <handler
615
            class="eu.etaxonomy.taxeditor.editor.handler.defaultHandler.DefaultOpenTaxonEditorForTaxonBaseHandler"
616
            commandId="eu.etaxonomy.taxeditor.editor.openTaxonEditorForTaxon">
617
         <activeWhen>
618
            <and>
619
               <not>
620
                  <reference
621
                        definitionId="isOrphanedTaxon">
622
                  </reference>
623
               </not>
624
            </and>
625
         </activeWhen>
626
      </handler>
627
   </extension>
628

    
629
      
630
      <!--extension
631
            point="org.eclipse.ui.navigator.viewer">
632
         <viewer
633
               viewerId="org.eclipse.ui.examples.navigator.view">
634
         </viewer>
635
         <viewerContentBinding
636
               viewerId="org.eclipse.ui.examples.navigator.view">
637
            <includes>
638
               <contentExtension
639
                     pattern="org.eclipse.ui.navigator.resourceContent" />
640
               <contentExtension
641
                     pattern="org.eclipse.ui.navigator.resources.filters.*" />                     
642
            </includes>
643
         </viewerContentBinding>
644
         <viewerActionBinding
645
               viewerId="org.eclipse.ui.examples.navigator.view">
646
            <includes>
647
               <actionExtension
648
                     pattern="org.eclipse.ui.navigator.resources.*">
649
               </actionExtension>
650
            </includes>
651
         </viewerActionBinding>
652
      </extension>
653
      <extension
654
            point="org.eclipse.ui.navigator.navigatorContent">
655
         <commonFilter
656
               id="org.eclipse.ui.examples.navigator.filters.hideNonJavaProjects"
657
               name="Hide non-Java projects">
658
            <filterExpression>
659
               <not>
660
                  <adapt
661
                        type="org.eclipse.core.resources.IProject">
662
                     <test
663
                           property="org.eclipse.core.resources.projectNature"
664
                           value="org.eclipse.jdt.core.javanature">
665
                     </test>
666
                  </adapt>
667
               </not>
668
            </filterExpression>
669
         </commonFilter>
670
      </extension-->
671
      
672
      
673
      
674
      
675
      
676
      
677
   <extension
678
         point="org.eclipse.ui.views">
679
      <view
680
            class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator"
681
            icon="icons/edit_16x16.gif"
682
            id="eu.etaxonomy.taxeditor.navigation.navigator"
683
            name="%view.name.2"/>
684
   </extension>
685
   <extension
686
         point="org.eclipse.ui.navigator.navigatorContent">
687
      <navigatorContent
688
            contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationContentProvider"
689
            id="eu.etaxonomy.taxeditor.navigation.classificationContent"
690
            labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationLabelProvider"
691
            name="%navigatorContent.name">
692
         <triggerPoints>
693
            <instanceof
694
                  value="eu.etaxonomy.taxeditor.navigation.navigator.Root">
695
            </instanceof>
696
         </triggerPoints>
697
         <possibleChildren>
698
            <instanceof
699
                  value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
700
            </instanceof>
701
         </possibleChildren>
702
         <dropAssistant
703
               class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
704
               id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
705
            <possibleDropTargets></possibleDropTargets>
706
         </dropAssistant>
707
      </navigatorContent>
708
      <navigatorContent
709
            contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeContentProvider"
710
            id="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"
711
            labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeLabelProvider"
712
            name="%navigatorContent.name.0">
713
         <triggerPoints>
714
            
715
               <instanceof
716
                     value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
717
               </instanceof>
718
                
719
            
720
         </triggerPoints>
721
         <dropAssistant
722
               class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
723
               id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
724
            <possibleDropTargets>
725
               <or>
726
                  <instanceof
727
                        value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
728
                  </instanceof>
729
                  <instanceof
730
                        value="eu.etaxonomy.cdm.model.taxon.Classification">
731
                  </instanceof>
732
               </or>
733
            </possibleDropTargets>
734
         </dropAssistant>
735
         <possibleChildren>
736
            <instanceof
737
                  value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
738
            </instanceof>
739
         </possibleChildren>
740
      </navigatorContent>
741
      <navigatorContent
742
            activeByDefault="false"
743
            contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymContentProvider"
744
            id="eu.etaxonomy.taxeditor.navigation.synonymContent"
745
            labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymLabelProvider"
746
            name="%navigatorContent.name.1"
747
            priority="highest">
748
         <triggerPoints>
749
            <and>
750
               <instanceof
751
                     value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
752
               </instanceof>
753
               <test
754
                     forcePluginActivation="true"
755
                     property="eu.etaxonomy.taxeditor.propertytests.hasSynonyms">
756
               </test>
757
            </and>
758
         </triggerPoints>
759
         <possibleChildren>
760
            <instanceof
761
                  value="eu.etaxonomy.cdm.model.taxon.Synonym">
762
            </instanceof>
763
         </possibleChildren>
764
      </navigatorContent>
765
   </extension>
766
   <extension
767
         point="org.eclipse.ui.navigator.viewer">
768
      <viewer
769
            viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
770
         <popupMenu
771
               id="eu.etaxonomy.taxeditor.navigation.navigatorpopup">
772
         </popupMenu>
773
      </viewer>
774
      <viewerContentBinding viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
775
         <includes>
776
            <contentExtension
777
                  pattern="eu.etaxonomy.taxeditor.navigation.classificationContent">
778
            </contentExtension>
779
            <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"/>
780
            <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper"/>
781
            <contentExtension
782
                  pattern="eu.etaxonomy.taxeditor.navigation.synonymContent">
783
            </contentExtension>
784
         </includes>
785
      </viewerContentBinding>
786
      <!--viewer
787
            popupMenuId="eu.etaxonomy.taxeditor.navigation.navigator#PopupMenu"
788
            viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
789
         <options>
790
            <property
791
                  name="org.eclipse.ui.navigator.hideAvailableExtensionsTab"
792
                  value="true">
793
            </property>
794
         </options>
795
      </viewer-->
796
      <dragAssistant
797
               class="eu.etaxonomy.taxeditor.navigation.navigator.dnd.TaxonNavigatorDragAdapterAssistant"
798
               viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
799
      </dragAssistant>
800
   </extension>
801
   <extension
802
         point="org.eclipse.ui.navigator.linkHelper">
803
      <linkHelper
804
            class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonLinkHelper"
805
            id="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper">
806
          <selectionEnablement>
807
             <instanceof value="eu.etaxonomy.cdm.model.taxon.TaxonNode"/>
808
          </selectionEnablement>            
809
         <editorInputEnablement>
810
         	<instanceof value="eu.etaxonomy.taxeditor.editor.TaxonEditorInput"/>
811
         </editorInputEnablement>
812
      </linkHelper>
813
   </extension>
814
   <extension
815
         point="org.eclipse.core.runtime.adapters">
816
      <factory
817
            adaptableType="org.eclipse.core.internal.resources.Workspace"
818
            class="eu.etaxonomy.taxeditor.navigation.WorkbenchUndoContextAdapterFactory">
819
         <adapter
820
               type="org.eclipse.core.commands.operations.IUndoContext">
821
         </adapter>
822
      </factory>
823
   </extension>
824
      <extension
825
         point="org.eclipse.core.expressions.propertyTesters">
826
      <propertyTester
827
            class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
828
            id="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
829
            namespace="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
830
            properties="hasSynonyms, isClassification"
831
            type="java.lang.Object">
832
      </propertyTester>
833
      
834
     <propertyTester
835
             class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
836
            id="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
837
            namespace="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
838
            properties="hasTaxa"
839
            type="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
840
      </propertyTester>
841
      <propertyTester
842
             class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
843
            id="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
844
            namespace="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
845
            properties="hasTaxa"
846
            type="eu.etaxonomy.cdm.model.taxon.TaxonNode">
847
      </propertyTester>
848
   <propertyTester
849
         class="eu.etaxonomy.taxeditor.preference.PreferencePropertyTester"
850
         id="eu.etaxonomy.taxeditor.preferences.propertyTester"
851
         namespace="eu.etaxonomy.taxeditor.preferences.propertyTester"
852
         properties="isShowExperimentalFeatures, isChecklistEditorEnabled"
853
         type="org.eclipse.jface.viewers.IStructuredSelection">
854
   </propertyTester>
855
   <propertyTester
856
         class="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
857
         id="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
858
         namespace="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
859
         properties="isCdmStoreConnected,isRemoting,isStandAlone"
860
         type="java.lang.Object">
861
   </propertyTester>
862
   </extension>
863
   <extension
864
         point="org.eclipse.core.expressions.definitions">
865
      <definition
866
            id="isTaxonNode">
867
         <with
868
               variable="selection">
869
            <iterate
870
                  ifEmpty="false">
871
               <instanceof
872
                     value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
873
               </instanceof>
874
            </iterate>
875
         </with>
876
      </definition>
877
      <definition
878
            id="isSynonymNode">
879
         <with
880
               variable="selection">
881
            <iterate
882
                  ifEmpty="false">
883
               <instanceof
884
                     value="eu.etaxonomy.cdm.model.taxon.Synonym">
885
               </instanceof>
886
            </iterate>
887
         </with>
888
      </definition>
889
     
890
      <definition
891
            id="isChecklistEditorEnabled">
892
         <with
893
               variable="selection">
894
            <test
895
                  property="eu.etaxonomy.taxeditor.preferences.propertyTester.isChecklistEditorEnabled">
896
            </test>
897
         </with>
898
      </definition>
899
      <definition
900
            id="isCdmStoreConnected">
901
         <test
902
               property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isCdmStoreConnected">
903
         </test>
904
      </definition>
905
      <definition
906
            id="isShowExperimentalFeatures">
907
         <with
908
               variable="selection">
909
            <test
910
                  property="eu.etaxonomy.taxeditor.preferences.propertyTester.isShowExperimentalFeatures">
911
            </test>
912
         </with>
913
      </definition>
914
      <definition
915
            id="isRemoting">
916
         <test
917
               property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isRemoting">
918
         </test>
919
      </definition>
920
      <definition
921
            id="isStandAlone">
922
         <test
923
               property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isStandAlone">
924
         </test>
925
      </definition>
926
   </extension>
927
   <extension
928
         id="eu.etaxonomy.taxeditor.navigation.workbench.model"
929
         name="Navigation Workbench Model"
930
         point="org.eclipse.e4.workbench.model">
931
      <fragment
932
            apply="always"
933
            uri="fragment.e4xmi">
934
      </fragment>
935
   </extension>
936
</plugin>
(6-6/7)