Implemented correct handling of images for specimen. Still needs fine tuning.
[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 <separator
59 name="taxeditor-bulkeditor.separator1"
60 visible="true">
61 </separator>
62 <command
63 commandId="bulkeditor.commands.setmergetarget"
64 label="Set Current Line as Target for Duplicate Removal"
65 style="push">
66 <visibleWhen>
67 <reference
68 definitionId="isMergeEnabled">
69 </reference>
70 </visibleWhen>
71 </command>
72 <command
73 commandId="bulkeditor.commands.setmergecandidate"
74 label="Set as Candidate(s) for Duplicate Removal"
75 style="push">
76 <visibleWhen>
77 <reference
78 definitionId="isMergeEnabled">
79 </reference>
80 </visibleWhen>
81 </command>
82 <command
83 commandId="bulkeditor.commands.removemergecandidate"
84 label="Remove as Candidate(s) for Duplicate Removal"
85 style="push">
86 <visibleWhen>
87 <reference
88 definitionId="isMergeEnabled">
89 </reference>
90 </visibleWhen>
91 </command>
92 <!--menuContribution
93 locationURI="popup:org.eclipse.ui.popup.any"-->
94 <command
95 commandId="bulkeditor.commands.mergegroup"
96 label="De-Duplicate Group"
97 style="push">
98 <visibleWhen>
99 <reference
100 definitionId="isMergeEnabled">
101 </reference>
102 </visibleWhen>
103 </command>
104 <separator
105 name="taxeditor-bulkeditor.separator2"
106 visible="true">
107 </separator>
108 <command
109 commandId="bulkeditor.commands.referencingobjects"
110 label="Show Referencing Objects"
111 style="push">
112 </command>
113 <command
114 commandId="org.eclipse.ui.views.showView"
115 label="Show Details"
116 style="push">
117 <parameter
118 name="org.eclipse.ui.views.showView.viewId"
119 value="eu.etaxonomy.taxeditor.editor.forms.detailsView">
120 </parameter>
121 </command>
122 <separator
123 name="taxeditor-bulkeditor.separator3"
124 visible="true">
125 </separator>
126 <menu
127 label="New">
128 <dynamic
129 class="eu.etaxonomy.taxeditor.bulkeditor.command.DynamicNewObjectMenu"
130 id="eu.etaxonomy.taxeditor.bulkeditor.dynamicNewMenu">
131 </dynamic>
132 </menu>
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 </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.ShowReferencingObjectsHandler"
156 id="bulkeditor.commands.referencingobjects"
157 name="Show Referencing Objects">
158 </command>
159 <command
160 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.OpenBulkEditorHandler"
161 id="taxeditor-bulkeditor.dynamicopenmenu"
162 name="Dynamic Open Bulk Editor">
163 <commandParameter
164 id="taxeditor-bulkeditor.commandParameter.inputType"
165 name="Bulk Editor Class"
166 values="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorInputTypeValues">
167 </commandParameter>
168 </command>
169 <command
170 defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.NewObjectHandler"
171 id="taxeditor-bulkeditor.dynamicnewobjectcommand"
172 name="Dynamic New Object">
173 </command>
174 <command
175 defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.DeleteObjectHandler"
176 id="taxeditor-bulkeditor.dynamicdeleteobjectcommand"
177 name="Dynamic Delete Object">
178 </command>
179 <command
180 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeCandidateHandler"
181 id="bulkeditor.commands.setmergecandidate"
182 name="Set as Candidate for Group Merge">
183 </command>
184 <command
185 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.RemoveMergeCandidateHandler"
186 id="bulkeditor.commands.removemergecandidate"
187 name="Remove as Candidate for Group Merge">
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.referencingobjectsview"
248 name="Referencing Objects"
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 </extension>
274 <extension
275 point="org.eclipse.ui.commands">
276 <command
277 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMarkerFlagHandler"
278 id="taxeditor-bulkeditor.command.setMarkerFlag"
279 name="Set Marker Flag">
280 </command>
281 </extension>
282 <extension
283 point="org.eclipse.ui.handlers">
284 <handler
285 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut"
286 commandId="org.eclipse.ui.edit.cut">
287 <activeWhen>
288 <with
289 variable="activeFocusControlId">
290 <equals
291 value="bulkeditor.textControlId">
292 </equals>
293 </with>
294 </activeWhen>
295 </handler>
296 <handler
297 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"
298 commandId="org.eclipse.ui.edit.copy">
299 <activeWhen>
300 <with
301 variable="activeFocusControlId">
302 <equals
303 value="bulkeditor.textControlId">
304 </equals>
305 </with>
306 </activeWhen>
307 </handler>
308 <handler
309 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:paste"
310 commandId="org.eclipse.ui.edit.paste">
311 <activeWhen>
312 <with
313 variable="activeFocusControlId">
314 <equals
315 value="bulkeditor.textControlId">
316 </equals>
317 </with>
318 </activeWhen>
319 </handler>
320 </extension>
321 <extension
322 point="org.eclipse.ui.preferencePages">
323 <page
324 category="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
325 class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorMarkerPreferencePage"
326 id="eu.etaxonomy.taxeditor.preferences.bulkeditor.markerTypes"
327 name="Marker Types">
328 </page>
329 <page
330 category="eu.etaxonomy.taxeditor.preferences.general"
331 class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorGeneralPreferencePage"
332 id="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
333 name="Bulk Editor">
334 </page>
335 </extension>
336 <extension
337 point="org.eclipse.ui.menus">
338 <menuContribution
339 allPopups="false"
340 locationURI="popup:eu.etaxonomy.taxeditor.editor.view.media">
341 <command
342 commandId="eu.etaxonomy.taxeditor.bulkeditor.command.derivedunit.addDerivedUnitMedia"
343 label="Add Derived Unit Media"
344 style="push">
345 </command>
346 <command
347 commandId="eu.etaxonomy.taxeditor.bulkeditor.command.derivedunit.addFieldObjectMedia"
348 label="Add Field Object Media"
349 style="push">
350 </command>
351 </menuContribution>
352 </extension>
353 <extension
354 point="org.eclipse.ui.commands">
355 <command
356 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.derivedunit.handler.AddDerivedUnitMediaHandler"
357 id="eu.etaxonomy.taxeditor.bulkeditor.command.derivedunit.addDerivedUnitMedia"
358 name="Add Derived Unit Media">
359 </command>
360 <command
361 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.derivedunit.handler.AddFieldObjectMediaHandler"
362 id="eu.etaxonomy.taxeditor.bulkeditor.command.derivedunit.addFieldObjectMedia"
363 name="Add Field Object Media">
364 </command>
365 </extension>
366 <extension
367 point="org.eclipse.core.expressions.propertyTesters">
368 <propertyTester
369 class="eu.etaxonomy.taxeditor.bulkeditor.PropertyTester"
370 id="eu.etaxonomy.taxeditor.bulkeditor.propertyTester"
371 namespace="eu.etaxonomy.taxeditor.bulkeditor.propertyTester"
372 properties="isDerivedUnitEditor"
373 type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
374 </propertyTester>
375 </extension>
376 <!-- start set marker -->
377
378 </plugin>