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