Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

taxeditor / eu.etaxonomy.taxeditor.navigation / plugin.xml @ 124382f7

History | View | Annotate | Download (34.1 KB)

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:org.eclipse.ui.main.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
         <command
94
               commandId="eu.etaxonomy.taxeditor.navigation.command.editTaxon"
95
               label="%command.label.1"
96
               style="push">
97
         </command>
98
      </menuContribution>
99
      <menuContribution
100
            locationURI="popup:eu.etaxonomy.taxeditor.navigation.navigatorpopup">
101
         <menu
102
               id="eu.etaxonomy.navigation.menu.new"
103
               label="%menu.label">
104
            <command
105
                  commandId="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
106
                  label="%command.label.2"
107
                  style="push">
108
               <visibleWhen
109
                     checkEnabled="true">
110
                  <with
111
                        variable="selection">
112
                     <count
113
                           value="+">
114
                     </count>
115
                  </with>
116
               </visibleWhen>
117
            </command>
118
            <separator
119
                  name="eu.etaxonomy.navigation.menu.new.separator1"
120
                  visible="true">
121
            </separator>
122
            <command
123
                  commandId="eu.etaxonomy.taxeditor.navigation.create.classification"
124
                  id="eu.etaxonomy.taxeditor.navigation.create.classificationHandler"
125
                  label="%command.label.3"
126
                  style="push">
127
            </command>
128
            <visibleWhen
129
                  checkEnabled="true">
130
               <reference
131
                     definitionId="isCdmStoreConnected">
132
               </reference>
133
            </visibleWhen>
134
         </menu>
135
         <command
136
               commandId="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistViewHandler"
137
               icon="icons/check.png"
138
               label="%command.label.4"
139
               style="push">
140
           <visibleWhen
141
                 checkEnabled="true">
142
              <and>
143
                 <reference
144
                       definitionId="isChecklistEditorEnabled">
145
                 </reference>
146
                 <or>
147
                    <reference
148
                          definitionId="isClassification">
149
                    </reference>
150
                    <reference
151
                          definitionId="isTaxonNode">
152
                    </reference>
153
                 </or>
154
              </and>
155
            </visibleWhen>
156
         </command>
157
         <command
158
               commandId="eu.etaxonomy.taxeditor.navigation.navigator.handler.OpenFixClassificationHierarchyHandler"
159
               label="%command.label.fixClassificationHierarchy"
160
               style="push">
161
            <visibleWhen
162
                  checkEnabled="true">
163
               <and>
164
                  <reference
165
                        definitionId="isShowExperimentalFeatures">
166
                  </reference>
167
                  <reference
168
                        definitionId="isClassification">
169
                  </reference>
170
               </and>
171
            </visibleWhen>
172
         </command>
173
         <separator
174
               name="taxeditor-navigation.separator1"
175
               visible="true">
176
         </separator>
177
         <command
178
               commandId="eu.etaxonomy.taxeditor.navigation.command.update.editSelection"
179
               label="%command.label.5"
180
               style="push">       
181
            <visibleWhen
182
                  checkEnabled="true">
183
               <or>
184
                  <reference
185
                        definitionId="isTaxonNode">
186
                  </reference>
187
                  <reference
188
                        definitionId="isTaxonomicTree">
189
                  </reference>
190
               </or>
191
            </visibleWhen>
192
         </command>
193
         <dynamic
194
               class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
195
               id="eu.etaxonomy.taxeditor.navigation.cdmViewerContextMenu">
196
         </dynamic>
197
         <command
198
               commandId="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym"
199
               label="%command.label.6"
200
               style="push">
201
               <visibleWhen
202
                  checkEnabled="true">
203
                  <and>
204
                     <reference
205
                           definitionId="isCdmStoreConnected">
206
                     </reference>
207
                     <reference
208
                           definitionId="isTaxonNode">
209
                     </reference>
210
                  </and>
211
            </visibleWhen>
212
         </command>
213
         <command
214
               commandId="eu.etaxonomy.taxeditor.navigation.command.update.moveTaxon"
215
               label="%command.label.7"
216
               style="push">
217
            <visibleWhen
218
                  checkEnabled="true">
219
                  <reference
220
                        definitionId="isTaxonNode">
221
                  </reference>
222
            </visibleWhen>
223
         </command>
224
         <command
225
               commandId="eu.etaxonomy.taxeditor.navigation.moveFactualData"
