Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

taxeditor / eu.etaxonomy.taxeditor.bulkeditor / plugin.xml @ 30afcea0

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

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