Project

General

Profile

Download (20.1 KB) Statistics
| Branch: | Tag: | Revision:
1 b98207ca Patrick Plitzner
<?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 9608f61c Patrick Plitzner
            locationURI="popup:bulkeditor.editor">
52 b98207ca Patrick Plitzner
         <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 12a605bc Patrick Plitzner
               name="taxeditor-bulkeditor.separator4"
73
               visible="true">
74 b98207ca Patrick Plitzner
         </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 9608f61c Patrick Plitzner
         </command>            
106 b98207ca Patrick Plitzner
         <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 12a605bc Patrick Plitzner
         <separator
117
               name="eu.etaxonomy.taxeditor.bulkeditor.separator1"
118
               visible="true">
119
         </separator>
120 b98207ca Patrick Plitzner
         <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 9608f61c Patrick Plitzner
         <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 b98207ca Patrick Plitzner
      </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 5ac8a8c8 Patrick Plitzner
               name="Bulk Editor Class"
211 b98207ca Patrick Plitzner
               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 5ac8a8c8 Patrick Plitzner
            name="%command.name.OPEN_REFERENCING_OBJECTS_VIEW">
254 b98207ca Patrick Plitzner
      </command>
255 cd6e99b3 Patrick Plitzner
      <command
256
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.defaultHandler.OpenBulkEditorForTaxonNodeHandler"
257
            id="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForTaxonNode"
258 d1dfc43d Patrick Plitzner
            name="%command.name.OPEN_BULK_EDITOR_FOR_TAXON_NODE">
259 cd6e99b3 Patrick Plitzner
      </command>
260 12a605bc Patrick Plitzner
      <command
261
            id="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity"
262
            name="Open bulk editor for identifiable entity">
263
         <commandParameter
264
               id="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity.uuid"
265
               name="Identifiable Entity UUID"
266
               optional="true"
267
               typeId="eu.etaxonomy.taxeditor.uuidParameterType">
268
         </commandParameter>
269
      </command>
270 1977e94a Patrick Plitzner
      <command
271
            defaultHandler="eu.etaxonomy.taxeditor.handler.defaultHandler.OpenReferencingObjectsView"
272
            id="eu.etaxonomy.taxeditor.openReferencingObjectsViewFromMenu"
273
            name="%command.name.OPEN_REFERENCING_OBJECTS_VIEW">
274
      </command>
275 b98207ca Patrick Plitzner
      <!--command
276
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.NewEntityHandler"
277
            id="eu.etaxonomy.taxeditor.bulkeditor.command.new"
278
            name="New Entity">
279
      </command-->
280
   </extension>
281
   <extension
282
         point="org.eclipse.ui.editors.markerAnnotationSpecification">
283
      <specification
284
            annotationType="merge_candidate_annotation"
285
            colorPreferenceKey="merge_candidate_annotation_color"
286
            colorPreferenceValue="220,220,255"
287
            highlightPreferenceValue="true"
288
            icon="icons/merge_candidate.gif"
289
            includeOnPreferencePage="true"
290
            label="%specification.label"
291
            overviewRulerPreferenceKey="merge_candidate_annotation_overview"
292
            overviewRulerPreferenceValue="true"
293
            presentationLayer="0"
294
            symbolicIcon="task"
295
            textPreferenceKey="merge_candidate_annotation_text"
296
            textPreferenceValue="false"
297
            textStylePreferenceValue="BOX"
298
            verticalRulerPreferenceKey="merge_candidate_annotation_vertical"
299
            verticalRulerPreferenceValue="true">
300
      </specification>
301
      <specification
302
            annotationType="merge_target_annotation"
303
            colorPreferenceKey="merge_target_annotation_color"
304
            colorPreferenceValue="220,220,255"
305
            highlightPreferenceValue="true"
306
            icon="icons/merge_target.gif"
307
            includeOnPreferencePage="true"
308
            label="%specification.label.0"
309
            overviewRulerPreferenceKey="merge_target_annotation_overview"
310
            overviewRulerPreferenceValue="true"
311
            presentationLayer="1"
312
            symbolicIcon="task"
313
            textPreferenceKey="merge_target_annotation_text"
314
            textPreferenceValue="false"
315
            textStylePreferenceValue="BOX"
316
            verticalRulerPreferenceKey="merge_target_annotation_vertical"
