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.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
      </menuContribution>
225
      <menuContribution
226
            allPopups="false"
227
            locationURI="menu:eu.etaxonomy.taxeditor.menu.showView?after=org.eclipse.ui.views.showView.supplemental">
228
         <command
229
               commandId="eu.etaxonomy.taxeditor.openReferencingObjectsView"
230
               label="%command.label.OPEN_REFERENCING_OBJECTS_VIEW"
231
               style="push">
232
         </command>
233
      </menuContribution>
234
   </extension>
235
   <extension
236
         point="org.eclipse.ui.commands">
237
      <command
238
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.MergeGroupHandler"
239
            id="bulkeditor.commands.mergegroup"
240
            name="%command.name">
241
      </command>
242
      <command
243
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeTargetHandler"
244
            id="bulkeditor.commands.setmergetarget"
245
            name="%command.name.0">
246
      </command>
247
      <command
248
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.OpenBulkEditorHandler"
249
            id="taxeditor-bulkeditor.dynamicopenmenu"
250
            name="%command.name.1">
251
         <commandParameter
252
               id="taxeditor-bulkeditor.commandParameter.inputType"
253
               name="Bulk Editor Class"
254
               values="eu.etaxonomy.taxeditor.bulkeditor.input.BulkEditorInputTypeValues">
255
         </commandParameter>
256
      </command>
257
      <command
258
            defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.NewObjectHandler"
259
            id="taxeditor-bulkeditor.dynamicnewobjectcommand"
260
            name="%command.name.2">
261
      </command>
262
      <command
263
            defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.DeleteObjectHandler"
264
            id="taxeditor-bulkeditor.dynamicdeleteobjectcommand"
265
            name="%command.name.3">
266
      </command>
267
      <command
268
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeCandidateHandler"
269
            id="bulkeditor.commands.setmergecandidate"
270
            name="%command.name.4">
271
      </command>
272
      <command
273
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.RemoveMergeCandidateHandler"
274
            id="bulkeditor.commands.removemergecandidate"
275
            name="%command.name.5">
276
      </command>
277
      <command
278
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMarkerFlagHandler"
279
            id="taxeditor-bulkeditor.command.setMarkerFlag"
280
            name="%command.name.6">
281
      </command>
282
      <command
283
            id="eu.etaxonomy.taxeditor.bulkeditor.delete"
284
            name="%command.name.7">
285
      </command>
286
      <command
287
            id="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person"
288
            name="%command.name.8">
289
      </command>
290
      <command
291
            id="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team"
292
            name="%command.name.10">
293
      </command>
294
      <command
295
            defaultHandler="eu.etaxonomy.taxeditor.handler.defaultHandler.OpenReferencingObjectsView"
296
            id="eu.etaxonomy.taxeditor.openReferencingObjectsView"
297
            name="%command.name.OPEN_REFERENCING_OBJECTS_VIEW">
298
      </command>
299
      <!--command
300
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.NewEntityHandler"
301
            id="eu.etaxonomy.taxeditor.bulkeditor.command.new"
302
            name="New Entity">
303
      </command-->
304
   </extension>
305
   <extension
306
         point="org.eclipse.ui.editors.markerAnnotationSpecification">
307
      <specification
308
            annotationType="merge_candidate_annotation"
309
            colorPreferenceKey="merge_candidate_annotation_color"
310
            colorPreferenceValue="220,220,255"
311
            highlightPreferenceValue="true"
312
            icon="icons/merge_candidate.gif"
313
            includeOnPreferencePage="true"
314
            label="%specification.label"
315
            overviewRulerPreferenceKey="merge_candidate_annotation_overview"
316
            overviewRulerPreferenceValue="true"
317
            presentationLayer="0"
318
            symbolicIcon="task"
319
            textPreferenceKey="merge_candidate_annotation_text"
320
            textPreferenceValue="false"
321
            textStylePreferenceValue="BOX"
322
            verticalRulerPreferenceKey="merge_candidate_annotation_vertical"
323
            verticalRulerPreferenceValue="true">
324
      </specification>
325
      <specification
326
            annotationType="merge_target_annotation"
327
            colorPreferenceKey="merge_target_annotation_color"
328
            colorPreferenceValue="220,220,255"
329
            highlightPreferenceValue="true"
330
            icon="icons/merge_target.gif"
331
            includeOnPreferencePage="true"
332
            label="%specification.label.0"
333
            overviewRulerPreferenceKey="merge_target_annotation_overview"
334
            overviewRulerPreferenceValue="true"
335
            presentationLayer="1"
336
            symbolicIcon="task"
337
            textPreferenceKey="merge_target_annotation_text"
338
            textPreferenceValue="false"
339
            textStylePreferenceValue="BOX"
340
            verticalRulerPreferenceKey="merge_target_annotation_vertical"
341
            verticalRulerPreferenceValue="true">
342
      </specification>      
343
   </extension>
344
   <extension
345
         point="org.eclipse.ui.editors.annotationTypes">
346
      <type
347
            name="merge_candidate_annotation">
348
      </type>
349
      <type
350
            name="merge_target_annotation">
351
      </type>
352
   </extension>
