Project

General

Profile

Download (21.6 KB) Statistics
| Branch: | Tag: | Revision:
1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.4"?>
3
<plugin>
4

    
5
   <extension
6
         id="application"
7
         point="org.eclipse.core.runtime.applications">
8
      <application>
9
         <run
10
               class="eu.etaxonomy.taxeditor.bulkeditor.Application">
11
         </run>
12
      </application>
13
   </extension>
14
   <extension
15
         point="org.eclipse.ui.editors">
16
      <editor
17
            class="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor"
18
            default="false"
19
            id="bulkeditor.editor"
20
            name="%editor.name">
21
      </editor>
22
      <editor
23
            class="eu.etaxonomy.taxeditor.nameditor.TaxonNameEditor"
24
            default="false"
25
            id="nameeditor.editor"
26
            name="%editor.name.0">
27
      </editor>
28
      <editor
29
            class="eu.etaxonomy.taxeditor.dataimport.DataImportEditor"
30
            default="false"
31
            id="eu.etaxonomy.taxeditor.dataimport.DataImportEditor"
32
            name="%editor.name.1">
33
      </editor>
34
   </extension>
35
   <extension
36
         point="org.eclipse.ui.menus">
37
      <menuContribution
38
            locationURI="menu:bulkeditor.menus.openmenu">
39
         <dynamic
40
               class="eu.etaxonomy.taxeditor.bulkeditor.command.OpenBulkEditorContributionItem"
41
               id="taxeditor-bulkeditor.dynamicopenmenu">
42
            <visibleWhen
43
                  checkEnabled="true">
44
               <reference
45
                     definitionId="isCdmStoreConnected">
46
               </reference>
47
            </visibleWhen>
48
         </dynamic>
49
      </menuContribution>
50
      <menuContribution
51
            locationURI="popup:bulkeditor.editor">
52
         <menu
53
               label="%menu.label.1">
54
            <dynamic
55
                  class="eu.etaxonomy.taxeditor.bulkeditor.command.DynamicNewObjectMenu"
56
                  id="eu.etaxonomy.taxeditor.bulkeditor.dynamicNewMenu">
57
               <visibleWhen
58
                     checkEnabled="false">
59
                  <reference
60
                        definitionId="isCdmStoreConnected">
61
                  </reference>
62
               </visibleWhen>
63
            </dynamic>
64
            <visibleWhen
65
                  checkEnabled="true">
66
               <reference
67
                     definitionId="isCdmStoreConnected">
68
               </reference>
69
            </visibleWhen>
70
         </menu>
71
         <separator
72
               name="taxeditor-bulkeditor.separator4"
73
               visible="true">
74
         </separator>
75
         <command
76
               commandId="bulkeditor.commands.setmergetarget"
77
               label="%command.label.0"
78
               style="push">
79
            <visibleWhen>
80
               <reference
81
                     definitionId="isMergeEnabled">
82
               </reference>
83
            </visibleWhen>
84
         </command>
85
         
86
         <command
87
               commandId="bulkeditor.commands.setmergecandidate"
88
               label="%command.label.1"
89
               style="push">
90
            <visibleWhen>
91
               <reference
92
                     definitionId="isMergeEnabled">
93
               </reference>
94
            </visibleWhen>
95
         </command>
96
         <command
97
               commandId="bulkeditor.commands.removemergecandidate"
98
               label="%command.label.2"
99
               style="push">
100
            <visibleWhen>
101
               <reference
102
                     definitionId="isMergeEnabled">
103
               </reference>
104
            </visibleWhen>
105
         </command>            
106
         <command
107
               commandId="bulkeditor.commands.mergegroup"
108
               label="%command.label.3"
109
               style="push">
110
            <visibleWhen>
111
               <reference
112
                     definitionId="isMergeEnabled">
113
               </reference>
114
            </visibleWhen>
115
         </command>
116
         <separator
117
               name="eu.etaxonomy.taxeditor.bulkeditor.separator1"
118
               visible="true">
119
         </separator>
120
         <command
121
               commandId="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person"
122
               label="%command.label.5"
123
               style="push">
124
           	   <visibleWhen