317
            verticalRulerPreferenceValue="true">
318
      </specification>      
319
   </extension>
320
   <extension
321
         point="org.eclipse.ui.editors.annotationTypes">
322
      <type
323
            name="merge_candidate_annotation">
324
      </type>
325
      <type
326
            name="merge_target_annotation">
327
      </type>
328
   </extension>
329
   <extension
330
         point="org.eclipse.core.expressions.definitions">
331
      <definition
332
            id="isMergeEnabled">
333
         <with
334
               variable="activeEditor">
335
            <test
336
                  property="taxeditor-bulkeditor.propertyTester.isMergingEnabled">
337
            </test>
338
         </with>
339
      </definition>
340
      <definition
341
            id="isConvertEnabled">
342
         <with
343
               variable="activeEditor">
344
            <test
345
                  property="taxeditor-bulkeditor.propertyTester.isConvertingEnabled">
346
            </test>
347
         </with>
348
      </definition>
349
      <definition
350
            id="isTaxonBulkEditorInput">
351
         <with
352
               variable="activeEditor">
353
            <test
354
                  property="taxeditor-bulkeditor.propertyTester.isTaxonEditor">
355
            </test>
356
         </with>
357
      </definition>
358
       <definition
359
            id="isTeam">
360
         <with
361
               variable="selection">
362
            <test
363
                  property="eu.etaxonomy.taxeditor.bulkeditor.command.isTeam">
364
            </test>
365
         </with>
366
      </definition>
367
      <definition
368
            id="isPerson">
369
         <with
370
               variable="selection">
371
            <test
372
                  property="eu.etaxonomy.taxeditor.bulkeditor.command.isPerson">
373
            </test>
374
         </with>
375
      </definition>
376 f3fb72fd Patrick Plitzner
      <definition
377
            id="isBulkEditorSupported">
378
         <with
379
               variable="selection">
380
            <test
381
                  property="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester.isBulkEditorSupported">
382
            </test>
383
         </with>
384
      </definition>
385
      <definition
386
            id="isGroupEditor">
387
         <with
388
               variable="activeEditor">
389
            <test
390
                  property="taxeditor-bulkeditor.propertyTester.isGroupEditor">
391
            </test>
392
         </with>
393
      </definition>
394 b98207ca Patrick Plitzner
   </extension>
395
   <extension
396
         point="org.eclipse.core.expressions.propertyTesters">
397
      <propertyTester
398
            class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"
399
            id="taxeditor-bulkeditor.PropertyTester"
400
            namespace="taxeditor-bulkeditor.propertyTester"
401
            properties="isMergingEnabled, isDerivedUnitEditor, isTaxonEditor, isGroupEditor, isConvertingEnabled"
402
            type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
403
      </propertyTester>
404
      <propertyTester
405
            class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
406
            id="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
407
            namespace="eu.etaxonomy.taxeditor.bulkeditor.command"
408
            properties="isTeam, isPerson"
409
            type="java.lang.Object">
410
      </propertyTester>
411 f3fb72fd Patrick Plitzner
      <propertyTester
412
            class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester"
413
            id="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester"
414
            namespace="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester"
415
            properties="isBulkEditorSupported"
416
            type="org.eclipse.jface.viewers.IStructuredSelection">
417
      </propertyTester>
418 b98207ca Patrick Plitzner
   </extension>
419
   <extension
420
         point="org.eclipse.ui.handlers">
421
      <handler
422
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut"
423
            commandId="org.eclipse.ui.edit.cut">
424
         <activeWhen>
425
            <with
426
                  variable="activeFocusControlId">
427
               <equals
428
                     value="bulkeditor.textControlId">
429
               </equals>
430
            </with>
431
         </activeWhen>
432
      </handler>
433
      <handler
434
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"
435
            commandId="org.eclipse.ui.edit.copy">
436
         <activeWhen>
437
            <with
438
                  variable="activeFocusControlId">
439
               <equals
440
                     value="bulkeditor.textControlId">
441
               </equals>
442
            </with>
443
         </activeWhen>
444
      </handler>
445
      <handler
446
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:paste"
447
            commandId="org.eclipse.ui.edit.paste">
448
         <activeWhen>
449
            <with
450
                  variable="activeFocusControlId">
451
               <equals