353
   <extension
354
         point="org.eclipse.ui.views">
355
      <view
356
            class="eu.etaxonomy.taxeditor.bulkeditor.referencingobjects.ReferencingObjectsView"
357
            id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"
358
            name="%view.name"
359
            restorable="false">
360
      </view>
361
   </extension>   
362
   <extension
363
         point="org.eclipse.core.expressions.definitions">
364
      <definition
365
            id="isMergeEnabled">
366
         <with
367
               variable="activeEditor">
368
            <test
369
                  property="taxeditor-bulkeditor.propertyTester.isMergingEnabled">
370
            </test>
371
         </with>
372
      </definition>
373
      <definition
374
            id="isConvertEnabled">
375
         <with
376
               variable="activeEditor">
377
            <test
378
                  property="taxeditor-bulkeditor.propertyTester.isConvertingEnabled">
379
            </test>
380
         </with>
381
      </definition>
382
      <definition
383
            id="isTaxonBulkEditorInput">
384
         <with
385
               variable="activeEditor">
386
            <test
387
                  property="taxeditor-bulkeditor.propertyTester.isTaxonEditor">
388
            </test>
389
         </with>
390
      </definition>
391
       <definition
392
            id="isTeam">
393
         <with
394
               variable="selection">
395
            <test
396
                  property="eu.etaxonomy.taxeditor.bulkeditor.command.isTeam">
397
            </test>
398
         </with>
399
      </definition>
400
      <definition
401
            id="isPerson">
402
         <with
403
               variable="selection">
404
            <test
405
                  property="eu.etaxonomy.taxeditor.bulkeditor.command.isPerson">
406
            </test>
407
         </with>
408
      </definition>
409
   </extension>
410
   <extension
411
         point="org.eclipse.core.expressions.propertyTesters">
412
      <propertyTester
413
            class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"
414
            id="taxeditor-bulkeditor.PropertyTester"
415
            namespace="taxeditor-bulkeditor.propertyTester"
416
            properties="isMergingEnabled, isDerivedUnitEditor, isTaxonEditor, isGroupEditor, isConvertingEnabled"
417
            type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
418
      </propertyTester>
419
      <propertyTester
420
            class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
421
            id="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
422
            namespace="eu.etaxonomy.taxeditor.bulkeditor.command"
423
            properties="isTeam, isPerson"
424
            type="java.lang.Object">
425
      </propertyTester>
426
   </extension>
427
   <extension
428
         point="org.eclipse.ui.handlers">
429
      <handler
430
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut"
431
            commandId="org.eclipse.ui.edit.cut">
432
         <activeWhen>
433
            <with
434
                  variable="activeFocusControlId">
435
               <equals
436
                     value="bulkeditor.textControlId">
437
               </equals>
438
            </with>
439
         </activeWhen>
440
      </handler>
441
      <handler
442
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"
443
            commandId="org.eclipse.ui.edit.copy">
444
         <activeWhen>
445
            <with
446
                  variable="activeFocusControlId">
447
               <equals
448
                     value="bulkeditor.textControlId">
449
               </equals>
450
            </with>
451
         </activeWhen>
452
      </handler>
453
      <handler
454
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:paste"
455
            commandId="org.eclipse.ui.edit.paste">
456
         <activeWhen>
457
            <with
458
                  variable="activeFocusControlId">
459
               <equals
460
                     value="bulkeditor.textControlId">
461
               </equals>
462
            </with>
463
         </activeWhen>
464
      </handler>
465
      <handler
466
            class="eu.etaxonomy.taxeditor.bulkeditor.handler.DeleteHandler"
467
            commandId="eu.etaxonomy.taxeditor.bulkeditor.delete">
468
         <activeWhen>
469
            <with
470
                  variable="selection">
471
               <instanceof
472
                     value="eu.etaxonomy.taxeditor.model.LineSelection">
473
               </instanceof>
474
            </with>
475
         </activeWhen>
476
      </handler>
477
      <handler
478
            class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertTeam2PersonHandler"
479
            commandId="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person">
480
      </handler>
481
      <handler
482
            class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertPerson2TeamHandler"
483
            commandId="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team">
484
      </handler>
485
      
486
   </extension>
487
   <extension
488
         point="org.eclipse.ui.preferencePages">
489
      <page
490
            category="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
491
            class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorMarkerPreferencePage"
492
            id="eu.etaxonomy.taxeditor.preferences.bulkeditor.markerTypes"
493
            name="%page.name">
494
      </page>
495
      <page
496
            category="eu.etaxonomy.taxeditor.preferences.general"
497
            class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorGeneralPreferencePage"
498
            id="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
499
            name="%page.name.0">
500
      </page>
501
   </extension>
502
   <extension
503
         point="eu.etaxonomy.taxeditor.store.cdmViewer">
504
      <viewCommandMapping
505
            commandId="eu.etaxonomy.taxeditor.openReferencingObjectsView"
506
            selection="java.lang.Object"
507
            viewerName="Referencing Objects View">
508
      </viewCommandMapping>
509
   </extension>
510
<!-- start set marker -->
511

    
512
</plugin>
(5-5/6)