Project

General

Profile

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

    
387
</plugin>
(3-3/4)