#4658
[taxeditor.git] / eu.etaxonomy.taxeditor.bulkeditor / plugin.xml
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="eu.etaxonomy.taxeditor.bulkeditor.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 id="eu.etaxonomy.taxeditor.bulkeditor.delete"
233 name="delete">
234 </command>
235 <!--command
236 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.NewEntityHandler"
237 id="eu.etaxonomy.taxeditor.bulkeditor.command.new"
238 name="New Entity">
239 </command-->
240 </extension>
241 <extension
242 point="org.eclipse.ui.editors.markerAnnotationSpecification">
243 <specification
244 annotationType="merge_candidate_annotation"
245 colorPreferenceKey="merge_candidate_annotation_color"
246 colorPreferenceValue="220,220,255"
247 highlightPreferenceValue="true"
248 icon="icons/merge_candidate.gif"
249 includeOnPreferencePage="true"
250 label="Merge Candidate Annotation"
251 overviewRulerPreferenceKey="merge_candidate_annotation_overview"
252 overviewRulerPreferenceValue="true"
253 presentationLayer="0"
254 symbolicIcon="task"
255 textPreferenceKey="merge_candidate_annotation_text"
256 textPreferenceValue="false"
257 textStylePreferenceValue="BOX"
258 verticalRulerPreferenceKey="merge_candidate_annotation_vertical"
259 verticalRulerPreferenceValue="true">
260 </specification>
261 <specification
262 annotationType="merge_target_annotation"
263 colorPreferenceKey="merge_target_annotation_color"
264 colorPreferenceValue="220,220,255"
265 highlightPreferenceValue="true"
266 icon="icons/merge_target.gif"
267 includeOnPreferencePage="true"
268 label="Merge Target Annotation"
269 overviewRulerPreferenceKey="merge_target_annotation_overview"
270 overviewRulerPreferenceValue="true"
271 presentationLayer="1"
272 symbolicIcon="task"
273 textPreferenceKey="merge_target_annotation_text"
274 textPreferenceValue="false"
275 textStylePreferenceValue="BOX"
276 verticalRulerPreferenceKey="merge_target_annotation_vertical"
277 verticalRulerPreferenceValue="true">
278 </specification>
279 </extension>
280 <extension
281 point="org.eclipse.ui.editors.annotationTypes">
282 <type
283 name="merge_candidate_annotation">
284 </type>
285 <type
286 name="merge_target_annotation">
287 </type>
288 </extension>
289 <extension
290 point="org.eclipse.ui.views">
291 <view
292 class="eu.etaxonomy.taxeditor.bulkeditor.referencingobjects.ReferencingObjectsView"
293 id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"
294 name="%view.name"
295 restorable="false">
296 </view>
297 </extension>
298 <extension
299 point="org.eclipse.core.expressions.definitions">
300 <definition
301 id="isMergeEnabled">
302 <with
303 variable="activeEditor">
304 <test
305 property="taxeditor-bulkeditor.propertyTester.isMergingEnabled">
306 </test>
307 </with>
308 </definition>
309 </extension>
310 <extension
311 point="org.eclipse.core.expressions.propertyTesters">
312 <propertyTester
313 class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"
314 id="taxeditor-bulkeditor.PropertyTester"
315 namespace="taxeditor-bulkeditor.propertyTester"
316 properties="isMergingEnabled"
317 type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
318 </propertyTester>
319 <propertyTester
320 class="eu.etaxonomy.taxeditor.bulkeditor.PropertyTester"
321 id="eu.etaxonomy.taxeditor.bulkeditor.propertyTester"
322 namespace="eu.etaxonomy.taxeditor.bulkeditor.propertyTester"
323 properties="isDerivedUnitEditor"
324 type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
325 </propertyTester>
326 </extension>
327 <extension
328 point="org.eclipse.ui.handlers">
329 <handler
330 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut"
331 commandId="org.eclipse.ui.edit.cut">
332 <activeWhen>
333 <with
334 variable="activeFocusControlId">
335 <equals
336 value="bulkeditor.textControlId">
337 </equals>
338 </with>
339 </activeWhen>
340 </handler>
341 <handler
342 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"
343 commandId="org.eclipse.ui.edit.copy">
344 <activeWhen>
345 <with
346 variable="activeFocusControlId">
347 <equals
348 value="bulkeditor.textControlId">
349 </equals>
350 </with>
351 </activeWhen>
352 </handler>
353 <handler
354 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:paste"
355 commandId="org.eclipse.ui.edit.paste">
356 <activeWhen>
357 <with
358 variable="activeFocusControlId">
359 <equals
360 value="bulkeditor.textControlId">
361 </equals>
362 </with>
363 </activeWhen>
364 </handler>
365 <handler
366 class="eu.etaxonomy.taxeditor.bulkeditor.handler.DeleteHandler"
367 commandId="eu.etaxonomy.taxeditor.bulkeditor.delete">
368 <activeWhen>
369 <with
370 variable="selection">
371 <instanceof
372 value="eu.etaxonomy.taxeditor.model.LineSelection">
373 </instanceof>
374 </with>
375 </activeWhen>
376 </handler>
377 </extension>
378 <extension
379 point="org.eclipse.ui.preferencePages">
380 <page
381 category="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
382 class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorMarkerPreferencePage"
383 id="eu.etaxonomy.taxeditor.preferences.bulkeditor.markerTypes"
384 name="%page.name">
385 </page>
386 <page
387 category="eu.etaxonomy.taxeditor.preferences.general"
388 class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorGeneralPreferencePage"
389 id="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
390 name="%page.name.0">
391 </page>
392 </extension>
393 <extension
394 point="org.eclipse.ui.perspectiveExtensions">
395 <perspectiveExtension
396 targetID="*">
397 <showInPart
398 id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"></showInPart>
399 <showInPart
400 id="eu.etaxonomy.taxeditor.view.detail">
401 </showInPart>
402 </perspectiveExtension>
403 </extension>
404 <!-- start set marker -->
405
406 </plugin>