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