125
           	   		checkEnabled="true">
126
               		<and>
127
               		<reference
128
                     	definitionId="isConvertEnabled">
129
               		</reference>
130
               		<reference 
131
               				definitionId="isTeam">
132
               		</reference>
133
            		</and>
134
           		</visibleWhen>
135
         </command>
136
         <command
137
               commandId="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team"
138
               label="%command.label.6"
139
               style="push">
140
            	<visibleWhen 
141
            		checkEnabled="true">>
142
               		<and>
143
               		<reference
144
                     	definitionId="isConvertEnabled">
145
               		</reference>
146
               		<reference 
147
               			definitionId="isPerson">
148
               		</reference>
149
            		</and>
150
           		</visibleWhen>
151
         </command>
152
         <separator
153
               name="taxeditor-bulkeditor.separator2"
154
               visible="true">
155
         </separator>
156
         <menu
157
               label="%menu.label.2">
158
            <dynamic
159
                  class="eu.etaxonomy.taxeditor.bulkeditor.command.DynamicMarkerTypeEditingMenu"
160
                  id="eu.etaxonomy.taxeditor.bulkeditor.dynamicMarkerTypeEditingMenu">
161
            </dynamic>
162
            <visibleWhen
163
                  checkEnabled="true">
164
               <reference
165
                     definitionId="isCdmStoreConnected">
166
               </reference>
167
            </visibleWhen>
168
         </menu>
169
         <separator
170
               name="taxeditor-bulkeditor.separator3"
171
               visible="true">
172
         </separator>
173
         <command
174
               commandId="eu.etaxonomy.taxeditor.bulkeditor.delete"
175
               label="%command.label.4"
176
               style="push">
177
            <visibleWhen
178
                  checkEnabled="true">
179
               <reference
180
                     definitionId="isCdmStoreConnected">
181
               </reference>
182
            </visibleWhen>
183
         </command>
184
         <dynamic
185
               class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
186
               id="eu.etaxonomy.taxeditor.bulkeditor.cdmViewerContextMenu">
187
         </dynamic>
188
      <!--menuContribution
189
            locationURI="popup:org.eclipse.ui.popup.any"-->
190
      </menuContribution>
191
      <menuContribution
192
            allPopups="false"
193
            locationURI="popup:eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects">
194
         <dynamic
195
               class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
196
               id="eu.etaxonomy.taxeditor.referencingObjectsView.cdmViewerContextMenu">
197
         </dynamic>
198
         <separator
199
               name="eu.etaxonomy.taxeditor.bulkeditor.separator1">
200
         </separator>
201
      </menuContribution>
202
      <menuContribution
203
            allPopups="false"
204
            locationURI="menu:eu.etaxonomy.taxeditor.menu.showView?after=eu.etaxonomy.taxeditor.store.showViewMenu.supplemental">
205
         <separator
206
               name="eu.etaxonomy.taxeditor.bulkeditor.separator1"
207
               visible="true">
208
         </separator>
209
         <command
210
               commandId="eu.etaxonomy.taxeditor.openReferencingObjectsViewFromMenu"
211
               label="%command.label.OPEN_REFERENCING_OBJECTS_VIEW"
212
               style="push">
213
            <visibleWhen
214
                  checkEnabled="true">
215
               <reference
216
                     definitionId="isCdmStoreConnected">
217
               </reference>
218
            </visibleWhen>
219
         </command>
220
      </menuContribution>
221
   </extension>
222
   <extension
223
         point="org.eclipse.ui.commands">
224
      <command
225
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.MergeGroupHandler"
226
            id="bulkeditor.commands.mergegroup"
227
            name="%command.name">
228
      </command>
229
      <command
230
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeTargetHandler"
231
            id="bulkeditor.commands.setmergetarget"
232
            name="%command.name.0">
233
      </command>
234
      <command
235
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.OpenBulkEditorHandler"
236
            id="taxeditor-bulkeditor.dynamicopenmenu"
237
            name="%command.name.1">
238
         <commandParameter
239
               id="taxeditor-bulkeditor.commandParameter.inputType"
240
               name="Bulk Editor Class"
