Project

General

Profile

Download (18.5 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="taxeditor-bulkeditor.separator4"
120
               visible="true">
121
         </separator>
122
         <command
123
               commandId="bulkeditor.commands.setmergetarget"
124
               label="%command.label.0"
125
               style="push">
126
            <visibleWhen>
127
               <reference
128
                     definitionId="isMergeEnabled">
129
               </reference>
130
            </visibleWhen>
131
         </command>
132
         
133
         <command
134
               commandId="bulkeditor.commands.setmergecandidate"
135
               label="%command.label.1"
136
               style="push">
137
            <visibleWhen>
138
               <reference
139
                     definitionId="isMergeEnabled">
140
               </reference>
141
            </visibleWhen>
142
         </command>
143
         <command
144
               commandId="bulkeditor.commands.removemergecandidate"
145
               label="%command.label.2"
146
               style="push">
147
            <visibleWhen>
148
               <reference
149
                     definitionId="isMergeEnabled">
150
               </reference>
151
            </visibleWhen>
152
         </command>
153
      <!--menuContribution
154
            locationURI="popup:org.eclipse.ui.popup.any"-->            
155
         <command
156
               commandId="bulkeditor.commands.mergegroup"
157
               label="%command.label.3"
158
               style="push">
159
            <visibleWhen>
160
               <reference
161
                     definitionId="isMergeEnabled">
162
               </reference>
163
            </visibleWhen>
164
         </command>
165
         <separator
166
               name="eu.etaxonomy.taxeditor.bulkeditor.separator1"
167
               visible="true">
168
         </separator>
169
         <command
170
               commandId="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person"
171
               label="%command.label.5"
172
               style="push">
173
           	   <visibleWhen
174
           	   		checkEnabled="true">
175
               		<and>
176
               		<reference
177
                     	definitionId="isConvertEnabled">
178
               		</reference>
179
               		<reference 
180
               				definitionId="isTeam">
181
               		</reference>
182
            		</and>
183
           		</visibleWhen>
184
         </command>
185
         <command
186
               commandId="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team"
187
               label="%command.label.6"
188
               style="push">
189
            	<visibleWhen 
190
            		checkEnabled="true">>
191
               		<and>
192
               		<reference
193
                     	definitionId="isConvertEnabled">
194
               		</reference>
195
               		<reference 
196
               			definitionId="isPerson">
197
               		</reference>
198
            		</and>
199
           		</visibleWhen>
200
         </command>
201
         <separator
202
               name="taxeditor-bulkeditor.separator2"
203
               visible="true">
204
         </separator>
205
         <menu
206
               label="%menu.label.2">
207
            <dynamic
208
                  class="eu.etaxonomy.taxeditor.bulkeditor.command.DynamicMarkerTypeEditingMenu"
209
                  id="eu.etaxonomy.taxeditor.bulkeditor.dynamicMarkerTypeEditingMenu">
210
            </dynamic>
211
            <visibleWhen
212
                  checkEnabled="true">
213
               <reference
214
                     definitionId="isCdmStoreConnected">
215
               </reference>
216
            </visibleWhen>
217
         </menu>
218
         <separator
219
               name="taxeditor-bulkeditor.separator3"
220
               visible="true">
221
         </separator>
222
         <command
223
               commandId="eu.etaxonomy.taxeditor.bulkeditor.delete"
224
               label="%command.label.4"
225
               style="push">
226
            <visibleWhen
227
                  checkEnabled="true">
228
               <reference
229
                     definitionId="isCdmStoreConnected">
230
               </reference>
231
            </visibleWhen>
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="%commandParameter.name"
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.bulkeditor.handler.NewEntityHandler"
296
            id="eu.etaxonomy.taxeditor.bulkeditor.command.new"
297
            name="New Entity">
298
      </command-->
299
   </extension>
300
   <extension
301
         point="org.eclipse.ui.editors.markerAnnotationSpecification">
302
      <specification
303
            annotationType="merge_candidate_annotation"
304
            colorPreferenceKey="merge_candidate_annotation_color"
305
            colorPreferenceValue="220,220,255"
306
            highlightPreferenceValue="true"
307
            icon="icons/merge_candidate.gif"
308
            includeOnPreferencePage="true"
309
            label="%specification.label"
310
            overviewRulerPreferenceKey="merge_candidate_annotation_overview"
311
            overviewRulerPreferenceValue="true"
312
            presentationLayer="0"
313
            symbolicIcon="task"
314
            textPreferenceKey="merge_candidate_annotation_text"
315
            textPreferenceValue="false"
316
            textStylePreferenceValue="BOX"
317
            verticalRulerPreferenceKey="merge_candidate_annotation_vertical"
318
            verticalRulerPreferenceValue="true">
319
      </specification>
320
      <specification
321
            annotationType="merge_target_annotation"
322
            colorPreferenceKey="merge_target_annotation_color"
323
            colorPreferenceValue="220,220,255"
324
            highlightPreferenceValue="true"
325
            icon="icons/merge_target.gif"
326
            includeOnPreferencePage="true"
327
            label="%specification.label.0"
328
            overviewRulerPreferenceKey="merge_target_annotation_overview"
329
            overviewRulerPreferenceValue="true"
330
            presentationLayer="1"
331
            symbolicIcon="task"
332
            textPreferenceKey="merge_target_annotation_text"
333
            textPreferenceValue="false"
334
            textStylePreferenceValue="BOX"
335
            verticalRulerPreferenceKey="merge_target_annotation_vertical"
336
            verticalRulerPreferenceValue="true">
337
      </specification>      
338
   </extension>
339
   <extension
340
         point="org.eclipse.ui.editors.annotationTypes">
341
      <type
342
            name="merge_candidate_annotation">
343
      </type>
344
      <type
345
            name="merge_target_annotation">
346
      </type>
347
   </extension>
348
   <extension
349
         point="org.eclipse.ui.views">
350
      <view
351
            class="eu.etaxonomy.taxeditor.bulkeditor.referencingobjects.ReferencingObjectsView"
352
            id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"
353
            name="%view.name"
354
            restorable="false">
355
      </view>
356
   </extension>   
357
   <extension
358
         point="org.eclipse.core.expressions.definitions">
359
      <definition
360
            id="isMergeEnabled">
361
         <with
362
               variable="activeEditor">
363
            <test
364
                  property="taxeditor-bulkeditor.propertyTester.isMergingEnabled">
365
            </test>
366
         </with>
367
      </definition>
368
      <definition
369
            id="isConvertEnabled">
370
         <with
371
               variable="activeEditor">
372
            <test
373
                  property="taxeditor-bulkeditor.propertyTester.isConvertingEnabled">
374
            </test>
375
         </with>
376
      </definition>
377
      <definition
378
            id="isTaxonBulkEditorInput">
379
         <with
380
               variable="activeEditor">
381
            <test
382
                  property="taxeditor-bulkeditor.propertyTester.isTaxonEditor">
383
            </test>
384
         </with>
385
      </definition>
386
       <definition
387
            id="isTeam">
388
         <with
389
               variable="selection">
390
            <test
391
                  property="eu.etaxonomy.taxeditor.bulkeditor.command.isTeam">
392
            </test>
393
         </with>
394
      </definition>
395
      <definition
396
            id="isPerson">
397
         <with
398
               variable="selection">
399
            <test
400
                  property="eu.etaxonomy.taxeditor.bulkeditor.command.isPerson">
401
            </test>
402
         </with>
403
      </definition>
404
   </extension>
405
   <extension
406
         point="org.eclipse.core.expressions.propertyTesters">
407
      <propertyTester
408
            class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"
409
            id="taxeditor-bulkeditor.PropertyTester"
410
            namespace="taxeditor-bulkeditor.propertyTester"
411
            properties="isMergingEnabled, isDerivedUnitEditor, isTaxonEditor, isGroupEditor, isConvertingEnabled"
412
            type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
413
      </propertyTester>
414
      <propertyTester
415
            class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
416
            id="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
417
            namespace="eu.etaxonomy.taxeditor.bulkeditor.command"
418
            properties="isTeam, isPerson"
419
            type="java.lang.Object">
420
      </propertyTester>
421
   </extension>
422
   <extension
423
         point="org.eclipse.ui.handlers">
424
      <handler
425
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut"
426
            commandId="org.eclipse.ui.edit.cut">
427
         <activeWhen>
428
            <with
429
                  variable="activeFocusControlId">
430
               <equals
431
                     value="bulkeditor.textControlId">
432
               </equals>
433
            </with>
434
         </activeWhen>
435
      </handler>
436
      <handler
437
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"
438
            commandId="org.eclipse.ui.edit.copy">
439
         <activeWhen>
440
            <with
441
                  variable="activeFocusControlId">
442
               <equals
443
                     value="bulkeditor.textControlId">
444
               </equals>
445
            </with>
446
         </activeWhen>
447
      </handler>
448
      <handler
449
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:paste"
450
            commandId="org.eclipse.ui.edit.paste">
451
         <activeWhen>
452
            <with
453
                  variable="activeFocusControlId">
454
               <equals
455
                     value="bulkeditor.textControlId">
456
               </equals>
457
            </with>
458
         </activeWhen>
459
      </handler>
460
      <handler
461
            class="eu.etaxonomy.taxeditor.bulkeditor.handler.DeleteHandler"
462
            commandId="eu.etaxonomy.taxeditor.bulkeditor.delete">
463
         <activeWhen>
464
            <with
465
                  variable="selection">
466
               <instanceof
467
                     value="eu.etaxonomy.taxeditor.model.LineSelection">
468
               </instanceof>
469
            </with>
470
         </activeWhen>
471
      </handler>
472
      <handler
473
            class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertTeam2PersonHandler"
474
            commandId="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person">
475
      </handler>
476
      <handler
477
            class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertPerson2TeamHandler"
478
            commandId="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team">
479
      </handler>
480
      
481
   </extension>
482
   <extension
483
         point="org.eclipse.ui.preferencePages">
484
      <page
485
            category="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
486
            class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorMarkerPreferencePage"
487
            id="eu.etaxonomy.taxeditor.preferences.bulkeditor.markerTypes"
488
            name="%page.name">
489
      </page>
490
      <page
491
            category="eu.etaxonomy.taxeditor.preferences.general"
492
            class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorGeneralPreferencePage"
493
            id="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
494
            name="%page.name.0">
495
      </page>
496
   </extension>
497
   <extension
498
         point="org.eclipse.ui.perspectiveExtensions">
499
      <perspectiveExtension
500
            targetID="*">
501
         <showInPart
502
               id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"></showInPart>
503
         <showInPart
504
               id="eu.etaxonomy.taxeditor.view.detail">
505
         </showInPart>
506
      </perspectiveExtension>
507
   </extension>
508
<!-- start set marker -->
509

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