226
               label="%command.label.moveFactualData"
227
               style="push">
228
            <visibleWhen
229
                  checkEnabled="true">
230
               <and>
231
                  <reference
232
                        definitionId="isCdmStoreConnected">
233
                  </reference>
234
                  <reference
235
                        definitionId="isTaxonNode">
236
                  </reference>
237
               </and>
238
            </visibleWhen>
239
         </command>
240
         <separator
241
               name="taxeditor-navigation.separator2"
242
               visible="true">
243
         </separator>
244
         <!--command
245
               commandId="eu.etaxonomy.taxeditor.navigation.command.createChildTaxon"
246
               label="New Child"
247
               style="push">
248
         </command>
249
         <command
250
               commandId="eu.etaxonomy.taxeditor.navigation.command.quickCreateChildTaxon"
251
               label="Quick Add Child "
252
               style="push">
253
         </command-->
254
         <command
255
               commandId="org.eclipse.ui.file.import"
256
               label="%command.label.8"
257
               style="push">
258
            <visibleWhen
259
                  checkEnabled="true">
260
               <reference
261
                     definitionId="isCdmStoreConnected">
262
               </reference>
263
            </visibleWhen>
264
         </command>
265
         <command
266
               commandId="org.eclipse.ui.file.export"
267
               label="%command.label.9"
268
               style="push">
269
            <visibleWhen
270
                  checkEnabled="true">
271
               <reference
272
                     definitionId="isCdmStoreConnected">
273
               </reference>
274
            </visibleWhen>
275
         </command>
276
         <separator
277
               name="taxeditor-navigation.separator4"
278
               visible="true">
279
         </separator>
280
         <command
281
               commandId="eu.etaxonomy.taxeditor.navigation.command.delete"
282
               label="%command.label.10"
283
               style="push">
284
            <visibleWhen
285
                  checkEnabled="true">
286
               <and>
287
                  <reference
288
                        definitionId="isCdmStoreConnected">
289
                  </reference>
290
                  <not>
291
                     <reference
292
                           definitionId="isSynonymNode">
293
                     </reference>
294
                  </not>
295
                  <with
296
                        variable="selection">
297
                     <count
298
                           value="+">
299
                     </count>
300
                  </with>
301
               </and>
302
            </visibleWhen>
303
         </command>
304
         <separator
305
               name="taxeditor-navigation.separator5"
306
               visible="true">
307
         </separator>
308
         <command
309
               commandId="org.eclipse.ui.file.refresh"
310
               label="%command.label.11"
311
               style="push">
312
            <visibleWhen
313
                  checkEnabled="true">
314
               <reference
315
                     definitionId="isCdmStoreConnected">
316
               </reference>
317
            </visibleWhen>
318
         </command>
319
         <command
320
               commandId="eu.etaxonomy.taxeditor.navigation.command.copyTaxonName"
321
               label="%command.label.12"
322
               style="push">
323
            <visibleWhen
324
                  checkEnabled="true">
325
               <and>
326
                  <reference
327
                        definitionId="isCdmStoreConnected">
328
                  </reference>
329
                  <reference
330
                        definitionId="isTaxonNode">
331
                  </reference></and>
332
            </visibleWhen>
333
         </command>
334
      </menuContribution>
335
      <menuContribution
336
            locationURI="toolbar:org.eclipse.ui.main.toolbar">
337
         <toolbar
338
               id="eu.etaxonomy.taxeditor.navigation.search.toolbar">
339
            <control
340
                  class="eu.etaxonomy.taxeditor.navigation.search.SearchBar">
341
            </control>
342
         </toolbar>
343
      </menuContribution>
344
      <menuContribution
345
            locationURI="menu:eu.etaxonomy.navigation.menu.new">
346
         <command
347
               commandId="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
348
               label="%command.label.13"
349
               style="push">
350
            <visibleWhen
351
                  checkEnabled="true">
352
               <reference
353
                     definitionId="isCdmStoreConnected">
354
               </reference>
355
            </visibleWhen>
356
         </command>
357
         <separator
358
               name="eu.etaxonomy.navigation.menu.new.separator1"
359
               visible="true">
360
         </separator>
361
         <command
362
               commandId="eu.etaxonomy.taxeditor.navigation.create.classification"
363
               id="eu.etaxonomy.taxeditor.navigation.create.classificationHandler"
364
               label="%command.label.14"
365
               style="push">