452
                     value="bulkeditor.textControlId">
453
               </equals>
454
            </with>
455
         </activeWhen>
456
      </handler>
457
      <handler
458
            class="eu.etaxonomy.taxeditor.bulkeditor.handler.DeleteHandler"
459
            commandId="eu.etaxonomy.taxeditor.bulkeditor.delete">
460
         <activeWhen>
461
            <with
462
                  variable="selection">
463
               <instanceof
464
                     value="eu.etaxonomy.taxeditor.model.LineSelection">
465
               </instanceof>
466
            </with>
467
         </activeWhen>
468
      </handler>
469
      <handler
470
            class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertTeam2PersonHandler"
471
            commandId="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person">
472
      </handler>
473
      <handler
474 197b7786 Katja Luther
            class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertPerson2TeamRemotingHandler"
475 b98207ca Patrick Plitzner
            commandId="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team">
476 197b7786 Katja Luther
             <activeWhen>
477
            <reference
478
                  definitionId="isRemoting">
479
            </reference>
480
         </activeWhen>
481 b98207ca Patrick Plitzner
      </handler>
482 f3fb72fd Patrick Plitzner
      <handler
483
            class="eu.etaxonomy.taxeditor.bulkeditor.handler.defaultHandler.OpenBulkEditorForIdentifiableEntity"
484
            commandId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity">
485
         <activeWhen>
486 9a512b18 Patrick Plitzner
            <and>
487
               <reference
488
                     definitionId="isBulkEditorSupported">
489
               </reference>
490
               <not>
491 86e788b5 Patrick Plitzner
                  <with
492
                        variable="activePartId">
493
                     <equals
494
                           value="bulkeditor.editor">
495
                     </equals>
496
                  </with>
497 9a512b18 Patrick Plitzner
               </not>
498
            </and>
499 f3fb72fd Patrick Plitzner
         </activeWhen>
500
      </handler>
501 b98207ca Patrick Plitzner
      
502
   </extension>
503
   <extension
504
         point="org.eclipse.ui.preferencePages">
505
      <page
506
            category="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
507
            class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorMarkerPreferencePage"
508
            id="eu.etaxonomy.taxeditor.preferences.bulkeditor.markerTypes"
509
            name="%page.name">
510
      </page>
511
      <page
512
            category="eu.etaxonomy.taxeditor.preferences.general"
513
            class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorGeneralPreferencePage"
514
            id="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
515
            name="%page.name.0">
516
      </page>
517
   </extension>
518
   <extension
519
         point="eu.etaxonomy.taxeditor.store.cdmViewer">
520
      <viewCommandMapping
521
            commandId="eu.etaxonomy.taxeditor.openReferencingObjectsView"
522
            selection="java.lang.Object"
523 d1dfc43d Patrick Plitzner
            viewerName="%viewCommandMapping.viewerName.REFERENCING_OBJECTS_VIEW">
524 b98207ca Patrick Plitzner
      </viewCommandMapping>
525 cd6e99b3 Patrick Plitzner
      <viewCommandMapping
526
            commandId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForTaxonNode"
527
            selection="eu.etaxonomy.cdm.model.taxon.TaxonNode"
528 d1dfc43d Patrick Plitzner
            viewerName="%viewCommandMapping.viewerName.BULK_EDITOR">
529 cd6e99b3 Patrick Plitzner
      </viewCommandMapping>
530 12a605bc Patrick Plitzner
      <viewCommandMapping
531
            commandId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity"
532
            selection="eu.etaxonomy.cdm.model.common.IdentifiableEntity"
533
            viewerName="%viewCommandMapping.viewerName.BULK_EDITOR">
534
      </viewCommandMapping>
535 b98207ca Patrick Plitzner
   </extension>
536 2039a37e Patrick Plitzner
   <extension
537 bb1d1762 Patrick Plitzner
         id="eu.etaxonomy.taxeditor.bulkeditor.workbench.model"
538
         name="Bulk Editor Workbench Model"
539 2039a37e Patrick Plitzner
         point="org.eclipse.e4.workbench.model">
540
      <fragment
541
            apply="always"
542
            uri="fragment.e4xmi">
543
      </fragment>
544
   </extension>
545 b98207ca Patrick Plitzner
<!-- start set marker -->
546
547
</plugin>