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