Project

General

Profile

Download (15.1 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="Bulk Editor">
21
      </editor>
22
      <editor
23
            class="eu.etaxonomy.taxeditor.nameditor.TaxonNameEditor"
24
            default="false"
25
            id="nameeditor.editor"
26
            name="Name Editor">
27
      </editor>
28
      <editor
29
            class="eu.etaxonomy.taxeditor.dataimport.DataImportEditor"
30
            default="false"
31
            id="eu.etaxonomy.taxeditor.dataimport.DataImportEditor"
32
            name="Data Import Editor">
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="Bulk Editor">
42
         </menu>
43
         <menu
44
               label="Search Specimen">
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="New">
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="Set Marker Type">
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
         </command>
149
         <command
150
               commandId="eu.etaxonomy.taxeditor.bulkeditor.command.derivedunit.addFieldObjectMedia"
151
               label="Add Field Object Media"
152
               style="push">
153
         </command>
154
      </menuContribution>
155
      <menuContribution
156
            allPopups="false"
157
            locationURI="popup:#DataImportEditorContext">
158
         <command
159
               commandId="eu.etaxonomy.taxeditor.bulkeditor.saveSpecimen"
160
               label="Save Specimen"
161
               style="push">
162
         </command>
163
      </menuContribution>
164
   </extension>
165
   <extension
166
         point="org.eclipse.ui.commands">
167
      <command
168
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.MergeGroupHandler"
169
            id="bulkeditor.commands.mergegroup"
170
            name="Merge Group">
171
      </command>
172
      <command
173
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeTargetHandler"
174
            id="bulkeditor.commands.setmergetarget"
175
            name="Set as Target for Group Merge">
176
      </command>
177
      <command
178
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.OpenBulkEditorHandler"
179
            id="taxeditor-bulkeditor.dynamicopenmenu"
180
            name="Dynamic Open Bulk Editor">
181
         <commandParameter
182
               id="taxeditor-bulkeditor.commandParameter.inputType"
183
               name="Bulk Editor Class"
184
               values="eu.etaxonomy.taxeditor.bulkeditor.input.BulkEditorInputTypeValues">
185
         </commandParameter>
186
      </command>
187
      <command
188
            defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.NewObjectHandler"
189
            id="taxeditor-bulkeditor.dynamicnewobjectcommand"
190
            name="Dynamic New Object">
191
      </command>
192
      <command
193
            defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.DeleteObjectHandler"
194
            id="taxeditor-bulkeditor.dynamicdeleteobjectcommand"
195
            name="Dynamic Delete Object">
196
      </command>
197
      <command
198
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeCandidateHandler"
199
            id="bulkeditor.commands.setmergecandidate"
200
            name="Set as Candidate for Group Merge">
201
      </command>
202
      <command
203
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.RemoveMergeCandidateHandler"
204
            id="bulkeditor.commands.removemergecandidate"
205
            name="Remove as Candidate for Group Merge">
206
      </command>
207
      <command
208
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMarkerFlagHandler"
209
            id="taxeditor-bulkeditor.command.setMarkerFlag"
210
            name="Set Marker Flag">
211
      </command>
212
      <command
213
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.derivedunit.handler.AddDerivedUnitMediaHandler"
214
            id="eu.etaxonomy.taxeditor.bulkeditor.command.derivedunit.addDerivedUnitMedia"
215
            name="Add Derived Unit Media">
216
      </command>
217
      <command
218
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.derivedunit.handler.AddFieldObjectMediaHandler"
219
            id="eu.etaxonomy.taxeditor.bulkeditor.command.derivedunit.addFieldObjectMedia"
220
            name="Add Field Object Media">
221
      </command>
222
      <!--command
223
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.NewEntityHandler"
224
            id="eu.etaxonomy.taxeditor.bulkeditor.command.new"
225
            name="New Entity">
226
      </command-->
227
   </extension>
228
   <extension
229
         point="org.eclipse.ui.editors.markerAnnotationSpecification">
230
      <specification
231
            annotationType="merge_candidate_annotation"
232
            colorPreferenceKey="merge_candidate_annotation_color"
233
            colorPreferenceValue="220,220,255"
234
            highlightPreferenceValue="true"
235
            icon="icons/merge_candidate.gif"
236
            includeOnPreferencePage="true"
237
            label="Merge Candidate Annotation"
238
            overviewRulerPreferenceKey="merge_candidate_annotation_overview"
239
            overviewRulerPreferenceValue="true"
240
            presentationLayer="0"
241
            symbolicIcon="task"
242
            textPreferenceKey="merge_candidate_annotation_text"
243
            textPreferenceValue="false"
244
            textStylePreferenceValue="BOX"
245
            verticalRulerPreferenceKey="merge_candidate_annotation_vertical"
246
            verticalRulerPreferenceValue="true">
247
      </specification>
248
      <specification
249
            annotationType="merge_target_annotation"
250
            colorPreferenceKey="merge_target_annotation_color"
251
            colorPreferenceValue="220,220,255"
252
            highlightPreferenceValue="true"
253
            icon="icons/merge_target.gif"
254
            includeOnPreferencePage="true"
255
            label="Merge Target Annotation"
256
            overviewRulerPreferenceKey="merge_target_annotation_overview"
257
            overviewRulerPreferenceValue="true"
258
            presentationLayer="1"
259
            symbolicIcon="task"
260
            textPreferenceKey="merge_target_annotation_text"
261
            textPreferenceValue="false"
262
            textStylePreferenceValue="BOX"
263
            verticalRulerPreferenceKey="merge_target_annotation_vertical"
264
            verticalRulerPreferenceValue="true">
265
      </specification>      
266
   </extension>
267
   <extension
268
         point="org.eclipse.ui.editors.annotationTypes">
269
      <type
270
            name="merge_candidate_annotation">
271
      </type>
272
      <type
273
            name="merge_target_annotation">
274
      </type>
275
   </extension>
276
   <extension
277
         point="org.eclipse.ui.views">
278
      <view
279
            class="eu.etaxonomy.taxeditor.bulkeditor.referencingobjects.ReferencingObjectsView"
280
            id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"
281
            name="Referencing Objects"
282
            restorable="false">
283
      </view>
284
   </extension>   
285
   <extension
286
         point="org.eclipse.core.expressions.definitions">
287
      <definition
288
            id="isMergeEnabled">
289
         <with
290
               variable="activeEditor">
291
            <test
292
                  property="taxeditor-bulkeditor.propertyTester.isMergingEnabled">
293
            </test>
294
         </with>
295
      </definition>
296
   </extension>
297
   <extension
298
         point="org.eclipse.core.expressions.propertyTesters">
299
      <propertyTester
300
            class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"
301
            id="taxeditor-bulkeditor.PropertyTester"
302
            namespace="taxeditor-bulkeditor.propertyTester"
303
            properties="isMergingEnabled"
304
            type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
305
      </propertyTester>
306
   </extension>
307
   <extension
308
         point="org.eclipse.ui.handlers">
309
      <handler
310
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut"
311
            commandId="org.eclipse.ui.edit.cut">
312
         <activeWhen>
313
            <with
314
                  variable="activeFocusControlId">
315
               <equals
316
                     value="bulkeditor.textControlId">
317
               </equals>
318
            </with>
319
         </activeWhen>
320
      </handler>
321
      <handler
322
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"
323
            commandId="org.eclipse.ui.edit.copy">
324
         <activeWhen>
325
            <with
326
                  variable="activeFocusControlId">
327
               <equals
328
                     value="bulkeditor.textControlId">
329
               </equals>
330
            </with>
331
         </activeWhen>
332
      </handler>
333
      <handler
334
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:paste"
335
            commandId="org.eclipse.ui.edit.paste">
336
         <activeWhen>
337
            <with
338
                  variable="activeFocusControlId">
339
               <equals
340
                     value="bulkeditor.textControlId">
341
               </equals>
342
            </with>
343
         </activeWhen>
344
      </handler>
345
      <handler
346
            class="eu.etaxonomy.taxeditor.bulkeditor.handler.DeleteHandler"
347
            commandId="org.eclipse.ui.edit.delete">
348
         <activeWhen>
349
            <with
350
                  variable="selection">
351
               <instanceof
352
                     value="eu.etaxonomy.taxeditor.model.LineSelection">
353
               </instanceof>
354
            </with>
355
         </activeWhen>
356
      </handler>
357
   </extension>
358
   <extension
359
         point="org.eclipse.ui.preferencePages">
360
      <page
361
            category="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
362
            class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorMarkerPreferencePage"
363
            id="eu.etaxonomy.taxeditor.preferences.bulkeditor.markerTypes"
364
            name="Marker Types">
365
      </page>
366
      <page
367
            category="eu.etaxonomy.taxeditor.preferences.general"
368
            class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorGeneralPreferencePage"
369
            id="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
370
            name="Bulk Editor">
371
      </page>
372
   </extension>
373
   <extension
374
         point="org.eclipse.core.expressions.propertyTesters">
375
      <propertyTester
376
            class="eu.etaxonomy.taxeditor.bulkeditor.PropertyTester"
377
            id="eu.etaxonomy.taxeditor.bulkeditor.propertyTester"
378
            namespace="eu.etaxonomy.taxeditor.bulkeditor.propertyTester"
379
            properties="isDerivedUnitEditor"
380
            type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
381
      </propertyTester>
382
   </extension>
383
   <extension
384
         point="org.eclipse.ui.perspectiveExtensions">
385
      <perspectiveExtension
386
            targetID="*">
387
         <showInPart
388
               id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"></showInPart>
389
         <showInPart
390
               id="eu.etaxonomy.taxeditor.view.detail">
391
         </showInPart>
392
      </perspectiveExtension>
393
   </extension>
394
<!-- start set marker -->
395

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