Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

taxeditor / eu.etaxonomy.taxeditor.navigation / plugin.xml @ abada6da

History | View | Annotate | Download (21 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="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.newTaxonNode"
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.newClassification"
97
                  id="eu.etaxonomy.taxeditor.navigation.newClassificationHandler"
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.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.navigation.command.moveTaxon"
124
               label="Move Taxon (with child taxa)"
125
               style="push">
126
            <visibleWhen
127
                  checkEnabled="true">
128
               <reference
129
                     definitionId="isTaxonNode">
130
               </reference>
131
            </visibleWhen>
132
         </command>
133
         <separator
134
               name="taxeditor-navigation.separator2"
135
               visible="true">
136
         </separator>
137
         <!--command
138
               commandId="eu.etaxonomy.taxeditor.navigation.command.createChildTaxon"
139
               label="New Child"
140
               style="push">
141
         </command>
142
         <command
143
               commandId="eu.etaxonomy.taxeditor.navigation.command.quickCreateChildTaxon"
144
               label="Quick Add Child "
145
               style="push">
146
         </command-->
147
         <command
148
               commandId="org.eclipse.ui.file.import"
149
               label="Import..."
150
               style="push">
151
         </command>
152
         <command
153
               commandId="org.eclipse.ui.file.export"
154
               label="Export..."
155
               style="push">
156
         </command>
157
         <separator
158
               name="taxeditor-navigation.separator4"
159
               visible="true">
160
         </separator>
161
         <command
162
               commandId="org.eclipse.ui.edit.delete"
163
               label="Delete"
164
               style="push">
165
            <visibleWhen>
166
               <not>
167
                  <reference
168
                        definitionId="isSynonymNode">
169
                  </reference>
170
               </not>
171
            </visibleWhen>
172
         </command>
173
         <separator
174
               name="taxeditor-navigation.separator5"
175
               visible="true">
176
         </separator>
177
         <command
178
               commandId="org.eclipse.ui.file.refresh"
179
               label="Refresh"
180
               style="push">
181
         </command>
182
         <command
183
               commandId="eu.etaxonomy.taxeditor.navigation.command.copyTaxonName"
184
               label="Copy"
185
               style="push">
186
         </command>
187
      </menuContribution>
188
      <menuContribution
189
            locationURI="toolbar:org.eclipse.ui.main.toolbar">
190
         <toolbar
191
               id="eu.etaxonomy.taxeditor.navigation.search.toolbar">
192
            <control
193
                  class="eu.etaxonomy.taxeditor.navigation.search.SearchBar">
194
            </control>
195
         </toolbar>
196
      </menuContribution>
197
      <menuContribution
198
            locationURI="menu:eu.etaxonomy.navigation.menu.new">
199
         <command
200
               commandId="eu.etaxonomy.taxeditor.navigation.newTaxonNode"
201
               label="Taxon"
202
               style="push">
203
         </command>
204
         <separator
205
               name="eu.etaxonomy.navigation.menu.new.separator1"
206
               visible="true">
207
         </separator>
208
         <command
209
               commandId="eu.etaxonomy.taxeditor.navigation.newClassification"
210
               id="eu.etaxonomy.taxeditor.navigation.newClassificationHandler"
211
               label="Classification"
212
               style="push">
213
         </command>
214
      </menuContribution>
215
      <menuContribution
216
            locationURI="popup:eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
217
         <command
218
               commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
219
               label="New"
220
               style="push">
221
         </command>
222
         <command
223
               commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
224
               label="Edit"
225
               style="push">
226
         </command>
227
         <separator
228
               name="eu.etaxonomy.eu.polytomousKeyView.separator2"
229
               visible="true">
230
         </separator>
231
         <command
232
               commandId="org.eclipse.ui.edit.delete"
233
               label="Delete"
234
               style="push">
235
         </command>
236
      </menuContribution>
237
   </extension>
238
   <extension
239
         point="org.eclipse.ui.commands">
240
      <command
241
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewTaxonNodeHandler"
242
            id="eu.etaxonomy.taxeditor.navigation.newTaxonNode"
243
            name="New Taxon Node">
244
      </command>
245
      <command
246
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewClassificationHandler"
247
            id="eu.etaxonomy.taxeditor.navigation.newClassification"
248
            name="New Classification">
249
      </command>
250
   </extension>
251
   <extension
252
         point="org.eclipse.ui.commands">
253
      <command
254
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.EditHandler"
255
            id="eu.etaxonomy.taxeditor.navigation.command.editSelection"
256
            name="Edit">
257
      </command>
258
      <command
259
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.MoveTaxonHandler"
260
            id="eu.etaxonomy.taxeditor.navigation.command.moveTaxon"
261
            name="Move Taxon">
262
      </command>
263
      <command
264
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.RefreshTreeHandler"
265
            id="org.eclipse.ui.file.refresh"
266
            name="Refresh">
267
      </command>
268
      <command
269
            defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.CopyHandler"
270
            id="eu.etaxonomy.taxeditor.navigation.command.copyTaxonName"
271
            name="Copy">
272
      </command>
273
   </extension>
274
   <extension
275
         point="org.eclipse.ui.commands">
276
      <command
277
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.NewPolytomousKeyHandler"
278
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
279
            name="New Polytomous Key">
280
      </command>
281
      <command
282
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.EditPolytomousKeyNodesHandler"
283
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
284
            name="Edit Polytomous Key Nodes">
285
      </command>
286
   </extension>
287
   <extension
288
         point="org.eclipse.ui.handlers">
289
      <handler
290
            class="eu.etaxonomy.taxeditor.navigation.navigator.handler.DeleteHandler"
291
            commandId="org.eclipse.ui.edit.delete">
292
         <activeWhen>
293
            <with
294
                  variable="activePartId">
295
               <equals
296
                     value="eu.etaxonomy.taxeditor.navigation.navigator">
297
               </equals>
298
            </with>
299
         </activeWhen>
300
      </handler>
301
      <handler
302
            class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.DeleteHandler"
303
            commandId="org.eclipse.ui.edit.delete">
304
         <activeWhen>
305
            <with
306
                  variable="activePartId">
307
               <equals
308
                     value="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
309
               </equals>
310
            </with>
311
         </activeWhen>
312
      </handler>
313
   </extension>
314

    
315
      
316
      <!--extension
317
            point="org.eclipse.ui.navigator.viewer">
318
         <viewer
319
               viewerId="org.eclipse.ui.examples.navigator.view">
320
         </viewer>
321
         <viewerContentBinding
322
               viewerId="org.eclipse.ui.examples.navigator.view">
323
            <includes>
324
               <contentExtension
325
                     pattern="org.eclipse.ui.navigator.resourceContent" />
326
               <contentExtension
327
                     pattern="org.eclipse.ui.navigator.resources.filters.*" />                     
328
            </includes>
329
         </viewerContentBinding>
330
         <viewerActionBinding
331
               viewerId="org.eclipse.ui.examples.navigator.view">
332
            <includes>
333
               <actionExtension
334
                     pattern="org.eclipse.ui.navigator.resources.*">
335
               </actionExtension>
336
            </includes>
337
         </viewerActionBinding>
338
      </extension>
339
      <extension
340
            point="org.eclipse.ui.navigator.navigatorContent">
341
         <commonFilter
342
               id="org.eclipse.ui.examples.navigator.filters.hideNonJavaProjects"
343
               name="Hide non-Java projects">
344
            <filterExpression>
345
               <not>
346
                  <adapt
347
                        type="org.eclipse.core.resources.IProject">
348
                     <test
349
                           property="org.eclipse.core.resources.projectNature"
350
                           value="org.eclipse.jdt.core.javanature">
351
                     </test>
352
                  </adapt>
353
               </not>
354
            </filterExpression>
355
         </commonFilter>
356
      </extension-->
357
      
358
      
359
      
360
      
361
      
362
      
363
   <extension
364
         point="org.eclipse.ui.views">
365
      <view
366
            class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator"
367
            icon="icons/edit_16x16.gif"
368
            id="eu.etaxonomy.taxeditor.navigation.navigator"
369
            name="Taxonomic Tree"/>
370
   </extension>
371
   <extension
372
         point="org.eclipse.ui.navigator.navigatorContent">
373
      <navigatorContent
374
            contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationContentProvider"
375
            id="eu.etaxonomy.taxeditor.navigation.classificationContent"
376
            labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationLabelProvider"
377
            name="Classification">
378
         <triggerPoints>
379
            <instanceof
380
                  value="eu.etaxonomy.taxeditor.navigation.navigator.Root">
381
            </instanceof>
382
         </triggerPoints>
383
         <possibleChildren>
384
            <instanceof
385
                  value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
386
            </instanceof>
387
         </possibleChildren>
388
         <dropAssistant
389
               class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
390
               id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
391
            <possibleDropTargets></possibleDropTargets>
392
         </dropAssistant>
393
      </navigatorContent>
394
      <navigatorContent
395
            contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeContentProvider"
396
            id="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"
397
            labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeLabelProvider"
398
            name="TaxonNode">
399
         <triggerPoints>
400
            <or>
401
               <instanceof
402
                     value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
403
               </instanceof>
404
               <and>
405
                  <instanceof
406
                     value="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
407
                  </instanceof>
408
                  <test
409
                     forcePluginActivation="true"
410
                     property="eu.etaxonomy.taxeditor.propertytests.hasTaxa">
411
                  </test>
412
               </and>
413
            </or>
414
         </triggerPoints>
415
         <dropAssistant
416
               class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
417
               id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
418
            <possibleDropTargets>
419
               <or>
420
                  <instanceof
421
                        value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
422
                  </instanceof>
423
                  <instanceof
424
                        value="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
425
                  </instanceof>
426
               </or>
427
            </possibleDropTargets>
428
         </dropAssistant>
429
         <possibleChildren>
430
            <instanceof
431
                  value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
432
            </instanceof>
433
         </possibleChildren>
434
      </navigatorContent>
435
      <navigatorContent
436
            activeByDefault="false"
437
            contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymContentProvider"
438
            id="eu.etaxonomy.taxeditor.navigation.synonymContent"
439
            labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymLabelProvider"
440
            name="Synonyms (experimental)"
441
            priority="highest">
442
         <triggerPoints>
443
            <and>
444
               <instanceof
445
                     value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
446
               </instanceof>
447
               <test
448
                     forcePluginActivation="true"
449
                     property="eu.etaxonomy.taxeditor.propertytests.hasSynonyms">
450
               </test>
451
            </and>
452
         </triggerPoints>
453
         <possibleChildren>
454
            <instanceof
455
                  value="eu.etaxonomy.cdm.model.taxon.Synonym">
456
            </instanceof>
457
         </possibleChildren>
458
      </navigatorContent>
459
   </extension>
460
   <extension
461
         point="org.eclipse.ui.navigator.viewer">
462
      <viewer
463
            viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
464
         <popupMenu
465
               id="eu.etaxonomy.taxeditor.navigation.navigatorpopup">
466
         </popupMenu>
467
      </viewer>
468
      <viewerContentBinding viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
469
         <includes>
470
            <contentExtension
471
                  pattern="eu.etaxonomy.taxeditor.navigation.classificationContent">
472
            </contentExtension>
473
            <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"/>
474
            <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper"/>
475
            <contentExtension
476
                  pattern="eu.etaxonomy.taxeditor.navigation.synonymContent">
477
            </contentExtension>
478
         </includes>
479
      </viewerContentBinding>
480
      <!--viewer
481
            popupMenuId="eu.etaxonomy.taxeditor.navigation.navigator#PopupMenu"
482
            viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
483
         <options>
484
            <property
485
                  name="org.eclipse.ui.navigator.hideAvailableExtensionsTab"
486
                  value="true">
487
            </property>
488
         </options>
489
      </viewer-->
490
   </extension>
491
   <extension
492
         point="org.eclipse.ui.navigator.linkHelper">
493
      <linkHelper
494
            class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonLinkHelper"
495
            id="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper">
496
          <selectionEnablement>
497
             <instanceof value="eu.etaxonomy.cdm.model.taxon.TaxonNode"/>
498
          </selectionEnablement>            
499
         <editorInputEnablement>
500
                 <instanceof value="eu.etaxonomy.taxeditor.editor.TaxonEditorInput"/>
501
         </editorInputEnablement>
502
      </linkHelper>
503
   </extension>
504
   <extension
505
         point="org.eclipse.core.runtime.adapters">
506
      <factory
507
            adaptableType="org.eclipse.core.internal.resources.Workspace"
508
            class="eu.etaxonomy.taxeditor.navigation.WorkbenchUndoContextAdapterFactory">
509
         <adapter
510
               type="org.eclipse.core.commands.operations.IUndoContext">
511
         </adapter>
512
      </factory>
513
   </extension>
514
   <extension
515
         point="org.eclipse.core.expressions.propertyTesters">
516
      <propertyTester
517
            class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
518
            id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
519
            namespace="eu.etaxonomy.taxeditor.propertytests"
520
            properties="hasSynonyms"
521
            type="eu.etaxonomy.cdm.model.taxon.TaxonNode">
522
      </propertyTester>
523
      <propertyTester
524
            class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
525
            id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
526
            namespace="eu.etaxonomy.taxeditor.propertytests"
527
            properties="hasTaxa"
528
            type="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
529
      </propertyTester>
530
   </extension>
531
   <extension
532
         point="org.eclipse.core.expressions.definitions">
533
      <definition
534
            id="isTaxonNode">
535
         <with
536
               variable="selection">
537
            <iterate>
538
               <instanceof
539
                     value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
540
               </instanceof>
541
            </iterate>
542
         </with>
543
      </definition>
544
      <definition
545
            id="isTaxonomicTree">
546
         <with
547
               variable="selection">
548
            <iterate>
549
               <instanceof
550
                     value="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
551
               </instanceof>
552
            </iterate>
553
         </with>
554
      </definition>
555
      <definition
556
            id="isSynonymNode">
557
         <with
558
               variable="selection">
559
            <iterate>
560
               <instanceof
561
                     value="eu.etaxonomy.cdm.model.taxon.Synonym">
562
               </instanceof>
563
            </iterate>
564
         </with>
565
      </definition>
566
   </extension>
567
</plugin>
Add picture from clipboard (Maximum size: 40 MB)