366
            <visibleWhen
367
                  checkEnabled="true">
368
               <reference
369
                     definitionId="isCdmStoreConnected">
370
               </reference>
371
            </visibleWhen>
372
         </command>
373
      </menuContribution>
374
      <menuContribution
375
            locationURI="popup:eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
376
         <command
377
               commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
378
               label="%command.label.15"
379
               style="push">
380
         </command>
381
         <command
382
               commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
383
               label="%command.label.16"
384
               style="push">
385
         </command>
386
         <menu
387
               label="%menu.label.0">
388
            <command
389
                  commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyList"
390
                  label="%command.label.17"
391
                  style="push">
392
            </command>
393
            <command
394
                  commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes"
395
                  label="%command.label.18"
396
                  style="push">
397
            </command>
398
         </menu>
399
         <separator
400
               name="eu.etaxonomy.eu.polytomousKeyView.separator2"
401
               visible="true">
402
         </separator>
403
         <command
404
               commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete"
405
               label="%command.label.19"
406
               style="push">
407
         </command>
408
         
409
      </menuContribution>
410
   </extension>
411
   <extension
412
         point="org.eclipse.ui.commands">
413
      <command
414
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.EditHandler"
415
            id="eu.etaxonomy.taxeditor.navigation.command.update.editSelection"
416
            name="%command.name.1">
417
      </command>
418
      <command
419
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.MoveTaxonHandler"
420
            id="eu.etaxonomy.taxeditor.navigation.command.update.moveTaxon"
421
            name="%command.name.2">
422
      </command>
423
      <command
424
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.RefreshTreeHandler"
425
            id="org.eclipse.ui.file.refresh"
426
            name="%command.name.3">
427
      </command>
428
      <command
429
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.CopyHandler"
430
            id="eu.etaxonomy.taxeditor.navigation.command.copyTaxonName"
431
            name="%command.name.4">
432
      </command>
433
      <command
434
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.ChangeAcceptedTaxonToSynonymHandler"
435
            id="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym"
436
            name="%command.name.5">
437
      </command>
438
      <command
439
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewClassificationHandler"
440
            id="eu.etaxonomy.taxeditor.navigation.create.classification"
441
            name="%command.name.0">
442
      </command>
443
      <command
444
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewTaxonNodeHandler"
445
            id="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
446
            name="%command.name">
447
      </command>
448
      <command
449
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.NewPolytomousKeyHandler"
450
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
451
            name="%command.name.6">
452
      </command>
453
      <command
454
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.EditPolytomousKeyNodesHandler"
455
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
456
            name="%command.name.7">
457
      </command>
458
      <command
459
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RefreshPolytomousKeyListHandler"
460
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyList"
461
            name="%command.name.8">
462
      </command>
463
      <command
464
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RefreshPolytomousKeyNodesHandler"
465
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes"
466
            name="%command.name.9">
467
      </command>
468
      <command
469
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.MoveFactualDataHandler"
470
            id="eu.etaxonomy.taxeditor.navigation.moveFactualData"
471
            name="%command.name.moveFactualData">
472
      </command>
473
      <command
474
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.CreateClassificationHierarchyHandler"
475
            id="eu.etaxonomy.taxeditor.navigation.navigator.handler.OpenFixClassificationHierarchyHandler"
476
            name="%command.name.10">
477
      </command>
478
      <command
479
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.DeleteHandler"
480
            id="eu.etaxonomy.taxeditor.navigation.command.delete"
481
            name="%command.name.11">
482
      </command>
483
      <command
484
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.DeleteHandler"
485
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete"
486
            name="%command.name.11">
487
      </command>
488
   </extension>
489
   <extension
490
         point="org.eclipse.ui.handlers">
491
      <handler
492
            class="eu.etaxonomy.taxeditor.navigation.navigator.handler.DeleteHandler"
493
            commandId="eu.etaxonomy.taxeditor.navigation.navigator.command.delete">
494
         <activeWhen>
495
            <with
496
                  variable="activePartId">
497
               <equals
498
                     value="eu.etaxonomy.taxeditor.navigation.navigator">
499
               </equals>
500
            </with>
501
         </activeWhen>
502
      </handler>
503
      <handler
504
            class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.DeleteHandler"
505
            commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete">
506
         <activeWhen>
507
            <with
508
                  variable="activePartId">
509
               <equals
510
                     value="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