241
               values="eu.etaxonomy.taxeditor.bulkeditor.input.BulkEditorInputTypeValues">
242
         </commandParameter>
243
      </command>
244
      <command
245
            defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.NewObjectHandler"
246
            id="taxeditor-bulkeditor.dynamicnewobjectcommand"
247
            name="%command.name.2">
248
      </command>
249
      <command
250
            defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.DeleteObjectHandler"
251
            id="taxeditor-bulkeditor.dynamicdeleteobjectcommand"
252
            name="%command.name.3">
253
      </command>
254
      <command
255
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeCandidateHandler"
256
            id="bulkeditor.commands.setmergecandidate"
257
            name="%command.name.4">
258
      </command>
259
      <command
260
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.RemoveMergeCandidateHandler"
261
            id="bulkeditor.commands.removemergecandidate"
262
            name="%command.name.5">
263
      </command>
264
      <command
265
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMarkerFlagHandler"
266
            id="taxeditor-bulkeditor.command.setMarkerFlag"
267
            name="%command.name.6">
268
      </command>
269
      <command
270
            id="eu.etaxonomy.taxeditor.bulkeditor.delete"
271
            name="%command.name.7">
272
      </command>
273
      <command
274
            id="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person"
275
            name="%command.name.8">
276
      </command>
277
      <command
278
            id="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team"
279
            name="%command.name.10">
280
      </command>
281
      <command
282
            id="eu.etaxonomy.taxeditor.openReferencingObjectsView"
283
            name="%command.name.OPEN_REFERENCING_OBJECTS_VIEW">
284
      </command>
285
      <command
286
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.defaultHandler.OpenBulkEditorForTaxonNodeHandler"
287
            id="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForTaxonNode"
288
            name="%command.name.OPEN_BULK_EDITOR_FOR_TAXON_NODE">
289
      </command>
290
      <command
291
            id="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity"
292
            name="Open bulk editor for identifiable entity">
293
         <commandParameter
294
               id="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity.uuid"
295
               name="Identifiable Entity UUID"
296
               optional="true"
297
               typeId="eu.etaxonomy.taxeditor.uuidParameterType">
298
         </commandParameter>
299
      </command>
300
      <command
301
            defaultHandler="eu.etaxonomy.taxeditor.handler.defaultHandler.OpenReferencingObjectsView"
302
            id="eu.etaxonomy.taxeditor.openReferencingObjectsViewFromMenu"
303
            name="%command.name.OPEN_REFERENCING_OBJECTS_VIEW">
304
      </command>
305
      <!--command
306
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.NewEntityHandler"
307
            id="eu.etaxonomy.taxeditor.bulkeditor.command.new"
308
            name="New Entity">
309
      </command-->
310
   </extension>
311
   <extension
312
         point="org.eclipse.ui.editors.markerAnnotationSpecification">
313
      <specification
314
            annotationType="merge_candidate_annotation"
315
            colorPreferenceKey="merge_candidate_annotation_color"
316
            colorPreferenceValue="220,220,255"
317
            highlightPreferenceValue="true"
318
            icon="icons/merge_candidate.gif"
319
            includeOnPreferencePage="true"
320
            label="%specification.label"
321
            overviewRulerPreferenceKey="merge_candidate_annotation_overview"
322
            overviewRulerPreferenceValue="true"
323
            presentationLayer="0"
324
            symbolicIcon="task"
325
            textPreferenceKey="merge_candidate_annotation_text"
326
            textPreferenceValue="false"
327
            textStylePreferenceValue="BOX"
328
            verticalRulerPreferenceKey="merge_candidate_annotation_vertical"
329
            verticalRulerPreferenceValue="true">
330
      </specification>
331
      <specification
332
            annotationType="merge_target_annotation"
333
            colorPreferenceKey="merge_target_annotation_color"
334
            colorPreferenceValue="220,220,255"
335
            highlightPreferenceValue="true"
336
            icon="icons/merge_target.gif"
337
            includeOnPreferencePage="true"
338
            label="%specification.label.0"
339
            overviewRulerPreferenceKey="merge_target_annotation_overview"
