Project

General

Profile

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

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