Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

taxeditor / eu.etaxonomy.taxeditor.navigation / plugin.xml @ 1b6fc97e

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

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