340
            overviewRulerPreferenceValue="true"
341
            presentationLayer="1"
342
            symbolicIcon="task"
343
            textPreferenceKey="merge_target_annotation_text"
344
            textPreferenceValue="false"
345
            textStylePreferenceValue="BOX"
346
            verticalRulerPreferenceKey="merge_target_annotation_vertical"
347
            verticalRulerPreferenceValue="true">
348
      </specification>      
349
   </extension>
350
   <extension
351
         point="org.eclipse.ui.editors.annotationTypes">
352
      <type
353
            name="merge_candidate_annotation">
354
      </type>
355
      <type
356
            name="merge_target_annotation">
357
      </type>
358
   </extension>
359
   <extension
360
         point="org.eclipse.ui.views">
361
      <view
362
            class="eu.etaxonomy.taxeditor.bulkeditor.referencingobjects.ReferencingObjectsView"
363
            id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"
364
            name="%view.name"
365
            restorable="false">
366
      </view>
367
   </extension>   
368
   <extension
369
         point="org.eclipse.core.expressions.definitions">
370
      <definition
371
            id="isMergeEnabled">
372
         <with
373
               variable="activeEditor">
374
            <test
375
                  property="taxeditor-bulkeditor.propertyTester.isMergingEnabled">
376
            </test>
377
         </with>
378
      </definition>
379
      <definition
380
            id="isConvertEnabled">
381
         <with
382
               variable="activeEditor">
383
            <test
384
                  property="taxeditor-bulkeditor.propertyTester.isConvertingEnabled">
385
            </test>
386
         </with>
387
      </definition>
388
      <definition
389
            id="isTaxonBulkEditorInput">
390
         <with
391
               variable="activeEditor">
392
            <test
393
                  property="taxeditor-bulkeditor.propertyTester.isTaxonEditor">
394
            </test>
395
         </with>
396
      </definition>
397
       <definition
398
            id="isTeam">
399
         <with
400
               variable="selection">
401
            <test
402
                  property="eu.etaxonomy.taxeditor.bulkeditor.command.isTeam">
403
            </test>
404
         </with>
405
      </definition>
406
      <definition
407
            id="isPerson">
408
         <with
409
               variable="selection">
410
            <test
411
                  property="eu.etaxonomy.taxeditor.bulkeditor.command.isPerson">
412
            </test>
413
         </with>
414
      </definition>
415
      <definition
416
            id="isBulkEditorSupported">
417
         <with
418
               variable="selection">
419
            <test
420
                  property="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester.isBulkEditorSupported">
421
            </test>
422
         </with>
423
      </definition>
424
      <definition
425
            id="isGroupEditor">
426
         <with
427
               variable="activeEditor">
428
            <test
429
                  property="taxeditor-bulkeditor.propertyTester.isGroupEditor">
430
            </test>
431
         </with>
432
      </definition>
433
   </extension>
434
   <extension
435
         point="org.eclipse.core.expressions.propertyTesters">
436
      <propertyTester
437
            class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"
438
            id="taxeditor-bulkeditor.PropertyTester"
439
            namespace="taxeditor-bulkeditor.propertyTester"
440
            properties="isMergingEnabled, isDerivedUnitEditor, isTaxonEditor, isGroupEditor, isConvertingEnabled"
441
            type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
442
      </propertyTester>
443
      <propertyTester
444
            class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
445
            id="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
446
            namespace="eu.etaxonomy.taxeditor.bulkeditor.command"
447
            properties="isTeam, isPerson"
448
            type="java.lang.Object">
449
      </propertyTester>
450
      <propertyTester
451
            class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester"
452
            id="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester"
453
            namespace="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester"
454
            properties="isBulkEditorSupported"
455
            type="org.eclipse.jface.viewers.IStructuredSelection">
456
      </propertyTester>
457
   </extension>
458
   <extension
459
         point="org.eclipse.ui.handlers">
460
      <handler
461
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut"
462
            commandId="org.eclipse.ui.edit.cut">
463
         <activeWhen>
464
            <with
465
                  variable="activeFocusControlId">
466
               <equals
467
                     value="bulkeditor.textControlId">
