Project

General

Profile

Download (18.7 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="%view.name"
21
            restorable="false">
22
      </view>
23
      <view
24
            allowMultiple="false"
25
            class="eu.etaxonomy.taxeditor.navigation.key.polytomous.PolytomousKeyViewPart"
26
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart"
27
            name="%view.name.1"
28
            restorable="true">
29
      </view>
30
   </extension>
31
   <extension
32
         point="org.eclipse.ui.menus">
33
      <menuContribution
34
            locationURI="menu:eu.etaxonomy.taxeditor.workbench.menu.file">
35
         <separator
36
               name="eu.etaxonomy.taxeditor.navigation.recentnames.separator"
37
               visible="true">
38
         </separator>
39
         <dynamic
40
               class="eu.etaxonomy.taxeditor.navigation.RecentNamesContributionItem"
41
               id="eu.etaxonomy.taxeditor.navigation.recentnames">
42
            <visibleWhen
43
                  checkEnabled="true">
44
               <reference
45
                     definitionId="isCdmStoreConnected">
46
               </reference>
47
            </visibleWhen>
48
         </dynamic>
49
      </menuContribution>
50
      <menuContribution
51
            locationURI="menu:eu.etaxonomy.taxeditor.menu.showView?before=eu.etaxonomy.taxeditor.editor.showViewMenu">
52
         <command
53
               commandId="org.eclipse.ui.views.showView"
54
               label="%command.label.0"
55
               style="push">
56
            <parameter
57
                  name="org.eclipse.ui.views.showView.viewId"
58
                  value="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
59
            </parameter>
60
            <visibleWhen
61
                  checkEnabled="true">
62
               <reference
63
                     definitionId="isCdmStoreConnected">
64
               </reference>
65
            </visibleWhen>
66
         </command>
67
      </menuContribution>
68
      <menuContribution
69
            locationURI="popup:eu.etaxonomy.taxeditor.navigation.search.searchResultView">
70
         <dynamic
71
               class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
72
               id="eu.etaxonomy.taxeditor.navigation.cdmViewerContextMenu">
73
         </dynamic>
74
         <separator
75
               name="eu.etaxonomy.taxeditor.navigation.separator2">
76
         </separator>
77
      </menuContribution>
78
      <menuContribution
79
            locationURI="menu:eu.etaxonomy.navigation.menu.new">
80
         <command
81
               commandId="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
82
               label="%command.label.13"
83
               style="push">
84
            <visibleWhen
85
                  checkEnabled="true">
86
               <reference
87
                     definitionId="isCdmStoreConnected">
88
               </reference>
89
            </visibleWhen>
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="%command.label.14"
99
               style="push">
100
            <visibleWhen
101
                  checkEnabled="true">
102
               <reference
103
                     definitionId="isCdmStoreConnected">
104
               </reference>
105
            </visibleWhen>
106
         </command>
107
      </menuContribution>
108
      <menuContribution
109
            locationURI="popup:eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
110
         <command
111
               commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
112
               label="%command.label.15"
113
               style="push">
114
         </command>
115
         <dynamic
116
               class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
117
               id="eu.etaxonomy.taxeditor.navigation.polytomous.cdmViewerContextMenu">
118
         </dynamic>
119
         <command
120
               commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
121
               label="%command.label.16"
122
               style="push">
123
         </command>
124
         <menu
125
               label="%menu.label.0">
126
            <command
127
                  commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyList"
128
                  label="%command.label.17"
129
                  style="push">
130
            </command>
131
            <command
132
                  commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes"
133
                  label="%command.label.18"
134
                  style="push">
135
            </command>
136
         </menu>
137
         <separator
138
               name="eu.etaxonomy.eu.polytomousKeyView.separator2"
139
               visible="true">
140
         </separator>
141
         <command
142
               commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete"
143
               label="%command.label.19"
144
               style="push">
145
         </command>
146
         
147
      </menuContribution>
148
   </extension>
149
   <extension
150
         point="org.eclipse.ui.commands">
151
      <command
152
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.NewPolytomousKeyHandler"
153
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
154
            name="%command.name.6">
155
      </command>
156
      <command
157
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.EditPolytomousKeyNodesHandler"
158
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
159
            name="%command.name.7">
160
      </command>
161
      <command
162
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RefreshPolytomousKeyListHandler"
163
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyList"
164
            name="%command.name.8">
165
      </command>
166
      <command
167
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RefreshPolytomousKeyNodesHandler"
168
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes"
169
            name="%command.name.9">
170
      </command>
171
      <command
172
            defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.DeleteHandler"
173
            id="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete"
174
            name="%command.name.11">
175
      </command>
176
   </extension>
177
   <extension
178
         point="org.eclipse.ui.handlers">
179
      <handler
180
            class="eu.etaxonomy.taxeditor.navigation.navigator.handler.DeleteHandler"
181
            commandId="eu.etaxonomy.taxeditor.navigation.navigator.command.delete">
182
         <activeWhen>
183
            <with
184
                  variable="activePartId">
185
               <equals
186
                     value="eu.etaxonomy.taxeditor.navigation.navigator">
187
               </equals>
188
            </with>
189
         </activeWhen>
190
      </handler>
191
      <handler
192
            class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.DeleteHandler"
193
            commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete">
194
         <activeWhen>
195
            <with
196
                  variable="activePartId">
197
               <equals
198
                     value="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
199
               </equals>
200
            </with>
201
         </activeWhen>
202
      </handler>
203
      <handler
204
            class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RemotingDeletePolytomousKeyHandler"
205
            commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete">
206
         <activeWhen>
207
            <reference
208
                  definitionId="isRemoting">
209
            </reference>
210
         </activeWhen>
211
      </handler>
212
      <handler
213
            class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RemotingUpdatePolytomousKeyAllNodesHandler"
214
            commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes">
215
         <activeWhen>
216
            <reference
217
                  definitionId="isRemoting">
218
            </reference>
219
         </activeWhen>
220
      </handler>
221
      <handler
222
            class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RemotingEditPolytomousKeyNodesHandler"
223
            commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes">
224
         <activeWhen>
225
            <reference
226
                  definitionId="isRemoting">
227
            </reference>
228
         </activeWhen>
229
      </handler>
230
      <handler
231
            class="eu.etaxonomy.taxeditor.handler.defaultHandler.OpenReferencingObjectsView"
232
            commandId="eu.etaxonomy.taxeditor.openReferencingObjectsView">
233
         <activeWhen>
234
            <with
235
                  variable="activePartId">
236
               <equals
237
                     value="eu.etaxonomy.taxeditor.navigation.navigator">
238
               </equals>
239
            </with>
240
         </activeWhen>
241
      </handler>
242
   </extension>  
243
   <extension
244
         point="org.eclipse.ui.navigator.navigatorContent">
245
      <navigatorContent
246
            contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationContentProvider"
247
            id="eu.etaxonomy.taxeditor.navigation.classificationContent"
248
            labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationLabelProvider"
249
            name="%navigatorContent.name">
250
         <triggerPoints>
251
            <instanceof
252
                  value="eu.etaxonomy.taxeditor.navigation.navigator.Root">
253
            </instanceof>
254
         </triggerPoints>
255
         <possibleChildren>
256
            <instanceof
257
                  value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
258
            </instanceof>
259
         </possibleChildren>
260
         <dropAssistant
261
               class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
262
               id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
263
            <possibleDropTargets></possibleDropTargets>
264
         </dropAssistant>
265
      </navigatorContent>
266
      <navigatorContent
267
            contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeContentProvider"
268
            id="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"
269
            labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeLabelProvider"
270
            name="%navigatorContent.name.0">
271
         <triggerPoints>
272
             <or>
273
               <instanceof
274
                     value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
275
               </instanceof>
276
               <and>
277
                  <instanceof
278
                     value="eu.etaxonomy.cdm.model.taxon.Classification">
279
                  </instanceof>
280
                  <test
281
                     forcePluginActivation="true"
282
                     property="eu.etaxonomy.taxeditor.propertytests.hasTaxa">
283
                  </test>
284
               </and>
285
            </or>
286
         </triggerPoints>
287
         <dropAssistant
288
               class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
289
               id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
290
            <possibleDropTargets>
291
               <or>
292
                  <instanceof
293
                        value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
294
                  </instanceof>
295
                  <instanceof
296
                        value="eu.etaxonomy.cdm.model.taxon.Classification">
297
                  </instanceof>
298
               </or>
299
            </possibleDropTargets>
300
         </dropAssistant>
301
         <possibleChildren>
302
            <instanceof
303
                  value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
304
            </instanceof>
305
         </possibleChildren>
306
      </navigatorContent>
307
      <navigatorContent
308
            activeByDefault="false"
309
            contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymContentProvider"
310
            id="eu.etaxonomy.taxeditor.navigation.synonymContent"
311
            labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymLabelProvider"
312
            name="%navigatorContent.name.1"
313
            priority="highest">
314
         <triggerPoints>
315
            <and>
316
               <instanceof
317
                     value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
318
               </instanceof>
319
               <test
320
                     forcePluginActivation="true"
321
                     property="eu.etaxonomy.taxeditor.propertytests.hasSynonyms">
322
               </test>
323
            </and>
324
         </triggerPoints>
325
         <possibleChildren>
326
            <instanceof
327
                  value="eu.etaxonomy.cdm.model.taxon.Synonym">
328
            </instanceof>
329
         </possibleChildren>
330
      </navigatorContent>
331
   </extension>
332
   <extension
333
         point="org.eclipse.ui.navigator.viewer">
334
      <viewer
335
            viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
336
         <popupMenu
337
               id="eu.etaxonomy.taxeditor.navigation.navigatorpopup">
338
         </popupMenu>
339
      </viewer>
340
      <viewerContentBinding viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
341
         <includes>
342
            <contentExtension
343
                  pattern="eu.etaxonomy.taxeditor.navigation.classificationContent">
344
            </contentExtension>
345
            <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"/>
346
            <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper"/>
347
            <contentExtension
348
                  pattern="eu.etaxonomy.taxeditor.navigation.synonymContent">
349
            </contentExtension>
350
         </includes>
351
      </viewerContentBinding>
352
      <dragAssistant
353
               class="eu.etaxonomy.taxeditor.navigation.navigator.dnd.TaxonNavigatorDragAdapterAssistant"
354
               viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
355
      </dragAssistant>
356
   </extension>
357
   <extension
358
         point="org.eclipse.ui.navigator.linkHelper">
359
      <linkHelper
360
            class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonLinkHelper"
361
            id="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper">
362
          <selectionEnablement>
363
             <instanceof value="eu.etaxonomy.cdm.model.taxon.TaxonNode"/>
364
          </selectionEnablement>            
365
         <editorInputEnablement>
366
         	<instanceof value="eu.etaxonomy.taxeditor.editor.TaxonEditorInput"/>
367
         </editorInputEnablement>
368
      </linkHelper>
369
   </extension>
370
   <extension
371
         point="org.eclipse.core.runtime.adapters">
372
      <factory
373
            adaptableType="org.eclipse.core.internal.resources.Workspace"
374
            class="eu.etaxonomy.taxeditor.navigation.WorkbenchUndoContextAdapterFactory">
375
         <adapter
376
               type="org.eclipse.core.commands.operations.IUndoContext">
377
         </adapter>
378
      </factory>
379
   </extension>
380
      <extension
381
         point="org.eclipse.core.expressions.propertyTesters">
382
      <propertyTester
383
            class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
384
            id="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
385
            namespace="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
386
            properties="hasSynonyms, isClassification"
387
            type="java.lang.Object">
388
      </propertyTester>
389
      
390
     <propertyTester
391
             class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
392
            id="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
393
            namespace="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
394
            properties="hasTaxa"
395
            type="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
396
      </propertyTester>
397
      <propertyTester
398
             class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
399
            id="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
400
            namespace="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
401
            properties="hasTaxa"
402
            type="eu.etaxonomy.cdm.model.taxon.TaxonNode">
403
      </propertyTester>
404
   <propertyTester
405
         class="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
406
         id="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
407
         namespace="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
408
         properties="isCdmStoreConnected,isRemoting,isStandAlone"
409
         type="java.lang.Object">
410
   </propertyTester>
411
   </extension>
412
   <extension
413
         point="org.eclipse.core.expressions.definitions">
414
      <definition
415
            id="isTaxonNode">
416
         <with
417
               variable="selection">
418
            <iterate
419
                  ifEmpty="false">
420
               <instanceof
421
                     value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
422
               </instanceof>
423
            </iterate>
424
         </with>
425
      </definition>
426
      <definition
427
            id="isSynonymNode">
428
         <with
429
               variable="selection">
430
            <iterate
431
                  ifEmpty="false">
432
               <instanceof
433
                     value="eu.etaxonomy.cdm.model.taxon.Synonym">
434
               </instanceof>
435
            </iterate>
436
         </with>
437
      </definition>
438
     
439
      <definition
440
            id="isChecklistEditorEnabled">
441
         <with
442
               variable="selection">
443
            <test
444
                  property="eu.etaxonomy.taxeditor.preferences.propertyTester.isChecklistEditorEnabled">
445
            </test>
446
         </with>
447
      </definition>
448
      <definition
449
            id="isCdmStoreConnected">
450
         <test
451
               property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isCdmStoreConnected">
452
         </test>
453
      </definition>
454
      <definition
455
            id="isRemoting">
456
         <test
457
               property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isRemoting">
458
         </test>
459
      </definition>
460
      <definition
461
            id="isStandAlone">
462
         <test
463
               property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isStandAlone">
464
         </test>
465
      </definition>
466
   </extension>
467
   <extension
468
         id="eu.etaxonomy.taxeditor.navigation.workbench.model"
469
         name="Navigation Workbench Model"
470
         point="org.eclipse.e4.workbench.model">
471
      <fragment
472
            apply="always"
473
            uri="fragment.e4xmi">
474
      </fragment>
475
   </extension>
476
</plugin>
(6-6/7)