Project

General

Profile

Download (23.1 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="Search Result"
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="Taxon Navigator"
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="Polytomous Keys"
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
         </dynamic>
51
      </menuContribution>
52
      <menuContribution
53
            locationURI="menu:eu.etaxonomy.taxeditor.menu.showView?before=eu.etaxonomy.taxeditor.editor.showViewMenu">
54
         <command
55
               commandId="org.eclipse.ui.views.showView"
56
               label="Taxon Navigator"
57
               style="push">
58
            <parameter
59
                  name="org.eclipse.ui.views.showView.viewId"
60
                  value="eu.etaxonomy.taxeditor.navigation.navigator">
61
            </parameter>
62
         </command>
63
         <command
64
               commandId="org.eclipse.ui.views.showView"
65
               label="Polytomous Keys"
66
               style="push">
67
            <parameter
68
                  name="org.eclipse.ui.views.showView.viewId"
69
                  value="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
70
            </parameter>
71
         </command>
72
      </menuContribution>
73
      <menuContribution
74
            locationURI="popup:eu.etaxonomy.taxeditor.navigation.search.searchResultView">
75
         <command
76
               commandId="eu.etaxonomy.taxeditor.navigation.command.editTaxon"
77
               label="Edit"
78
               style="push">
79
         </command>
80
      </menuContribution>
81
      <menuContribution
82
            locationURI="popup:eu.etaxonomy.taxeditor.navigation.navigatorpopup">
83
         <menu
84
               id="eu.etaxonomy.navigation.menu.new"
85
               label="New">
86
            <command
87
                  commandId="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
88
                  label="Taxon"
89
                  style="push">
90
            </command>
91
            <separator
92
                  name="eu.etaxonomy.navigation.menu.new.separator1"
93
                  visible="true">
94
            </separator>
95
            <command
96
                  commandId="eu.etaxonomy.taxeditor.navigation.create.classification"
97
                  id="eu.etaxonomy.taxeditor.navigation.create.classificationHandler"
98
                  label="Classification"
99
                  style="push">
100
            </command>
101
         </menu>
102
         <separator
103
               name="taxeditor-navigation.separator1"
104
               visible="true">
105
         </separator>
106
         <command
107
               commandId="eu.etaxonomy.taxeditor.navigation.command.update.editSelection"
108
               label="Edit"
109
               style="push">       
110
            <visibleWhen
111
                  checkEnabled="true">
112
               <or>
113
                  <reference
114
                        definitionId="isTaxonNode">
115
                  </reference>
116
                  <reference
117
                        definitionId="isTaxonomicTree">
118
                  </reference>
119
               </or>
120
            </visibleWhen>
121
         </command>
122
         <command
123
               commandId="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym"
124
               label="Change Accepted Taxon to Synonym"
125
               style="push">
126
               <visibleWhen
127
                  checkEnabled="true">
128
               <reference
129
                     definitionId="isTaxonNode">
130
               </reference>
131
            </visibleWhen>
132
         </command>
133
         <command
134
               commandId="eu.etaxonomy.taxeditor.navigation.command.update.moveTaxon"
135
               label="Move Taxon (with child taxa)"
136
               style="push">
137
            <visibleWhen
138
                  checkEnabled="true">
139
                  <reference
140
                        definitionId="isTaxonNode">
141
                  </reference>
142
            </visibleWhen>
143
         </command>
144
         <separator
145
               name="taxeditor-navigation.separator2"
146
               visible="true">
147
         </separator>
148
         <!--command
149
               commandId="eu.etaxonomy.taxeditor.navigation.command.createChildTaxon"
150
               label="New Child"
151
               style="push">
152
         </command>
153
         <command
154
               commandId="eu.etaxonomy.taxeditor.navigation.command.quickCreateChildTaxon"
155
               label="Quick Add Child "
156
               style="push">
157
         </command-->
158
         <command
159
               commandId="org.eclipse.ui.file.import"
160
               label="Import..."
161
               style="push">
162
         </command>
163
         <command
164
               commandId="org.eclipse.ui.file.export"
165
               label="Export..."
166
               style="push">
167
         </command>
168
         <separator
169
               name="taxeditor-navigation.separator4"
170
               visible="true">
171
         </separator>
172
         <command
173
               commandId="org.eclipse.ui.edit.delete"
174
               label="Delete"
175
               style="push">
176
            <visibleWhen>
177
               <not>
178
                  <reference
179
                        definitionId="isSynonymNode">
180
                  </reference>
181
               </not>
182
            </visibleWhen>
183
         </command>
184
         <separator
185
               name="taxeditor-navigation.separator5"
186
               visible="true">
187
         </separator>
188
         <command
189
               commandId="org.eclipse.ui.file.refresh"
190
               label="Refresh"
191
               style="push">
192
         </command>
193
         <command
194
               commandId="eu.etaxonomy.taxeditor.navigation.command.copyTaxonName"
195
               label="Copy"
196
               style="push">
197
         </command>
198
      </menuContribution>
199
      <menuContribution
200
            locationURI="toolbar:org.eclipse.ui.main.toolbar">
201
         <toolbar
202
               id="eu.etaxonomy.taxeditor.navigation.search.toolbar">
203
            <control
204
                  class="eu.etaxonomy.taxeditor.navigation.search.SearchBar">
205
            </control>
206
         </toolbar>
207
      </menuContribution>
208
      <menuContribution
209
            locationURI="menu:eu.etaxonomy.navigation.menu.new">
210
         <command
211
               commandId="eu.etaxonomy.taxeditor.navigation.create.classification"
212
               id="eu.etaxonomy.taxeditor.navigation.create.classificationHandler"
213
               label="Classification"
214
               style="push">
215
         </command>
216
         <separator
217
               name="eu.etaxonomy.navigation.menu.new.separator0"
218
               visible="true">
219
         </separator>
220
         <command
221
               commandId="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
222
               label="Taxon"
223
               style="push">
224
         </command>
225
         <separator
226
               name="eu.etaxonomy.navigation.menu.new.separator1"
227
               visible="true">
228
         </separator>
229
      </menuContribution>
230
      <menuContribution
231
            locationURI="popup:eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
232
         <command
233
               commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
234
               label="New"
235
               style="push">
236
         </command>
237
         <command
238
               commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
239
               label="Edit"
240
               style="push">
241
         </command>
242
         <menu
243
               label="Refresh">
244
            <command
245
                  commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyList"
246
                  label="List"
247
                  style="push">
248
            </command>
249
            <command
250
                  commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes"
251
                  label="Key Nodes"
252
                  style="push">
253
            </command>
254
         </menu>
255
         <separator
256
               name="eu.etaxonomy.eu.polytomousKeyView.separator2"
257
               visible="true">
258
         </separator>
259
         <command
260
               commandId="org.eclipse.ui.edit.delete"
261
               label="Delete"
262
               style="push">
263
         </command>
264
         
265
      </menuContribution>
266
   </extension>
267
   <extension
268
         point="org.eclipse.ui.commands">
269
      <command
270
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewTaxonNodeHandler"
271
            id="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
272
            name="New Taxon Node">
273
      </command>
274
      <command
275
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewClassificationHandler"
276
            id="eu.etaxonomy.taxeditor.navigation.create.classification"
277
            name="New Classification">
278
      </command>
279
   </extension>
280
   <extension
281
         point="org.eclipse.ui.commands">
282
      <command
283
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.EditHandler"
284
            id="eu.etaxonomy.taxeditor.navigation.command.update.editSelection"
285
            name="Edit">
286
      </command>
287
      <command
288
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.MoveTaxonHandler"
289
            id="eu.etaxonomy.taxeditor.navigation.command.update.moveTaxon"
290
            name="Move Taxon">
291
      </command>
292
      <command
293
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.RefreshTreeHandler"
294
            id="org.eclipse.ui.file.refresh"
295
            name="Refresh">
296
      </command>
297
      <command
298
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.CopyHandler"
299
            id="eu.etaxonomy.taxeditor.navigation.command.copyTaxonName"
300
            name="Copy">
301
      </command>
302
      <command
303
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.ChangeAcceptedTaxonToSynonymHandler"
304
            id="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym"
305
            name="Change Accepted Taxon to Synonym">
306
      </command>
307
   </extension>
308
   <extension
309
         point="org.eclipse.ui.commands">
310
      <command
311
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.NewPolytomousKeyHandler"
312
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
313
            name="New Polytomous Key">
314
      </command>
315
      <command
316
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.EditPolytomousKeyNodesHandler"
317
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
318
            name="Edit Polytomous Key Nodes">
319
      </command>
320
      <command
321
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RefreshPolytomousKeyListHandler"
322
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyList"
323
            name="Refresh Polytomous Key List">
324
      </command>
325
      <command
326
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RefreshPolytomousKeyNodesHandler"
327
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes"
328
            name="Refresh Polytomous Key Nodes">
329
      </command>
330
   </extension>
331
   <extension
332
         point="org.eclipse.ui.handlers">
333
      <handler
334
            class="eu.etaxonomy.taxeditor.navigation.navigator.handler.DeleteHandler"
335
            commandId="org.eclipse.ui.edit.delete">
336
         <activeWhen>
337
            <with
338
                  variable="activePartId">
339
               <equals
340
                     value="eu.etaxonomy.taxeditor.navigation.navigator">
341
               </equals>
342
            </with>
343
         </activeWhen>
344
      </handler>
345
      <handler
346
            class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.DeleteHandler"
347
            commandId="org.eclipse.ui.edit.delete">
348
         <activeWhen>
349
            <with
350
                  variable="activePartId">
351
               <equals
352
                     value="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
353
               </equals>
354
            </with>
355
         </activeWhen>
356
      </handler>
357
   </extension>
358

    
359
      
360
      <!--extension
361
            point="org.eclipse.ui.navigator.viewer">
362
         <viewer
363
               viewerId="org.eclipse.ui.examples.navigator.view">
364
         </viewer>
365
         <viewerContentBinding
366
               viewerId="org.eclipse.ui.examples.navigator.view">
367
            <includes>
368
               <contentExtension
369
                     pattern="org.eclipse.ui.navigator.resourceContent" />
370
               <contentExtension
371
                     pattern="org.eclipse.ui.navigator.resources.filters.*" />                     
372
            </includes>
373
         </viewerContentBinding>
374
         <viewerActionBinding
375
               viewerId="org.eclipse.ui.examples.navigator.view">
376
            <includes>
377
               <actionExtension
378
                     pattern="org.eclipse.ui.navigator.resources.*">
379
               </actionExtension>
380
            </includes>
381
         </viewerActionBinding>
382
      </extension>
383
      <extension
384
            point="org.eclipse.ui.navigator.navigatorContent">
385
         <commonFilter
386
               id="org.eclipse.ui.examples.navigator.filters.hideNonJavaProjects"
387
               name="Hide non-Java projects">
388
            <filterExpression>
389
               <not>
390
                  <adapt
391
                        type="org.eclipse.core.resources.IProject">
392
                     <test
393
                           property="org.eclipse.core.resources.projectNature"
394
                           value="org.eclipse.jdt.core.javanature">
395
                     </test>
396
                  </adapt>
397
               </not>
398
            </filterExpression>
399
         </commonFilter>
400
      </extension-->
401
      
402
      
403
      
404
      
405
      
406
      
407
   <extension
408
         point="org.eclipse.ui.views">
409
      <view
410
            class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator"
411
            icon="icons/edit_16x16.gif"
412
            id="eu.etaxonomy.taxeditor.navigation.navigator"
413
            name="Taxonomic Tree"/>
414
   </extension>
415
   <extension
416
         point="org.eclipse.ui.navigator.navigatorContent">
417
      <navigatorContent
418
            contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationContentProvider"
419
            id="eu.etaxonomy.taxeditor.navigation.classificationContent"
420
            labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationLabelProvider"
421
            name="Classification">
422
         <triggerPoints>
423
            <instanceof
424
                  value="eu.etaxonomy.taxeditor.navigation.navigator.Root">
425
            </instanceof>
426
         </triggerPoints>
427
         <possibleChildren>
428
            <instanceof
429
                  value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
430
            </instanceof>
431
         </possibleChildren>
432
         <dropAssistant
433
               class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
434
               id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
435
            <possibleDropTargets></possibleDropTargets>
436
         </dropAssistant>
437
      </navigatorContent>
438
      <navigatorContent
439
            contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeContentProvider"
440
            id="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"
441
            labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeLabelProvider"
442
            name="TaxonNode">
443
         <triggerPoints>
444
            <or>
445
               <instanceof
446
                     value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
447
               </instanceof>
448
               <and>
449
                  <instanceof
450
                     value="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
451
                  </instanceof>
452
                  <test
453
                     forcePluginActivation="true"
454
                     property="eu.etaxonomy.taxeditor.propertytests.hasTaxa">
455
                  </test>
456
               </and>
457
            </or>
458
         </triggerPoints>
459
         <dropAssistant
460
               class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
461
               id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
462
            <possibleDropTargets>
463
               <or>
464
                  <instanceof
465
                        value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
466
                  </instanceof>
467
                  <instanceof
468
                        value="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
469
                  </instanceof>
470
               </or>
471
            </possibleDropTargets>
472
         </dropAssistant>
473
         <possibleChildren>
474
            <instanceof
475
                  value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
476
            </instanceof>
477
         </possibleChildren>
478
      </navigatorContent>
479
      <navigatorContent
480
            activeByDefault="false"
481
            contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymContentProvider"
482
            id="eu.etaxonomy.taxeditor.navigation.synonymContent"
483
            labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymLabelProvider"
484
            name="Synonyms (experimental)"
485
            priority="highest">
486
         <triggerPoints>
487
            <and>
488
               <instanceof
489
                     value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
490
               </instanceof>
491
               <test
492
                     forcePluginActivation="true"
493
                     property="eu.etaxonomy.taxeditor.propertytests.hasSynonyms">
494
               </test>
495
            </and>
496
         </triggerPoints>
497
         <possibleChildren>
498
            <instanceof
499
                  value="eu.etaxonomy.cdm.model.taxon.Synonym">
500
            </instanceof>
501
         </possibleChildren>
502
      </navigatorContent>
503
   </extension>
504
   <extension
505
         point="org.eclipse.ui.navigator.viewer">
506
      <viewer
507
            viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
508
         <popupMenu
509
               id="eu.etaxonomy.taxeditor.navigation.navigatorpopup">
510
         </popupMenu>
511
      </viewer>
512
      <viewerContentBinding viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
513
         <includes>
514
            <contentExtension
515
                  pattern="eu.etaxonomy.taxeditor.navigation.classificationContent">
516
            </contentExtension>
517
            <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"/>
518
            <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper"/>
519
            <contentExtension
520
                  pattern="eu.etaxonomy.taxeditor.navigation.synonymContent">
521
            </contentExtension>
522
         </includes>
523
      </viewerContentBinding>
524
      <!--viewer
525
            popupMenuId="eu.etaxonomy.taxeditor.navigation.navigator#PopupMenu"
526
            viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
527
         <options>
528
            <property
529
                  name="org.eclipse.ui.navigator.hideAvailableExtensionsTab"
530
                  value="true">
531
            </property>
532
         </options>
533
      </viewer-->
534
      <dragAssistant
535
               class="eu.etaxonomy.taxeditor.navigation.navigator.dnd.TaxonNavigatorDragAdapterAssistant"
536
               viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
537
      </dragAssistant>
538
   </extension>
539
   <extension
540
         point="org.eclipse.ui.navigator.linkHelper">
541
      <linkHelper
542
            class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonLinkHelper"
543
            id="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper">
544
          <selectionEnablement>
545
             <instanceof value="eu.etaxonomy.cdm.model.taxon.TaxonNode"/>
546
          </selectionEnablement>            
547
         <editorInputEnablement>
548
         	<instanceof value="eu.etaxonomy.taxeditor.editor.TaxonEditorInput"/>
549
         </editorInputEnablement>
550
      </linkHelper>
551
   </extension>
552
   <extension
553
         point="org.eclipse.core.runtime.adapters">
554
      <factory
555
            adaptableType="org.eclipse.core.internal.resources.Workspace"
556
            class="eu.etaxonomy.taxeditor.navigation.WorkbenchUndoContextAdapterFactory">
557
         <adapter
558
               type="org.eclipse.core.commands.operations.IUndoContext">
559
         </adapter>
560
      </factory>
561
   </extension>
562
   <extension
563
         point="org.eclipse.core.expressions.propertyTesters">
564
      <propertyTester
565
            class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
566
            id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
567
            namespace="eu.etaxonomy.taxeditor.propertytests"
568
            properties="hasSynonyms"
569
            type="eu.etaxonomy.cdm.model.taxon.TaxonNode">
570
      </propertyTester>
571
      <propertyTester
572
            class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
573
            id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
574
            namespace="eu.etaxonomy.taxeditor.propertytests"
575
            properties="hasTaxa"
576
            type="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
577
      </propertyTester>
578
   </extension>
579
   <extension
580
         point="org.eclipse.core.expressions.definitions">
581
      <definition
582
            id="isTaxonNode">
583
         <with
584
               variable="selection">
585
            <iterate>
586
               <instanceof
587
                     value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
588
               </instanceof>
589
            </iterate>
590
         </with>
591
      </definition>
592
      <definition
593
            id="isTaxonomicTree">
594
         <with
595
               variable="selection">
596
            <iterate>
597
               <instanceof
598
                     value="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
599
               </instanceof>
600
            </iterate>
601
         </with>
602
      </definition>
603
      <definition
604
            id="isSynonymNode">
605
         <with
606
               variable="selection">
607
            <iterate>
608
               <instanceof
609
                     value="eu.etaxonomy.cdm.model.taxon.Synonym">
610
               </instanceof>
611
            </iterate>
612
         </with>
613
      </definition>
614
   </extension>
615
</plugin>
(5-5/6)