511
               </equals>
512
            </with>
513
         </activeWhen>
514
      </handler>
515
      <handler
516
            class="eu.etaxonomy.taxeditor.navigation.navigator.handler.RemotingChangeAcceptedTaxonToSynonymHandler"
517
            commandId="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym">
518
         <activeWhen>
519
            <reference
520
                  definitionId="isRemoting">
521
            </reference>
522
         </activeWhen>
523
      </handler>
524
      <handler
525
            class="eu.etaxonomy.taxeditor.navigation.navigator.handler.RemotingMoveFactualDataHandler"
526
            commandId="eu.etaxonomy.taxeditor.navigation.moveFactualData">
527
         <activeWhen>
528
            <reference
529
                  definitionId="isRemoting">
530
            </reference>
531
         </activeWhen>
532
      </handler>
533
      <handler
534
            class="eu.etaxonomy.taxeditor.navigation.navigator.handler.RemotingMoveTaxonNodeHandler"
535
            commandId="eu.etaxonomy.taxeditor.navigation.command.update.moveTaxon">
536
         <activeWhen>
537
            <reference
538
                  definitionId="isRemoting">
539
            </reference>
540
         </activeWhen>
541
      </handler>
542
      <handler
543
            class="eu.etaxonomy.taxeditor.navigation.navigator.handler.RemotingDeleteTaxonNodeHandler"
544
            commandId="eu.etaxonomy.taxeditor.navigation.command.delete">
545
         <activeWhen>
546
            <reference
547
                  definitionId="isRemoting">
548
            </reference>
549
         </activeWhen>
550
      </handler>
551
      <handler
552
            class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RemotingDeletePolytomousKeyHandler"
553
            commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete">
554
         <activeWhen>
555
            <reference
556
                  definitionId="isRemoting">
557
            </reference>
558
         </activeWhen>
559
      </handler>
560
      <handler
561
            class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RemotingUpdatePolytomousKeyAllNodesHandler"
562
            commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes">
563
         <activeWhen>
564
            <reference
565
                  definitionId="isRemoting">
566
            </reference>
567
         </activeWhen>
568
      </handler>
569
      <handler
570
            class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RemotingEditPolytomousKeyNodesHandler"
571
            commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes">
572
         <activeWhen>
573
            <reference
574
                  definitionId="isRemoting">
575
            </reference>
576
         </activeWhen>
577
      </handler>
578
   </extension>
579

    
580
      
581
      <!--extension
582
            point="org.eclipse.ui.navigator.viewer">
583
         <viewer
584
               viewerId="org.eclipse.ui.examples.navigator.view">
585
         </viewer>
586
         <viewerContentBinding
587
               viewerId="org.eclipse.ui.examples.navigator.view">
588
            <includes>
589
               <contentExtension
590
                     pattern="org.eclipse.ui.navigator.resourceContent" />
591
               <contentExtension
592
                     pattern="org.eclipse.ui.navigator.resources.filters.*" />                     
593
            </includes>
594
         </viewerContentBinding>
595
         <viewerActionBinding
596
               viewerId="org.eclipse.ui.examples.navigator.view">
597
            <includes>
598
               <actionExtension
599
                     pattern="org.eclipse.ui.navigator.resources.*">
600
               </actionExtension>
601
            </includes>
602
         </viewerActionBinding>
603
      </extension>
604
      <extension
605
            point="org.eclipse.ui.navigator.navigatorContent">
606
         <commonFilter
607
               id="org.eclipse.ui.examples.navigator.filters.hideNonJavaProjects"
608
               name="Hide non-Java projects">
609
            <filterExpression>
610
               <not>
611
                  <adapt
612
                        type="org.eclipse.core.resources.IProject">
613
                     <test
614
                           property="org.eclipse.core.resources.projectNature"
615
                           value="org.eclipse.jdt.core.javanature">
616
                     </test>
617
                  </adapt>
618
               </not>
619
            </filterExpression>
620
         </commonFilter>
621
      </extension-->
622
      
623
      
624
      
625
      
626
      
627
      
628
   <extension
629
         point="org.eclipse.ui.views">
630
      <view
631
            class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator"
632
            icon="icons/edit_16x16.gif"
633
            id="eu.etaxonomy.taxeditor.navigation.navigator"
634
            name="%view.name.2"/>
635
   </extension>
636
   <extension
637
         point="org.eclipse.ui.navigator.navigatorContent">