468
               </equals>
469
            </with>
470
         </activeWhen>
471
      </handler>
472
      <handler
473
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"
474
            commandId="org.eclipse.ui.edit.copy">
475
         <activeWhen>
476
            <with
477
                  variable="activeFocusControlId">
478
               <equals
479
                     value="bulkeditor.textControlId">
480
               </equals>
481
            </with>
482
         </activeWhen>
483
      </handler>
484
      <handler
485
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:paste"
486
            commandId="org.eclipse.ui.edit.paste">
487
         <activeWhen>
488
            <with
489
                  variable="activeFocusControlId">
490
               <equals
491
                     value="bulkeditor.textControlId">
492
               </equals>
493
            </with>
494
         </activeWhen>
495
      </handler>
496
      <handler
497
            class="eu.etaxonomy.taxeditor.bulkeditor.handler.DeleteHandler"
498
            commandId="eu.etaxonomy.taxeditor.bulkeditor.delete">
499
         <activeWhen>
500
            <with
501
                  variable="selection">
502
               <instanceof
503
                     value="eu.etaxonomy.taxeditor.model.LineSelection">
504
               </instanceof>
505
            </with>
506
         </activeWhen>
507
      </handler>
508
      <handler
509
            class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertTeam2PersonHandler"
510
            commandId="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person">
511
      </handler>
512
      <handler
513
            class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertPerson2TeamRemotingHandler"
514
            commandId="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team">
515
             <activeWhen>
516
            <reference
517
                  definitionId="isRemoting">
518
            </reference>
519
         </activeWhen>
520
      </handler>
521
      <handler
522
            class="eu.etaxonomy.taxeditor.bulkeditor.handler.defaultHandler.OpenBulkEditorForIdentifiableEntity"
523
            commandId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity">
524
         <activeWhen>
525
            <and>
526
               <reference
527
                     definitionId="isBulkEditorSupported">
528
               </reference>
529
               <not>
530
                  <with
531
                        variable="activePartId">
532
                     <equals
533
                           value="bulkeditor.editor">
534
                     </equals>
535
                  </with>
536
               </not>
537
            </and>
538
         </activeWhen>
539
      </handler>
540
      
541
   </extension>
542
   <extension
543
         point="org.eclipse.ui.preferencePages">
544
      <page
545
            category="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
546
            class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorMarkerPreferencePage"
547
            id="eu.etaxonomy.taxeditor.preferences.bulkeditor.markerTypes"
548
            name="%page.name">
549
      </page>
550
      <page
551
            category="eu.etaxonomy.taxeditor.preferences.general"
552
            class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorGeneralPreferencePage"
553
            id="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
554
            name="%page.name.0">
555
      </page>
556
   </extension>
557
   <extension
558
         point="eu.etaxonomy.taxeditor.store.cdmViewer">
559
      <viewCommandMapping
560
            commandId="eu.etaxonomy.taxeditor.openReferencingObjectsView"
561
            selection="java.lang.Object"
562
            viewerName="%viewCommandMapping.viewerName.REFERENCING_OBJECTS_VIEW">
563
      </viewCommandMapping>
564
      <viewCommandMapping
565
            commandId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForTaxonNode"
566
            selection="eu.etaxonomy.cdm.model.taxon.TaxonNode"
567
            viewerName="%viewCommandMapping.viewerName.BULK_EDITOR">
568
      </viewCommandMapping>
569
      <viewCommandMapping
570
            commandId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity"
571
            selection="eu.etaxonomy.cdm.model.common.IdentifiableEntity"
572
            viewerName="%viewCommandMapping.viewerName.BULK_EDITOR">
573
      </viewCommandMapping>
574
   </extension>
575
   <extension
576
         id="eu.etaxonomy.taxeditor.bulkeditor.workbench.model"
577
         name="Bulk Editor Workbench Model"
578
         point="org.eclipse.e4.workbench.model">
579
      <fragment
580
            apply="always"
581
            uri="fragment.e4xmi">
582
      </fragment>
583
   </extension>
584
<!-- start set marker -->
585

    
586
</plugin>
(6-6/7)