Project

General

Profile

Download (13.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
   </extension>
142
   <extension
143
         point="org.eclipse.ui.commands">
144
      <command
145
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.MergeGroupHandler"
146
            id="bulkeditor.commands.mergegroup"
147
            name="Merge Group">
148
      </command>
149
      <command
150
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeTargetHandler"
151
            id="bulkeditor.commands.setmergetarget"
152
            name="Set as Target for Group Merge">
153
      </command>
154
      <command
155
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.OpenBulkEditorHandler"
156
            id="taxeditor-bulkeditor.dynamicopenmenu"
157
            name="Dynamic Open Bulk Editor">
158
         <commandParameter
159
               id="taxeditor-bulkeditor.commandParameter.inputType"
160
               name="Bulk Editor Class"
161
               values="eu.etaxonomy.taxeditor.bulkeditor.input.BulkEditorInputTypeValues">
162
         </commandParameter>
163
      </command>
164
      <command
165
            defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.NewObjectHandler"
166
            id="taxeditor-bulkeditor.dynamicnewobjectcommand"
167
            name="Dynamic New Object">
168
      </command>
169
      <command
170
            defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.DeleteObjectHandler"
171
            id="taxeditor-bulkeditor.dynamicdeleteobjectcommand"
172
            name="Dynamic Delete Object">
173
      </command>
174
      <command
175
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeCandidateHandler"
176
            id="bulkeditor.commands.setmergecandidate"
177
            name="Set as Candidate for Group Merge">
178
      </command>
179
      <command
180
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.RemoveMergeCandidateHandler"
181
            id="bulkeditor.commands.removemergecandidate"
182
            name="Remove as Candidate for Group Merge">
183
      </command>
184
      <command
185
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMarkerFlagHandler"
186
            id="taxeditor-bulkeditor.command.setMarkerFlag"
187
            name="Set Marker Flag">
188
      </command>
189
      <!--command
190
            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.NewEntityHandler"
191
            id="eu.etaxonomy.taxeditor.bulkeditor.command.new"
192
            name="New Entity">
193
      </command-->
194
   </extension>
195
   <extension
196
         point="org.eclipse.ui.editors.markerAnnotationSpecification">
197
      <specification
198
            annotationType="merge_candidate_annotation"
199
            colorPreferenceKey="merge_candidate_annotation_color"
200
            colorPreferenceValue="220,220,255"
201
            highlightPreferenceValue="true"
202
            icon="icons/merge_candidate.gif"
203
            includeOnPreferencePage="true"
204
            label="Merge Candidate Annotation"
205
            overviewRulerPreferenceKey="merge_candidate_annotation_overview"
206
            overviewRulerPreferenceValue="true"
207
            presentationLayer="0"
208
            symbolicIcon="task"
209
            textPreferenceKey="merge_candidate_annotation_text"
210
            textPreferenceValue="false"
211
            textStylePreferenceValue="BOX"
212
            verticalRulerPreferenceKey="merge_candidate_annotation_vertical"
213
            verticalRulerPreferenceValue="true">
214
      </specification>
215
      <specification
216
            annotationType="merge_target_annotation"
217
            colorPreferenceKey="merge_target_annotation_color"
218
            colorPreferenceValue="220,220,255"
219
            highlightPreferenceValue="true"
220
            icon="icons/merge_target.gif"
221
            includeOnPreferencePage="true"
222
            label="Merge Target Annotation"
223
            overviewRulerPreferenceKey="merge_target_annotation_overview"
224
            overviewRulerPreferenceValue="true"
225
            presentationLayer="1"
226
            symbolicIcon="task"
227
            textPreferenceKey="merge_target_annotation_text"
228
            textPreferenceValue="false"
229
            textStylePreferenceValue="BOX"
230
            verticalRulerPreferenceKey="merge_target_annotation_vertical"
231
            verticalRulerPreferenceValue="true">
232
      </specification>      
233
   </extension>
234
   <extension
235
         point="org.eclipse.ui.editors.annotationTypes">
236
      <type
237
            name="merge_candidate_annotation">
238
      </type>
239
      <type
240
            name="merge_target_annotation">
241
      </type>
242
   </extension>
243
   <extension
244
         point="org.eclipse.ui.views">
245
      <view
246
            class="eu.etaxonomy.taxeditor.bulkeditor.referencingobjects.ReferencingObjectsView"
247
            id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"
248
            name="%view.name"
249
            restorable="false">
250
      </view>
251
   </extension>   
252
   <extension
253
         point="org.eclipse.core.expressions.definitions">
254
      <definition
255
            id="isMergeEnabled">
256
         <with
257
               variable="activeEditor">
258
            <test
259
                  property="taxeditor-bulkeditor.propertyTester.isMergingEnabled">
260
            </test>
261
         </with>
262
      </definition>
263
   </extension>
264
   <extension
265
         point="org.eclipse.core.expressions.propertyTesters">
266
      <propertyTester
267
            class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"
268
            id="taxeditor-bulkeditor.PropertyTester"
269
            namespace="taxeditor-bulkeditor.propertyTester"
270
            properties="isMergingEnabled"
271
            type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
272
      </propertyTester>
273
      <propertyTester
274
            class="eu.etaxonomy.taxeditor.bulkeditor.PropertyTester"
275
            id="eu.etaxonomy.taxeditor.bulkeditor.propertyTester"
276
            namespace="eu.etaxonomy.taxeditor.bulkeditor.propertyTester"
277
            properties="isDerivedUnitEditor"
278
            type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
279
      </propertyTester>
280
   </extension>
281
   <extension
282
         point="org.eclipse.ui.handlers">
283
      <handler
284
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut"
285
            commandId="org.eclipse.ui.edit.cut">
286
         <activeWhen>
287
            <with
288
                  variable="activeFocusControlId">
289
               <equals
290
                     value="bulkeditor.textControlId">
291
               </equals>
292
            </with>
293
         </activeWhen>
294
      </handler>
295
      <handler
296
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"
297
            commandId="org.eclipse.ui.edit.copy">
298
         <activeWhen>
299
            <with
300
                  variable="activeFocusControlId">
301
               <equals
302
                     value="bulkeditor.textControlId">
303
               </equals>
304
            </with>
305
         </activeWhen>
306
      </handler>
307
      <handler
308
            class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:paste"
309
            commandId="org.eclipse.ui.edit.paste">
310
         <activeWhen>
311
            <with
312
                  variable="activeFocusControlId">
313
               <equals
314
                     value="bulkeditor.textControlId">
315
               </equals>
316
            </with>
317
         </activeWhen>
318
      </handler>
319
      <handler
320
            class="eu.etaxonomy.taxeditor.bulkeditor.handler.DeleteHandler"
321
            commandId="org.eclipse.ui.edit.delete">
322
         <activeWhen>
323
            <with
324
                  variable="selection">
325
               <instanceof
326
                     value="eu.etaxonomy.taxeditor.model.LineSelection">
327
               </instanceof>
328
            </with>
329
         </activeWhen>
330
      </handler>
331
   </extension>
332
   <extension
333
         point="org.eclipse.ui.preferencePages">
334
      <page
335
            category="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
336
            class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorMarkerPreferencePage"
337
            id="eu.etaxonomy.taxeditor.preferences.bulkeditor.markerTypes"
338
            name="%page.name">
339
      </page>
340
      <page
341
            category="eu.etaxonomy.taxeditor.preferences.general"
342
            class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorGeneralPreferencePage"
343
            id="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
344
            name="%page.name.0">
345
      </page>
346
   </extension>
347
   <extension
348
         point="org.eclipse.ui.perspectiveExtensions">
349
      <perspectiveExtension
350
            targetID="*">
351
         <showInPart
352
               id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"></showInPart>
353
         <showInPart
354
               id="eu.etaxonomy.taxeditor.view.detail">
355
         </showInPart>
356
      </perspectiveExtension>
357
   </extension>
358
<!-- start set marker -->
359

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