Project

General

Profile

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

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