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

    
230
      </menuContribution>
231
      <menuContribution
232
            locationURI="popup:eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
233
         <command
234
               commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
235
               label="New"
236
               style="push">
237
         </command>
238
         <command
239
               commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
240
               label="Edit"
241
               style="push">
242
         </command>
243
         <menu
244
               label="Refresh">
245
            <command
246
                  commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyList"
247
                  label="List"
248
                  style="push">
249
            </command>
250
            <command
251
                  commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes"
252
                  label="Key Nodes"
253
                  style="push">
254
            </command>
255
         </menu>
256
         <separator
257
               name="eu.etaxonomy.eu.polytomousKeyView.separator2"
258
               visible="true">
259
         </separator>
260
         <command
261
               commandId="org.eclipse.ui.edit.delete"
262
               label="Delete"
263
               style="push">
264
         </command>
265
         
266
      </menuContribution>
267
   </extension>
268
   <extension
269
         point="org.eclipse.ui.commands">
270
      <command
271
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewTaxonNodeHandler"
272
            id="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
273
            name="New Taxon Node">
274
      </command>
275
      <command
276
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewClassificationHandler"
277
            id="eu.etaxonomy.taxeditor.navigation.create.classification"
278
            name="New Classification">
279
      </command>
280
   </extension>
281
   <extension
282
         point="org.eclipse.ui.commands">
283
      <command
284
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.EditHandler"
285
            id="eu.etaxonomy.taxeditor.navigation.command.update.editSelection"
286
            name="Edit">
287
      </command>
288
      <command
289
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.MoveTaxonHandler"
290
            id="eu.etaxonomy.taxeditor.navigation.command.update.moveTaxon"
291
            name="Move Taxon">
292
      </command>
293
      <command
294
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.RefreshTreeHandler"
295
            id="org.eclipse.ui.file.refresh"
296
            name="Refresh">
297
      </command>
298
      <command
299
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.CopyHandler"
300
            id="eu.etaxonomy.taxeditor.navigation.command.copyTaxonName"
301
            name="Copy">
302
      </command>
303
      <command
304
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.ChangeAcceptedTaxonToSynonymHandler"
305
            id="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym"
306
            name="Change Accepted Taxon to Synonym">
307
      </command>
308
   </extension>
309
   <extension
310
         point="org.eclipse.ui.commands">
311
      <command
312
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.NewPolytomousKeyHandler"
313
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
314
            name="New Polytomous Key">
315
      </command>
316
      <command
317
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.EditPolytomousKeyNodesHandler"
318
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
319
            name="Edit Polytomous Key Nodes">
320
      </command>
321
      <command
322
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RefreshPolytomousKeyListHandler"
323
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyList"
324
            name="Refresh Polytomous Key List">
325
      </command>
326
      <command
327
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RefreshPolytomousKeyNodesHandler"
328
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes"
329
            name="Refresh Polytomous Key Nodes">
330
      </command>
331
   </extension>
332
   <extension
333
         point="org.eclipse.ui.handlers">
334
      <handler
335
            class="eu.etaxonomy.taxeditor.navigation.navigator.handler.DeleteHandler"
336
            commandId="org.eclipse.ui.edit.delete">
337
         <activeWhen>
338
            <with
339
                  variable="activePartId">
340
               <equals
341
                     value="eu.etaxonomy.taxeditor.navigation.navigator">
342
               </equals>
343
            </with>
344
         </activeWhen>
345
      </handler>
346
      <handler
347
            class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.DeleteHandler"
348
            commandId="org.eclipse.ui.edit.delete">
349
         <activeWhen>
350
            <with
351
                  variable="activePartId">
352
               <equals
353
                     value="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
354
               </equals>
355
            </with>
356
         </activeWhen>
357
      </handler>
358
   </extension>
359

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