Project

General

Profile

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

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