638
      <navigatorContent
639
            contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationContentProvider"
640
            id="eu.etaxonomy.taxeditor.navigation.classificationContent"
641
            labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationLabelProvider"
642
            name="%navigatorContent.name">
643
         <triggerPoints>
644
            <instanceof
645
                  value="eu.etaxonomy.taxeditor.navigation.navigator.Root">
646
            </instanceof>
647
         </triggerPoints>
648
         <possibleChildren>
649
            <instanceof
650
                  value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
651
            </instanceof>
652
         </possibleChildren>
653
         <dropAssistant
654
               class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
655
               id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
656
            <possibleDropTargets></possibleDropTargets>
657
         </dropAssistant>
658
      </navigatorContent>
659
      <navigatorContent
660
            contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeContentProvider"
661
            id="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"
662
            labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeLabelProvider"
663
            name="%navigatorContent.name.0">
664
         <triggerPoints>
665
            <or>
666
               <instanceof
667
                     value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
668
               </instanceof>
669
               <and>
670
                  <instanceof
671
                     value="eu.etaxonomy.cdm.model.taxon.Classification">
672
                  </instanceof>
673
                  <test
674
                     forcePluginActivation="true"
675
                     property="eu.etaxonomy.taxeditor.propertytests.hasTaxa">
676
                  </test>
677
               </and>
678
            </or>
679
         </triggerPoints>
680
         <dropAssistant
681
               class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
682
               id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
683
            <possibleDropTargets>
684
               <or>
685
                  <instanceof
686
                        value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
687
                  </instanceof>
688
                  <instanceof
689
                        value="eu.etaxonomy.cdm.model.taxon.Classification">
690
                  </instanceof>
691
               </or>
692
            </possibleDropTargets>
693
         </dropAssistant>
694
         <possibleChildren>
695
            <instanceof
696
                  value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
697
            </instanceof>
698
         </possibleChildren>
699
      </navigatorContent>
700
      <navigatorContent
701
            activeByDefault="false"
702
            contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymContentProvider"
703
            id="eu.etaxonomy.taxeditor.navigation.synonymContent"
704
            labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymLabelProvider"
705
            name="%navigatorContent.name.1"
706
            priority="highest">
707
         <triggerPoints>
708
            <and>
709
               <instanceof
710
                     value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
711
               </instanceof>
712
               <test
713
                     forcePluginActivation="true"
714
                     property="eu.etaxonomy.taxeditor.propertytests.hasSynonyms">
715
               </test>
716
            </and>
717
         </triggerPoints>
718
         <possibleChildren>
719
            <instanceof
720
                  value="eu.etaxonomy.cdm.model.taxon.Synonym">
721
            </instanceof>
722
         </possibleChildren>
723
      </navigatorContent>
724
   </extension>
725
   <extension
726
         point="org.eclipse.ui.navigator.viewer">
727
      <viewer
728
            viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
729
         <popupMenu
730
               id="eu.etaxonomy.taxeditor.navigation.navigatorpopup">
731
         </popupMenu>
732
      </viewer>
733
      <viewerContentBinding viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
734
         <includes>
735
            <contentExtension
736
                  pattern="eu.etaxonomy.taxeditor.navigation.classificationContent">
737
            </contentExtension>
738
            <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"/>
739
            <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper"/>
740
            <contentExtension
741
                  pattern="eu.etaxonomy.taxeditor.navigation.synonymContent">
742
            </contentExtension>
743
         </includes>
744
      </viewerContentBinding>
745
      <!--viewer
746
            popupMenuId="eu.etaxonomy.taxeditor.navigation.navigator#PopupMenu"
747
            viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
748
         <options>
749
            <property
750
                  name="org.eclipse.ui.navigator.hideAvailableExtensionsTab"
751
                  value="true">
752
            </property>
753
         </options>
754
      </viewer-->
755
      <dragAssistant
756
               class="eu.etaxonomy.taxeditor.navigation.navigator.dnd.TaxonNavigatorDragAdapterAssistant"
757
               viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
758
      </dragAssistant>
759
   </extension>
760
   <extension
761
         point="org.eclipse.ui.navigator.linkHelper">
762
      <linkHelper
763
            class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonLinkHelper"
764
            id="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper">
765
          <selectionEnablement>
766
             <instanceof value="eu.etaxonomy.cdm.model.taxon.TaxonNode"/>
