Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

taxeditor / eu.etaxonomy.taxeditor.bulkeditor / plugin.xml @ bb1d1762

History | View | Annotate | Download (21.6 KB)

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

    
585
</plugin>
Add picture from clipboard (Maximum size: 40 MB)