Add generic "Open in..." context menu to referencing objects view
[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 </menuContribution>
72 <menuContribution
73 locationURI="popup:#BulkEditorContext">
74 <dynamic
75 class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
76 id="eu.etaxonomy.taxeditor.bulkeditor.cdmViewerContextMenu">
77 </dynamic>
78 <separator
79 name="taxeditor-bulkeditor.separator1"
80 visible="true">
81 </separator>
82 <menu
83 label="%menu.label.1">
84 <dynamic
85 class="eu.etaxonomy.taxeditor.bulkeditor.command.DynamicNewObjectMenu"
86 id="eu.etaxonomy.taxeditor.bulkeditor.dynamicNewMenu">
87 <visibleWhen
88 checkEnabled="false">
89 <reference
90 definitionId="isCdmStoreConnected">
91 </reference>
92 </visibleWhen>
93 </dynamic>
94 <visibleWhen
95 checkEnabled="true">
96 <reference
97 definitionId="isCdmStoreConnected">
98 </reference>
99 </visibleWhen>
100 </menu>
101 <separator
102 name="eu.etaxonomy.taxeditor.bulkeditor.separator1">
103 </separator>
104 <command
105 commandId="bulkeditor.commands.setmergetarget"
106 label="%command.label.0"
107 style="push">
108 <visibleWhen>
109 <reference
110 definitionId="isMergeEnabled">
111 </reference>
112 </visibleWhen>
113 </command>
114
115 <command
116 commandId="bulkeditor.commands.setmergecandidate"
117 label="%command.label.1"
118 style="push">
119 <visibleWhen>
120 <reference
121 definitionId="isMergeEnabled">
122 </reference>
123 </visibleWhen>
124 </command>
125 <command
126 commandId="bulkeditor.commands.removemergecandidate"
127 label="%command.label.2"
128 style="push">
129 <visibleWhen>
130 <reference
131 definitionId="isMergeEnabled">
132 </reference>
133 </visibleWhen>
134 </command>
135 <!--menuContribution
136 locationURI="popup:org.eclipse.ui.popup.any"-->
137 <command
138 commandId="bulkeditor.commands.mergegroup"
139 label="%command.label.3"
140 style="push">
141 <visibleWhen>
142 <reference
143 definitionId="isMergeEnabled">
144 </reference>
145 </visibleWhen>
146 </command>
147 <command
148 commandId="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person"
149 label="%command.label.5"
150 style="push">
151 <visibleWhen
152 checkEnabled="true">
153 <and>
154 <reference
155 definitionId="isConvertEnabled">
156 </reference>
157 <reference
158 definitionId="isTeam">
159 </reference>
160 </and>
161 </visibleWhen>
162 </command>
163 <command
164 commandId="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team"
165 label="%command.label.6"
166 style="push">
167 <visibleWhen
168 checkEnabled="true">>
169 <and>
170 <reference
171 definitionId="isConvertEnabled">
172 </reference>
173 <reference
174 definitionId="isPerson">
175 </reference>
176 </and>
177 </visibleWhen>
178 </command>
179 <separator
180 name="taxeditor-bulkeditor.separator2"
181 visible="true">
182 </separator>
183 <menu
184 label="%menu.label.2">
185 <dynamic
186 class="eu.etaxonomy.taxeditor.bulkeditor.command.DynamicMarkerTypeEditingMenu"
187 id="eu.etaxonomy.taxeditor.bulkeditor.dynamicMarkerTypeEditingMenu">
188 </dynamic>
189 <visibleWhen
190 checkEnabled="true">
191 <reference
192 definitionId="isCdmStoreConnected">
193 </reference>
194 </visibleWhen>
195 </menu>
196 <separator
197 name="taxeditor-bulkeditor.separator3"
198 visible="true">
199 </separator>
200 <command
201 commandId="eu.etaxonomy.taxeditor.bulkeditor.delete"
202 label="%command.label.4"
203 style="push">
204 <visibleWhen
205 checkEnabled="true">
206 <reference
207 definitionId="isCdmStoreConnected">
208 </reference>
209 </visibleWhen>
210 </command>
211 </menuContribution>
212 <menuContribution
213 allPopups="false"
214 locationURI="popup:eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects">
215 <dynamic
216 class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
217 id="eu.etaxonomy.taxeditor.referencingObjectsView.cdmViewerContextMenu">
218 </dynamic>
219 </menuContribution>
220 </extension>
221 <extension
222 point="org.eclipse.ui.commands">
223 <command
224 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.MergeGroupHandler"
225 id="bulkeditor.commands.mergegroup"
226 name="%command.name">
227 </command>
228 <command
229 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeTargetHandler"
230 id="bulkeditor.commands.setmergetarget"
231 name="%command.name.0">
232 </command>
233 <command
234 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.OpenBulkEditorHandler"
235 id="taxeditor-bulkeditor.dynamicopenmenu"
236 name="%command.name.1">
237 <commandParameter
238 id="taxeditor-bulkeditor.commandParameter.inputType"
239 name="%commandParameter.name"
240 values="eu.etaxonomy.taxeditor.bulkeditor.input.BulkEditorInputTypeValues">
241 </commandParameter>
242 </command>
243 <command
244 defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.NewObjectHandler"
245 id="taxeditor-bulkeditor.dynamicnewobjectcommand"
246 name="%command.name.2">
247 </command>
248 <command
249 defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.DeleteObjectHandler"
250 id="taxeditor-bulkeditor.dynamicdeleteobjectcommand"
251 name="%command.name.3">
252 </command>
253 <command
254 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeCandidateHandler"
255 id="bulkeditor.commands.setmergecandidate"
256 name="%command.name.4">
257 </command>
258 <command
259 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.RemoveMergeCandidateHandler"
260 id="bulkeditor.commands.removemergecandidate"
261 name="%command.name.5">
262 </command>
263 <command
264 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMarkerFlagHandler"
265 id="taxeditor-bulkeditor.command.setMarkerFlag"
266 name="%command.name.6">
267 </command>
268 <command
269 id="eu.etaxonomy.taxeditor.bulkeditor.delete"
270 name="%command.name.7">
271 </command>
272 <command
273 id="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person"
274 name="%command.name.8">
275 </command>
276 <command
277 id="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team"
278 name="%command.name.10">
279 </command>
280 <command
281 id="eu.etaxonomy.taxeditor.openReferencingObjectsView"
282 name="Open Referencing Objects View">
283 </command>
284 <!--command
285 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.NewEntityHandler"
286 id="eu.etaxonomy.taxeditor.bulkeditor.command.new"
287 name="New Entity">
288 </command-->
289 </extension>
290 <extension
291 point="org.eclipse.ui.editors.markerAnnotationSpecification">
292 <specification
293 annotationType="merge_candidate_annotation"
294 colorPreferenceKey="merge_candidate_annotation_color"
295 colorPreferenceValue="220,220,255"
296 highlightPreferenceValue="true"
297 icon="icons/merge_candidate.gif"
298 includeOnPreferencePage="true"
299 label="%specification.label"
300 overviewRulerPreferenceKey="merge_candidate_annotation_overview"
301 overviewRulerPreferenceValue="true"
302 presentationLayer="0"
303 symbolicIcon="task"
304 textPreferenceKey="merge_candidate_annotation_text"
305 textPreferenceValue="false"
306 textStylePreferenceValue="BOX"
307 verticalRulerPreferenceKey="merge_candidate_annotation_vertical"
308 verticalRulerPreferenceValue="true">
309 </specification>
310 <specification
311 annotationType="merge_target_annotation"
312 colorPreferenceKey="merge_target_annotation_color"
313 colorPreferenceValue="220,220,255"
314 highlightPreferenceValue="true"
315 icon="icons/merge_target.gif"
316 includeOnPreferencePage="true"
317 label="%specification.label.0"
318 overviewRulerPreferenceKey="merge_target_annotation_overview"
319 overviewRulerPreferenceValue="true"
320 presentationLayer="1"
321 symbolicIcon="task"
322 textPreferenceKey="merge_target_annotation_text"
323 textPreferenceValue="false"
324 textStylePreferenceValue="BOX"
325 verticalRulerPreferenceKey="merge_target_annotation_vertical"
326 verticalRulerPreferenceValue="true">
327 </specification>
328 </extension>
329 <extension
330 point="org.eclipse.ui.editors.annotationTypes">
331 <type
332 name="merge_candidate_annotation">
333 </type>
334 <type
335 name="merge_target_annotation">
336 </type>
337 </extension>
338 <extension
339 point="org.eclipse.ui.views">
340 <view
341 class="eu.etaxonomy.taxeditor.bulkeditor.referencingobjects.ReferencingObjectsView"
342 id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"
343 name="%view.name"
344 restorable="false">
345 </view>
346 </extension>
347 <extension
348 point="org.eclipse.core.expressions.definitions">
349 <definition
350 id="isMergeEnabled">
351 <with
352 variable="activeEditor">
353 <test
354 property="taxeditor-bulkeditor.propertyTester.isMergingEnabled">
355 </test>
356 </with>
357 </definition>
358 <definition
359 id="isConvertEnabled">
360 <with
361 variable="activeEditor">
362 <test
363 property="taxeditor-bulkeditor.propertyTester.isConvertingEnabled">
364 </test>
365 </with>
366 </definition>
367 <definition
368 id="isTaxonBulkEditorInput">
369 <with
370 variable="activeEditor">
371 <test
372 property="taxeditor-bulkeditor.propertyTester.isTaxonEditor">
373 </test>
374 </with>
375 </definition>
376 <definition
377 id="isTeam">
378 <with
379 variable="selection">
380 <test
381 property="eu.etaxonomy.taxeditor.bulkeditor.command.isTeam">
382 </test>
383 </with>
384 </definition>
385 <definition
386 id="isPerson">
387 <with
388 variable="selection">
389 <test
390 property="eu.etaxonomy.taxeditor.bulkeditor.command.isPerson">
391 </test>
392 </with>
393 </definition>
394 </extension>
395 <extension
396 point="org.eclipse.core.expressions.propertyTesters">
397 <propertyTester
398 class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"
399 id="taxeditor-bulkeditor.PropertyTester"
400 namespace="taxeditor-bulkeditor.propertyTester"
401 properties="isMergingEnabled, isDerivedUnitEditor, isTaxonEditor, isGroupEditor, isConvertingEnabled"
402 type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
403 </propertyTester>
404 <propertyTester
405 class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
406 id="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
407 namespace="eu.etaxonomy.taxeditor.bulkeditor.command"
408 properties="isTeam, isPerson"
409 type="java.lang.Object">
410 </propertyTester>
411 </extension>
412 <extension
413 point="org.eclipse.ui.handlers">
414 <handler
415 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut"
416 commandId="org.eclipse.ui.edit.cut">
417 <activeWhen>
418 <with
419 variable="activeFocusControlId">
420 <equals
421 value="bulkeditor.textControlId">
422 </equals>
423 </with>
424 </activeWhen>
425 </handler>
426 <handler
427 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"
428 commandId="org.eclipse.ui.edit.copy">
429 <activeWhen>
430 <with
431 variable="activeFocusControlId">
432 <equals
433 value="bulkeditor.textControlId">
434 </equals>
435 </with>
436 </activeWhen>
437 </handler>
438 <handler
439 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:paste"
440 commandId="org.eclipse.ui.edit.paste">
441 <activeWhen>
442 <with
443 variable="activeFocusControlId">
444 <equals
445 value="bulkeditor.textControlId">
446 </equals>
447 </with>
448 </activeWhen>
449 </handler>
450 <handler
451 class="eu.etaxonomy.taxeditor.bulkeditor.handler.DeleteHandler"
452 commandId="eu.etaxonomy.taxeditor.bulkeditor.delete">
453 <activeWhen>
454 <with
455 variable="selection">
456 <instanceof
457 value="eu.etaxonomy.taxeditor.model.LineSelection">
458 </instanceof>
459 </with>
460 </activeWhen>
461 </handler>
462 <handler
463 class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertTeam2PersonHandler"
464 commandId="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person">
465 </handler>
466 <handler
467 class="eu.etaxonomy.taxeditor.bulkeditor.handler.ConvertPerson2TeamHandler"
468 commandId="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team">
469 </handler>
470 <handler
471 class="eu.etaxonomy.taxeditor.handler.defaultHandler.OpenReferencingObjectsView"
472 commandId="eu.etaxonomy.taxeditor.openReferencingObjectsView">
473 <activeWhen>
474 <with
475 variable="activePartId">
476 <equals
477 value="bulkeditor.editor">
478 </equals>
479 </with>
480 </activeWhen>
481 </handler>
482
483 </extension>
484 <extension
485 point="org.eclipse.ui.preferencePages">
486 <page
487 category="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
488 class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorMarkerPreferencePage"
489 id="eu.etaxonomy.taxeditor.preferences.bulkeditor.markerTypes"
490 name="%page.name">
491 </page>
492 <page
493 category="eu.etaxonomy.taxeditor.preferences.general"
494 class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorGeneralPreferencePage"
495 id="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
496 name="%page.name.0">
497 </page>
498 </extension>
499 <extension
500 point="eu.etaxonomy.taxeditor.store.cdmViewer">
501 <viewCommandMapping
502 commandId="eu.etaxonomy.taxeditor.openReferencingObjectsView"
503 selection="java.lang.Object"
504 viewerName="Referencing Objects View">
505 </viewCommandMapping>
506 </extension>
507 <!-- start set marker -->
508
509 </plugin>