Project

General

Profile

Download (19.8 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
   </extension>
192
   <extension
193
         point="org.eclipse.ui.commands">
194
      <command
195
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.MergeGroupHandler"
196
            id="bulkeditor.commands.mergegroup"
197
            name="%command.name">
198
      </command>
199
      <command
200
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeTargetHandler"
201
            id="bulkeditor.commands.setmergetarget"
202
            name="%command.name.0">
203
      </command>
204
      <command
205
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.OpenBulkEditorHandler"
206
            id="taxeditor-bulkeditor.dynamicopenmenu"
207
            name="%command.name.1">
208
         <commandParameter
209
               id="taxeditor-bulkeditor.commandParameter.inputType"
210
               name="Bulk Editor Class"
211
               values="eu.etaxonomy.taxeditor.bulkeditor.input.BulkEditorInputTypeValues">
212
         </commandParameter>
213
      </command>
214
      <command
215
            defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.NewObjectHandler"
216
            id="taxeditor-bulkeditor.dynamicnewobjectcommand"
217
            name="%command.name.2">
218
      </command>
219
      <command
220
            defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.DeleteObjectHandler"
221
            id="taxeditor-bulkeditor.dynamicdeleteobjectcommand"
222
            name="%command.name.3">
223
      </command>
224
      <command
225
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeCandidateHandler"
226
            id="bulkeditor.commands.setmergecandidate"
227
            name="%command.name.4">
228
      </command>
229
      <command
230
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.RemoveMergeCandidateHandler"
231
            id="bulkeditor.commands.removemergecandidate"
232
            name="%command.name.5">
233
      </command>
234
      <command
235
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMarkerFlagHandler"
236
            id="taxeditor-bulkeditor.command.setMarkerFlag"
237
            name="%command.name.6">
238
      </command>
239
      <command
240
            id="eu.etaxonomy.taxeditor.bulkeditor.delete"
241
            name="%command.name.7">
242
      </command>
243
      <command
244
            id="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person"
245
            name="%command.name.8">
246
      </command>
247
      <command
248
            id="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team"
249
            name="%command.name.10">
250
      </command>
251
      <command
252
            id="eu.etaxonomy.taxeditor.openReferencingObjectsView"
253
            name="%command.name.OPEN_REFERENCING_OBJECTS_VIEW">
254
      </command>
255
      <command
256
            id="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity"
257
            name="Open bulk editor for identifiable entity">
258
         <commandParameter
259
               id="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity.uuid"
260
               name="Identifiable Entity UUID"
261
               optional="true"
262
               typeId="eu.etaxonomy.taxeditor.uuidParameterType">
263
         </commandParameter>
264
      </command>
265
      <command
266
            defaultHandler="eu.etaxonomy.taxeditor.handler.defaultHandler.OpenReferencingObjectsView"
267
            id="eu.etaxonomy.taxeditor.openReferencingObjectsViewFromMenu"
268
            name="%command.name.OPEN_REFERENCING_OBJECTS_VIEW">
269
      </command>
270
      <!--command
271
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.NewEntityHandler"
272
            id="eu.etaxonomy.taxeditor.bulkeditor.command.new"
273
            name="New Entity">
274
      </command-->
275
   </extension>
276
   <extension
277
         point="org.eclipse.ui.editors.markerAnnotationSpecification">
278
      <specification
279
            annotationType="merge_candidate_annotation"
280
            colorPreferenceKey="merge_candidate_annotation_color"
281
            colorPreferenceValue="220,220,255"
282
            highlightPreferenceValue="true"
283
            icon="icons/merge_candidate.gif"
284
            includeOnPreferencePage="true"
285
            label="%specification.label"
286
            overviewRulerPreferenceKey="merge_candidate_annotation_overview"
287
            overviewRulerPreferenceValue="true"
288
            presentationLayer="0"
289
            symbolicIcon="task"
290
            textPreferenceKey="merge_candidate_annotation_text"
291
            textPreferenceValue="false"
292
            textStylePreferenceValue="BOX"
293
            verticalRulerPreferenceKey="merge_candidate_annotation_vertical"
294
            verticalRulerPreferenceValue="true">
295
      </specification>
296
      <specification
297
            annotationType="merge_target_annotation"
298
            colorPreferenceKey="merge_target_annotation_color"
299
            colorPreferenceValue="220,220,255"
300
            highlightPreferenceValue="true"
301
            icon="icons/merge_target.gif"
302
            includeOnPreferencePage="true"
303
            label="%specification.label.0"
304
            overviewRulerPreferenceKey="merge_target_annotation_overview"
305
            overviewRulerPreferenceValue="true"
306
            presentationLayer="1"
307
            symbolicIcon="task"
308
            textPreferenceKey="merge_target_annotation_text"
309
            textPreferenceValue="false"
310
            textStylePreferenceValue="BOX"
311
            verticalRulerPreferenceKey="merge_target_annotation_vertical"
312
            verticalRulerPreferenceValue="true">
313
      </specification>      
314
   </extension>
315
   <extension
316
         point="org.eclipse.ui.editors.annotationTypes">
317
      <type
318
            name="merge_candidate_annotation">
319
      </type>
320
      <type
321
            name="merge_target_annotation">
322
      </type>
323
   </extension>
324
   <extension
325
         point="org.eclipse.core.expressions.definitions">
326
      <definition
327
            id="isMergeEnabled">
328
         <with
329
               variable="activeEditor">
330
            <test
331
                  property="taxeditor-bulkeditor.propertyTester.isMergingEnabled">
332
            </test>
333
         </with>
334
      </definition>
335
      <definition
336
            id="isConvertEnabled">
337
         <with
338
               variable="activeEditor">
339
            <test
340
                  property="taxeditor-bulkeditor.propertyTester.isConvertingEnabled">
341
            </test>
342
         </with>
343
      </definition>
344
      <definition
345
            id="isTaxonBulkEditorInput">
346
         <with
347
               variable="activeEditor">
348
            <test
349
                  property="taxeditor-bulkeditor.propertyTester.isTaxonEditor">
350
            </test>
351
         </with>
352
      </definition>
353
       <definition
354
            id="isTeam">
355
         <with
356
               variable="selection">
357
            <test
358
                  property="eu.etaxonomy.taxeditor.bulkeditor.command.isTeam">
359
            </test>
360
         </with>
361
      </definition>
362
      <definition
363
            id="isPerson">
364
         <with
365
               variable="selection">
366
            <test
367
                  property="eu.etaxonomy.taxeditor.bulkeditor.command.isPerson">
368
            </test>
369
         </with>
370
      </definition>
371
      <definition
372
            id="isBulkEditorSupported">
373
         <with
374
               variable="selection">
375
            <test
376
                  property="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester.isBulkEditorSupported">
377
            </test>
378
         </with>
379
      </definition>
380
      <definition
381
            id="isGroupEditor">
382
         <with
383
               variable="activeEditor">
384
            <test
385
                  property="taxeditor-bulkeditor.propertyTester.isGroupEditor">
386
            </test>
387
         </with>
388
      </definition>
389
   </extension>
390
   <extension
391
         point="org.eclipse.core.expressions.propertyTesters">
392
      <propertyTester
393
            class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"
394
            id="taxeditor-bulkeditor.PropertyTester"
395
            namespace="taxeditor-bulkeditor.propertyTester"
396
            properties="isMergingEnabled, isDerivedUnitEditor, isTaxonEditor, isGroupEditor, isConvertingEnabled"
397
            type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
398
      </propertyTester>
399
      <propertyTester
400
            class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
401
            id="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
402
            namespace="eu.etaxonomy.taxeditor.bulkeditor.command"
403
            properties="isTeam, isPerson"
404
            type="java.lang.Object">
405
      </propertyTester>
406
      <propertyTester
407
            class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester"
408
            id="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester"
409
            namespace="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester"
410
            properties="isBulkEditorSupported"
411
            type="org.eclipse.jface.viewers.IStructuredSelection">
412
      </propertyTester>
413
   </extension>
414
   <extension
415
         point="org.eclipse.ui.handlers">
416
      <handler
417
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut"
418
            commandId="org.eclipse.ui.edit.cut">
419
         <activeWhen>
420
            <with
421
                  variable="activeFocusControlId">
422
               <equals
423
                     value="bulkeditor.textControlId">
424
               </equals>
425
            </with>
426
         </activeWhen>
427
      </handler>
428
      <handler
429
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"
430
            commandId="org.eclipse.ui.edit.copy">
431
         <activeWhen>
432
            <with
433
                  variable="activeFocusControlId">
434
               <equals
435
                     value="bulkeditor.textControlId">
436
               </equals>
437
            </with>
438
         </activeWhen>
439
      </handler>
440
      <handler
441
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:paste"
442
            commandId="org.eclipse.ui.edit.paste">
443
         <activeWhen>
444
            <with
445
                  variable="activeFocusControlId">
446
               <equals
447
                     value="bulkeditor.textControlId">
448
               </equals>
449
            </with>
450
         </activeWhen>
451
      </handler>
452
      <handler
453
            class="eu.etaxonomy.taxeditor.bulkeditor.handler.DeleteHandler"
454
            commandId="eu.etaxonomy.taxeditor.bulkeditor.delete">
455
         <activeWhen>
456
            <with
457
                  variable="selection">
458
               <instanceof
459
                     value="eu.etaxonomy.taxeditor.model.LineSelection">
460
               </instanceof>
461
            </with>
462
         </activeWhen>
463
      </handler>
464
      <handler
465
            class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertTeam2PersonHandler"
466
            commandId="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person">
467
      </handler>
468
      <handler
469
            class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertPerson2TeamRemotingHandler"
470
            commandId="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team">
471
             <activeWhen>
472
            <reference
473
                  definitionId="isRemoting">
474
            </reference>
475
         </activeWhen>
476
      </handler>
477
      <handler
478
            class="eu.etaxonomy.taxeditor.bulkeditor.handler.defaultHandler.OpenBulkEditorForIdentifiableEntity"
479
            commandId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity">
480
         <activeWhen>
481
            <and>
482
               <reference
483
                     definitionId="isBulkEditorSupported">
484
               </reference>
485
               <not>
486
                  <with
487
                        variable="activePartId">
488
                     <equals
489
                           value="bulkeditor.editor">
490
                     </equals>
491
                  </with>
492
               </not>
493
            </and>
494
         </activeWhen>
495
      </handler>
496
      
497
   </extension>
498
   <extension
499
         point="org.eclipse.ui.preferencePages">
500
      <page
501
            category="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
502
            class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorMarkerPreferencePage"
503
            id="eu.etaxonomy.taxeditor.preferences.bulkeditor.markerTypes"
504
            name="%page.name">
505
      </page>
506
      <page
507
            category="eu.etaxonomy.taxeditor.preferences.general"
508
            class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorGeneralPreferencePage"
509
            id="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
510
            name="%page.name.0">
511
      </page>
512
   </extension>
513
   <extension
514
         point="eu.etaxonomy.taxeditor.store.cdmViewer">
515
      <viewCommandMapping
516
            commandId="eu.etaxonomy.taxeditor.openReferencingObjectsView"
517
            selection="java.lang.Object"
518
            viewerName="%viewCommandMapping.viewerName.REFERENCING_OBJECTS_VIEW">
519
      </viewCommandMapping>
520
      <viewCommandMapping
521
            commandId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForTaxonNode"
522
            selection="eu.etaxonomy.cdm.model.taxon.TaxonNode"
523
            viewerName="%viewCommandMapping.viewerName.BULK_EDITOR">
524
      </viewCommandMapping>
525
      <viewCommandMapping
526
            commandId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity"
527
            selection="eu.etaxonomy.cdm.model.common.IdentifiableEntity"
528
            viewerName="%viewCommandMapping.viewerName.BULK_EDITOR">
529
      </viewCommandMapping>
530
   </extension>
531
   <extension
532
         id="eu.etaxonomy.taxeditor.bulkeditor.workbench.model"
533
         name="Bulk Editor Workbench Model"
534
         point="org.eclipse.e4.workbench.model">
535
      <fragment
536
            apply="always"
537
            uri="fragment.e4xmi">
538
      </fragment>
539
   </extension>
540
<!-- start set marker -->
541

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