767
          </selectionEnablement>            
768
         <editorInputEnablement>
769
                 <instanceof value="eu.etaxonomy.taxeditor.editor.TaxonEditorInput"/>
770
         </editorInputEnablement>
771
      </linkHelper>
772
   </extension>
773
   <extension
774
         point="org.eclipse.core.runtime.adapters">
775
      <factory
776
            adaptableType="org.eclipse.core.internal.resources.Workspace"
777
            class="eu.etaxonomy.taxeditor.navigation.WorkbenchUndoContextAdapterFactory">
778
         <adapter
779
               type="org.eclipse.core.commands.operations.IUndoContext">
780
         </adapter>
781
      </factory>
782
   </extension>
783
      <extension
784
         point="org.eclipse.core.expressions.propertyTesters">
785
      <propertyTester
786
            class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
787
            id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
788
            namespace="eu.etaxonomy.taxeditor.propertytests"
789
            properties="hasSynonyms"
790
            type="eu.etaxonomy.cdm.model.taxon.TaxonNode">
791
      </propertyTester>
792
      <propertyTester
793
            class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
794
            id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
795
            namespace="eu.etaxonomy.taxeditor.propertytests"
796
            properties="hasTaxa"
797
            type="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
798
      </propertyTester>
799
      <propertyTester
800
            class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
801
            id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
802
            namespace="eu.etaxonomy.taxeditor.propertytests"
803
            properties="hasTaxa"
804
            type="eu.etaxonomy.cdm.model.taxon.Classification">
805
      </propertyTester>
806
   <propertyTester
807
         class="eu.etaxonomy.taxeditor.preference.PreferencePropertyTester"
808
         id="eu.etaxonomy.taxeditor.preferences.propertyTester"
809
         namespace="eu.etaxonomy.taxeditor.preferences.propertyTester"
810
         properties="isShowExperimentalFeatures, isChecklistEditorEnabled"
811
         type="org.eclipse.jface.viewers.IStructuredSelection">
812
   </propertyTester>
813
   <propertyTester
814
         class="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
815
         id="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
816
         namespace="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
817
         properties="isCdmStoreConnected,isRemoting,isStandAlone"
818
         type="java.lang.Object">
819
   </propertyTester>
820
   </extension>
821
   <extension
822
         point="org.eclipse.core.expressions.definitions">
823
      <definition
824
            id="isTaxonNode">
825
         <with
826
               variable="selection">
827
            <iterate
828
                  ifEmpty="false">
829
               <instanceof
830
                     value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
831
               </instanceof>
832
            </iterate>
833
         </with>
834
      </definition>
835
      <definition
836
            id="isSynonymNode">
837
         <with
838
               variable="selection">
839
            <iterate
840
                  ifEmpty="false">
841
               <instanceof
842
                     value="eu.etaxonomy.cdm.model.taxon.Synonym">
843
               </instanceof>
844
            </iterate>
845
         </with>
846
      </definition>
847
      <definition
848
            id="isClassification">
849
         <with
850
               variable="selection">
851
            <iterate
852
                  ifEmpty="false">
853
               <instanceof
854
                     value="eu.etaxonomy.cdm.model.taxon.Classification">
855
               </instanceof>
856
            </iterate>
857
         </with>
858
      </definition>
859
      <definition
860
            id="isChecklistEditorEnabled">
861
         <with
862
               variable="selection">
863
            <test
864
                  property="eu.etaxonomy.taxeditor.preferences.propertyTester.isChecklistEditorEnabled">
865
            </test>
866
         </with>
867
      </definition>
868
      <definition
869
            id="isCdmStoreConnected">
870
         <test
871
               property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isCdmStoreConnected">
872
         </test>
873
      </definition>
874
      <definition
875
            id="isShowExperimentalFeatures">
876
         <with
877
               variable="selection">
878
            <test
879
                  property="eu.etaxonomy.taxeditor.preferences.propertyTester.isShowExperimentalFeatures">
880
            </test>
881
         </with>
882
      </definition>
883
      <definition
884
            id="isRemoting">
885
         <test
886
               property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isRemoting">
887
         </test>
888
      </definition>
889
      <definition
890
            id="isStandAlone">
891
         <test
892
               property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isStandAlone">
893
         </test>
894
      </definition>
895
   </extension>
896
</plugin>
Add picture from clipboard (Maximum size: 40 MB)