Project

General

Profile

Download (15.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
         </menu>
43
         <menu
44
               label="%menu.label.0">
45
         </menu>
46
      </menuContribution>
47
      <menuContribution
48
            locationURI="menu:bulkeditor.menus.openmenu">
49
         <dynamic
50
               class="eu.etaxonomy.taxeditor.bulkeditor.command.OpenBulkEditorContributionItem"
51
               id="taxeditor-bulkeditor.dynamicopenmenu">
52
         </dynamic>
53
         <!--command
54
               commandId="taxeditor-nameeditor.commands.open"
55
               label="Open Name Editor"
56
               style="push">
57
            <visibleWhen
58
                  checkEnabled="false">
59
               <reference
60
                     definitionId="pigsFly">
61
               </reference>
62
            </visibleWhen>
63
         </command-->
64
      </menuContribution>
65
      <menuContribution
66
            locationURI="popup:#BulkEditorContext">
67
         <menu
68
               label="%menu.label.1">
69
            <dynamic
70
                  class="eu.etaxonomy.taxeditor.bulkeditor.command.DynamicNewObjectMenu"
71
                  id="eu.etaxonomy.taxeditor.bulkeditor.dynamicNewMenu">
72
            </dynamic>
73
         </menu>
74
         <separator
75
               name="taxeditor-bulkeditor.separator1"
76
               visible="true">
77
         </separator>
78
         <command
79
               commandId="bulkeditor.commands.setmergetarget"
80
               label="Set Current Line as Target for Duplicate Removal"
81
               style="push">
82
            <visibleWhen>
83
               <reference
84
                     definitionId="isMergeEnabled">
85
               </reference>
86
            </visibleWhen>
87
         </command>
88
         <command
89
               commandId="bulkeditor.commands.setmergecandidate"
90
               label="Set as Candidate(s) for Duplicate Removal"
91
               style="push">
92
            <visibleWhen>
93
               <reference
94
                     definitionId="isMergeEnabled">
95
               </reference>
96
            </visibleWhen>
97
         </command>
98
         <command
99
               commandId="bulkeditor.commands.removemergecandidate"
100
               label="Remove as Candidate(s) for Duplicate Removal"
101
               style="push">
102
            <visibleWhen>
103
               <reference
104
                     definitionId="isMergeEnabled">
105
               </reference>
106
            </visibleWhen>
107
         </command>
108
      <!--menuContribution
109
            locationURI="popup:org.eclipse.ui.popup.any"-->            
110
         <command
111
               commandId="bulkeditor.commands.mergegroup"
112
               label="De-Duplicate Group"
113
               style="push">
114
            <visibleWhen>
115
               <reference
116
                     definitionId="isMergeEnabled">
117
               </reference>
118
            </visibleWhen>
119
         </command>
120
         <separator
121
               name="taxeditor-bulkeditor.separator2"
122
               visible="true">
123
         </separator>
124
         <menu
125
               label="%menu.label.2">
126
            <dynamic
127
                  class="eu.etaxonomy.taxeditor.bulkeditor.command.DynamicMarkerTypeEditingMenu"
128
                  id="eu.etaxonomy.taxeditor.bulkeditor.dynamicMarkerTypeEditingMenu">
129
            </dynamic>
130
         </menu>
131
         <separator
132
               name="taxeditor-bulkeditor.separator3"
133
               visible="true">
134
         </separator>
135
         <command
136
               commandId="org.eclipse.ui.edit.delete"
137
               label="Delete"
138
               style="push">
139
         </command>
140
      </menuContribution>
141
      <menuContribution
142
            allPopups="false"
143
            locationURI="popup:eu.etaxonomy.taxeditor.editor.view.media">
144
         <command
145
               commandId="eu.etaxonomy.taxeditor.bulkeditor.command.derivedunit.addDerivedUnitMedia"
146
               label="Add Derived Unit Media"
147
               style="push">
148
            <visibleWhen>
149
               <not>
150
                  <reference
151
                        definitionId="isTaxonEditor">
152
                  </reference>
153
               </not>
154
            </visibleWhen>
155
         </command>
156
         <command
157
               commandId="eu.etaxonomy.taxeditor.bulkeditor.command.derivedunit.addFieldObjectMedia"
158
               label="Add Field Object Media"
159
               style="push">
160
            <visibleWhen>
161
               <not>
162
                  <reference
163
                        definitionId="isTaxonEditor">
164
                  </reference>
165
               </not>
166
            </visibleWhen>
167
         </command>
168
      </menuContribution>
169
      <menuContribution
170
            allPopups="false"
171
            locationURI="popup:#DataImportEditorContext">
172
         <command
173
               commandId="eu.etaxonomy.taxeditor.bulkeditor.saveSpecimen"
174
               label="Save Specimen"
175
               style="push">
176
         </command>
177
      </menuContribution>
178
   </extension>
179
   <extension
180
         point="org.eclipse.ui.commands">
181
      <command
182
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.MergeGroupHandler"
183
            id="bulkeditor.commands.mergegroup"
184
            name="Merge Group">
185
      </command>
186
      <command
187
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeTargetHandler"
188
            id="bulkeditor.commands.setmergetarget"
189
            name="Set as Target for Group Merge">
190
      </command>
191
      <command
192
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.OpenBulkEditorHandler"
193
            id="taxeditor-bulkeditor.dynamicopenmenu"
194
            name="Dynamic Open Bulk Editor">
195
         <commandParameter
196
               id="taxeditor-bulkeditor.commandParameter.inputType"
197
               name="Bulk Editor Class"
198
               values="eu.etaxonomy.taxeditor.bulkeditor.input.BulkEditorInputTypeValues">
199
         </commandParameter>
200
      </command>
201
      <command
202
            defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.NewObjectHandler"
203
            id="taxeditor-bulkeditor.dynamicnewobjectcommand"
204
            name="Dynamic New Object">
205
      </command>
206
      <command
207
            defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.DeleteObjectHandler"
208
            id="taxeditor-bulkeditor.dynamicdeleteobjectcommand"
209
            name="Dynamic Delete Object">
210
      </command>
211
      <command
212
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeCandidateHandler"
213
            id="bulkeditor.commands.setmergecandidate"
214
            name="Set as Candidate for Group Merge">
215
      </command>
216
      <command
217
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.RemoveMergeCandidateHandler"
218
            id="bulkeditor.commands.removemergecandidate"
219
            name="Remove as Candidate for Group Merge">
220
      </command>
221
      <command
222
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMarkerFlagHandler"
223
            id="taxeditor-bulkeditor.command.setMarkerFlag"
224
            name="Set Marker Flag">
225
      </command>
226
      <command
227
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.derivedunit.handler.AddDerivedUnitMediaHandler"
228
            id="eu.etaxonomy.taxeditor.bulkeditor.command.derivedunit.addDerivedUnitMedia"
229
            name="Add Derived Unit Media">
230
      </command>
231
      <command
232
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.derivedunit.handler.AddFieldObjectMediaHandler"
233
            id="eu.etaxonomy.taxeditor.bulkeditor.command.derivedunit.addFieldObjectMedia"
234
            name="Add Field Object Media">
235
      </command>
236
      <!--command
237
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.NewEntityHandler"
238
            id="eu.etaxonomy.taxeditor.bulkeditor.command.new"
239
            name="New Entity">
240
      </command-->
241
   </extension>
242
   <extension
243
         point="org.eclipse.ui.editors.markerAnnotationSpecification">
244
      <specification
245
            annotationType="merge_candidate_annotation"
246
            colorPreferenceKey="merge_candidate_annotation_color"
247
            colorPreferenceValue="220,220,255"
248
            highlightPreferenceValue="true"
249
            icon="icons/merge_candidate.gif"
250
            includeOnPreferencePage="true"
251
            label="Merge Candidate Annotation"
252
            overviewRulerPreferenceKey="merge_candidate_annotation_overview"
253
            overviewRulerPreferenceValue="true"
254
            presentationLayer="0"
255
            symbolicIcon="task"
256
            textPreferenceKey="merge_candidate_annotation_text"
257
            textPreferenceValue="false"
258
            textStylePreferenceValue="BOX"
259
            verticalRulerPreferenceKey="merge_candidate_annotation_vertical"
260
            verticalRulerPreferenceValue="true">
261
      </specification>
262
      <specification
263
            annotationType="merge_target_annotation"
264
            colorPreferenceKey="merge_target_annotation_color"
265
            colorPreferenceValue="220,220,255"
266
            highlightPreferenceValue="true"
267
            icon="icons/merge_target.gif"
268
            includeOnPreferencePage="true"
269
            label="Merge Target Annotation"
270
            overviewRulerPreferenceKey="merge_target_annotation_overview"
271
            overviewRulerPreferenceValue="true"
272
            presentationLayer="1"
273
            symbolicIcon="task"
274
            textPreferenceKey="merge_target_annotation_text"
275
            textPreferenceValue="false"
276
            textStylePreferenceValue="BOX"
277
            verticalRulerPreferenceKey="merge_target_annotation_vertical"
278
            verticalRulerPreferenceValue="true">
279
      </specification>      
280
   </extension>
281
   <extension
282
         point="org.eclipse.ui.editors.annotationTypes">
283
      <type
284
            name="merge_candidate_annotation">
285
      </type>
286
      <type
287
            name="merge_target_annotation">
288
      </type>
289
   </extension>
290
   <extension
291
         point="org.eclipse.ui.views">
292
      <view
293
            class="eu.etaxonomy.taxeditor.bulkeditor.referencingobjects.ReferencingObjectsView"
294
            id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"
295
            name="%view.name"
296
            restorable="false">
297
      </view>
298
   </extension>   
299
   <extension
300
         point="org.eclipse.core.expressions.definitions">
301
      <definition
302
            id="isMergeEnabled">
303
         <with
304
               variable="activeEditor">
305
            <test
306
                  property="taxeditor-bulkeditor.propertyTester.isMergingEnabled">
307
            </test>
308
         </with>
309
      </definition>
310
   </extension>
311
   <extension
312
         point="org.eclipse.core.expressions.propertyTesters">
313
      <propertyTester
314
            class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"
315
            id="taxeditor-bulkeditor.PropertyTester"
316
            namespace="taxeditor-bulkeditor.propertyTester"
317
            properties="isMergingEnabled"
318
            type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
319
      </propertyTester>
320
   </extension>
321
   <extension
322
         point="org.eclipse.ui.handlers">
323
      <handler
324
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut"
325
            commandId="org.eclipse.ui.edit.cut">
326
         <activeWhen>
327
            <with
328
                  variable="activeFocusControlId">
329
               <equals
330
                     value="bulkeditor.textControlId">
331
               </equals>
332
            </with>
333
         </activeWhen>
334
      </handler>
335
      <handler
336
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"
337
            commandId="org.eclipse.ui.edit.copy">
338
         <activeWhen>
339
            <with
340
                  variable="activeFocusControlId">
341
               <equals
342
                     value="bulkeditor.textControlId">
343
               </equals>
344
            </with>
345
         </activeWhen>
346
      </handler>
347
      <handler
348
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:paste"
349
            commandId="org.eclipse.ui.edit.paste">
350
         <activeWhen>
351
            <with
352
                  variable="activeFocusControlId">
353
               <equals
354
                     value="bulkeditor.textControlId">
355
               </equals>
356
            </with>
357
         </activeWhen>
358
      </handler>
359
      <handler
360
            class="eu.etaxonomy.taxeditor.bulkeditor.handler.DeleteHandler"
361
            commandId="org.eclipse.ui.edit.delete">
362
         <activeWhen>
363
            <with
364
                  variable="selection">
365
               <instanceof
366
                     value="eu.etaxonomy.taxeditor.model.LineSelection">
367
               </instanceof>
368
            </with>
369
         </activeWhen>
370
      </handler>
371
   </extension>
372
   <extension
373
         point="org.eclipse.ui.preferencePages">
374
      <page
375
            category="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
376
            class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorMarkerPreferencePage"
377
            id="eu.etaxonomy.taxeditor.preferences.bulkeditor.markerTypes"
378
            name="%page.name">
379
      </page>
380
      <page
381
            category="eu.etaxonomy.taxeditor.preferences.general"
382
            class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorGeneralPreferencePage"
383
            id="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
384
            name="%page.name.0">
385
      </page>
386
   </extension>
387
   <extension
388
         point="org.eclipse.core.expressions.propertyTesters">
389
      <propertyTester
390
            class="eu.etaxonomy.taxeditor.bulkeditor.PropertyTester"
391
            id="eu.etaxonomy.taxeditor.bulkeditor.propertyTester"
392
            namespace="eu.etaxonomy.taxeditor.bulkeditor.propertyTester"
393
            properties="isDerivedUnitEditor"
394
            type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
395
      </propertyTester>
396
   </extension>
397
   <extension
398
         point="org.eclipse.ui.perspectiveExtensions">
399
      <perspectiveExtension
400
            targetID="*">
401
         <showInPart
402
               id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"></showInPart>
403
         <showInPart
404
               id="eu.etaxonomy.taxeditor.view.detail">
405
         </showInPart>
406
      </perspectiveExtension>
407
   </extension>
408
<!-- start set marker -->
409

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