Project

General

Profile

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

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