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