(no commit message)
[taxeditor.git] / eu.etaxonomy.taxeditor.navigation / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.2"?>
3 <plugin>
4 <extension
5 id="application"
6 point="org.eclipse.core.runtime.applications">
7 <application>
8 <run
9 class="eu.etaxonomy.taxeditor.navigation.Application">
10 </run>
11 </application>
12 </extension>
13 <extension
14 point="org.eclipse.ui.views">
15 <view
16 allowMultiple="true"
17 class="eu.etaxonomy.taxeditor.navigation.search.SearchResultView"
18 icon="icons/system-search.png"
19 id="eu.etaxonomy.taxeditor.navigation.search.searchResultView"
20 name="%view.name"
21 restorable="false">
22 </view>
23 <view
24 allowMultiple="false"
25 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator"
26 icon="icons/preferences-system-windows.png"
27 id="eu.etaxonomy.taxeditor.navigation.navigator"
28 name="%view.name.0"
29 restorable="true">
30 </view>
31 <view
32 allowMultiple="false"
33 class="eu.etaxonomy.taxeditor.navigation.key.polytomous.PolytomousKeyViewPart"
34 id="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart"
35 name="%view.name.1"
36 restorable="true">
37 </view>
38 </extension>
39 <extension
40 point="org.eclipse.ui.menus">
41 <menuContribution
42 locationURI="menu:org.eclipse.ui.main.menu.file">
43 <separator
44 name="eu.etaxonomy.taxeditor.navigation.recentnames.separator"
45 visible="true">
46 </separator>
47 <dynamic
48 class="eu.etaxonomy.taxeditor.navigation.RecentNamesContributionItem"
49 id="eu.etaxonomy.taxeditor.navigation.recentnames">
50 </dynamic>
51 </menuContribution>
52 <menuContribution
53 locationURI="menu:eu.etaxonomy.taxeditor.menu.showView?before=eu.etaxonomy.taxeditor.editor.showViewMenu">
54 <command
55 commandId="org.eclipse.ui.views.showView"
56 label="%command.label"
57 style="push">
58 <parameter
59 name="org.eclipse.ui.views.showView.viewId"
60 value="eu.etaxonomy.taxeditor.navigation.navigator">
61 </parameter>
62 </command>
63 <command
64 commandId="org.eclipse.ui.views.showView"
65 label="%command.label.0"
66 style="push">
67 <parameter
68 name="org.eclipse.ui.views.showView.viewId"
69 value="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
70 </parameter>
71 </command>
72 </menuContribution>
73 <menuContribution
74 locationURI="popup:eu.etaxonomy.taxeditor.navigation.search.searchResultView">
75 <command
76 commandId="eu.etaxonomy.taxeditor.navigation.command.editTaxon"
77 label="%command.label.1"
78 style="push">
79 </command>
80 </menuContribution>
81 <menuContribution
82 locationURI="popup:eu.etaxonomy.taxeditor.navigation.navigatorpopup">
83 <menu
84 id="eu.etaxonomy.navigation.menu.new"
85 label="%menu.label">
86 <command
87 commandId="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
88 label="%command.label.2"
89 style="push">
90 </command>
91 <separator
92 name="eu.etaxonomy.navigation.menu.new.separator1"
93 visible="true">
94 </separator>
95 <command
96 commandId="eu.etaxonomy.taxeditor.navigation.create.classification"
97 id="eu.etaxonomy.taxeditor.navigation.create.classificationHandler"
98 label="%command.label.3"
99 style="push">
100 </command>
101 </menu>
102 <command
103 commandId="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistViewHandler"
104 icon="icons/edit_16x16.gif"
105 label="%command.label.4"
106 style="push">
107 <visibleWhen
108 checkEnabled="true">
109 <and>
110 <reference
111 definitionId="isChecklistEditorEnabled">
112 </reference>
113 <or>
114 <reference
115 definitionId="isClassification">
116 </reference>
117 <reference
118 definitionId="isTaxonNode">
119 </reference>
120 </or>
121 </and>
122 </visibleWhen>
123 </command>
124 <separator
125 name="taxeditor-navigation.separator1"
126 visible="true">
127 </separator>
128 <command
129 commandId="eu.etaxonomy.taxeditor.navigation.command.update.editSelection"
130 label="%command.label.5"
131 style="push">
132 <visibleWhen
133 checkEnabled="true">
134 <or>
135 <reference
136 definitionId="isTaxonNode">
137 </reference>
138 <reference
139 definitionId="isTaxonomicTree">
140 </reference>
141 </or>
142 </visibleWhen>
143 </command>
144 <command
145 commandId="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym"
146 label="%command.label.6"
147 style="push">
148 <visibleWhen
149 checkEnabled="true">
150 <reference
151 definitionId="isTaxonNode">
152 </reference>
153 </visibleWhen>
154 </command>
155 <command
156 commandId="eu.etaxonomy.taxeditor.navigation.command.update.moveTaxon"
157 label="%command.label.7"
158 style="push">
159 <visibleWhen
160 checkEnabled="true">
161 <reference
162 definitionId="isTaxonNode">
163 </reference>
164 </visibleWhen>
165 </command>
166 <separator
167 name="taxeditor-navigation.separator2"
168 visible="true">
169 </separator>
170 <!--command
171 commandId="eu.etaxonomy.taxeditor.navigation.command.createChildTaxon"
172 label="New Child"
173 style="push">
174 </command>
175 <command
176 commandId="eu.etaxonomy.taxeditor.navigation.command.quickCreateChildTaxon"
177 label="Quick Add Child "
178 style="push">
179 </command-->
180 <command
181 commandId="org.eclipse.ui.file.import"
182 label="%command.label.8"
183 style="push">
184 </command>
185 <command
186 commandId="org.eclipse.ui.file.export"
187 label="%command.label.9"
188 style="push">
189 </command>
190 <separator
191 name="taxeditor-navigation.separator4"
192 visible="true">
193 </separator>
194 <command
195 commandId="org.eclipse.ui.edit.delete"
196 label="%command.label.10"
197 style="push">
198 <visibleWhen>
199 <not>
200 <reference
201 definitionId="isSynonymNode">
202 </reference>
203 </not>
204 </visibleWhen>
205 </command>
206 <separator
207 name="taxeditor-navigation.separator5"
208 visible="true">
209 </separator>
210 <command
211 commandId="org.eclipse.ui.file.refresh"
212 label="%command.label.11"
213 style="push">
214 </command>
215 <command
216 commandId="eu.etaxonomy.taxeditor.navigation.command.copyTaxonName"
217 label="%command.label.12"
218 style="push">
219 </command>
220 </menuContribution>
221 <menuContribution
222 locationURI="toolbar:org.eclipse.ui.main.toolbar">
223 <toolbar
224 id="eu.etaxonomy.taxeditor.navigation.search.toolbar">
225 <control
226 class="eu.etaxonomy.taxeditor.navigation.search.SearchBar">
227 </control>
228 </toolbar>
229 </menuContribution>
230 <menuContribution
231 locationURI="menu:eu.etaxonomy.navigation.menu.new">
232 <command
233 commandId="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
234 label="%command.label.13"
235 style="push">
236 </command>
237 <separator
238 name="eu.etaxonomy.navigation.menu.new.separator1"
239 visible="true">
240 </separator>
241 <command
242 commandId="eu.etaxonomy.taxeditor.navigation.create.classification"
243 id="eu.etaxonomy.taxeditor.navigation.create.classificationHandler"
244 label="%command.label.14"
245 style="push">
246 </command>
247 </menuContribution>
248 <menuContribution
249 locationURI="popup:eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
250 <command
251 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
252 label="%command.label.15"
253 style="push">
254 </command>
255 <command
256 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
257 label="%command.label.16"
258 style="push">
259 </command>
260 <menu
261 label="%menu.label.0">
262 <command
263 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyList"
264 label="%command.label.17"
265 style="push">
266 </command>
267 <command
268 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes"
269 label="%command.label.18"
270 style="push">
271 </command>
272 </menu>
273 <separator
274 name="eu.etaxonomy.eu.polytomousKeyView.separator2"
275 visible="true">
276 </separator>
277 <command
278 commandId="org.eclipse.ui.edit.delete"
279 label="%command.label.19"
280 style="push">
281 </command>
282
283 </menuContribution>
284 </extension>
285 <extension
286 point="org.eclipse.ui.commands">
287 <command
288 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewTaxonNodeHandler"
289 id="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
290 name="%command.name">
291 </command>
292 <command
293 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewClassificationHandler"
294 id="eu.etaxonomy.taxeditor.navigation.create.classification"
295 name="%command.name.0">
296 </command>
297 </extension>
298 <extension
299 point="org.eclipse.ui.commands">
300 <command
301 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.EditHandler"
302 id="eu.etaxonomy.taxeditor.navigation.command.update.editSelection"
303 name="%command.name.1">
304 </command>
305 <command
306 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.MoveTaxonHandler"
307 id="eu.etaxonomy.taxeditor.navigation.command.update.moveTaxon"
308 name="%command.name.2">
309 </command>
310 <command
311 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.RefreshTreeHandler"
312 id="org.eclipse.ui.file.refresh"
313 name="%command.name.3">
314 </command>
315 <command
316 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.CopyHandler"
317 id="eu.etaxonomy.taxeditor.navigation.command.copyTaxonName"
318 name="%command.name.4">
319 </command>
320 <command
321 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.ChangeAcceptedTaxonToSynonymHandler"
322 id="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym"
323 name="%command.name.5">
324 </command>
325 </extension>
326 <extension
327 point="org.eclipse.ui.commands">
328 <command
329 defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.NewPolytomousKeyHandler"
330 id="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
331 name="%command.name.6">
332 </command>
333 <command
334 defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.EditPolytomousKeyNodesHandler"
335 id="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
336 name="%command.name.7">
337 </command>
338 <command
339 defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RefreshPolytomousKeyListHandler"
340 id="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyList"
341 name="%command.name.8">
342 </command>
343 <command
344 defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RefreshPolytomousKeyNodesHandler"
345 id="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes"
346 name="%command.name.9">
347 </command>
348 </extension>
349 <extension
350 point="org.eclipse.ui.handlers">
351 <handler
352 class="eu.etaxonomy.taxeditor.navigation.navigator.handler.DeleteHandler"
353 commandId="org.eclipse.ui.edit.delete">
354 <activeWhen>
355 <with
356 variable="activePartId">
357 <equals
358 value="eu.etaxonomy.taxeditor.navigation.navigator">
359 </equals>
360 </with>
361 </activeWhen>
362 </handler>
363 <handler
364 class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.DeleteHandler"
365 commandId="org.eclipse.ui.edit.delete">
366 <activeWhen>
367 <with
368 variable="activePartId">
369 <equals
370 value="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
371 </equals>
372 </with>
373 </activeWhen>
374 </handler>
375 </extension>
376
377
378 <!--extension
379 point="org.eclipse.ui.navigator.viewer">
380 <viewer
381 viewerId="org.eclipse.ui.examples.navigator.view">
382 </viewer>
383 <viewerContentBinding
384 viewerId="org.eclipse.ui.examples.navigator.view">
385 <includes>
386 <contentExtension
387 pattern="org.eclipse.ui.navigator.resourceContent" />
388 <contentExtension
389 pattern="org.eclipse.ui.navigator.resources.filters.*" />
390 </includes>
391 </viewerContentBinding>
392 <viewerActionBinding
393 viewerId="org.eclipse.ui.examples.navigator.view">
394 <includes>
395 <actionExtension
396 pattern="org.eclipse.ui.navigator.resources.*">
397 </actionExtension>
398 </includes>
399 </viewerActionBinding>
400 </extension>
401 <extension
402 point="org.eclipse.ui.navigator.navigatorContent">
403 <commonFilter
404 id="org.eclipse.ui.examples.navigator.filters.hideNonJavaProjects"
405 name="Hide non-Java projects">
406 <filterExpression>
407 <not>
408 <adapt
409 type="org.eclipse.core.resources.IProject">
410 <test
411 property="org.eclipse.core.resources.projectNature"
412 value="org.eclipse.jdt.core.javanature">
413 </test>
414 </adapt>
415 </not>
416 </filterExpression>
417 </commonFilter>
418 </extension-->
419
420
421
422
423
424
425 <extension
426 point="org.eclipse.ui.views">
427 <view
428 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator"
429 icon="icons/edit_16x16.gif"
430 id="eu.etaxonomy.taxeditor.navigation.navigator"
431 name="%view.name.2"/>
432 </extension>
433 <extension
434 point="org.eclipse.ui.navigator.navigatorContent">
435 <navigatorContent
436 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationContentProvider"
437 id="eu.etaxonomy.taxeditor.navigation.classificationContent"
438 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationLabelProvider"
439 name="%navigatorContent.name">
440 <triggerPoints>
441 <instanceof
442 value="eu.etaxonomy.taxeditor.navigation.navigator.Root">
443 </instanceof>
444 </triggerPoints>
445 <possibleChildren>
446 <instanceof
447 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
448 </instanceof>
449 </possibleChildren>
450 <dropAssistant
451 class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
452 id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
453 <possibleDropTargets></possibleDropTargets>
454 </dropAssistant>
455 </navigatorContent>
456 <navigatorContent
457 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeContentProvider"
458 id="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"
459 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeLabelProvider"
460 name="%navigatorContent.name.0">
461 <triggerPoints>
462 <or>
463 <instanceof
464 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
465 </instanceof>
466 <and>
467 <instanceof
468 value="eu.etaxonomy.cdm.model.taxon.Classification">
469 </instanceof>
470 <test
471 forcePluginActivation="true"
472 property="eu.etaxonomy.taxeditor.propertytests.hasTaxa">
473 </test>
474 </and>
475 </or>
476 </triggerPoints>
477 <dropAssistant
478 class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
479 id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
480 <possibleDropTargets>
481 <or>
482 <instanceof
483 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
484 </instanceof>
485 <instanceof
486 value="eu.etaxonomy.cdm.model.taxon.Classification">
487 </instanceof>
488 </or>
489 </possibleDropTargets>
490 </dropAssistant>
491 <possibleChildren>
492 <instanceof
493 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
494 </instanceof>
495 </possibleChildren>
496 </navigatorContent>
497 <navigatorContent
498 activeByDefault="false"
499 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymContentProvider"
500 id="eu.etaxonomy.taxeditor.navigation.synonymContent"
501 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymLabelProvider"
502 name="%navigatorContent.name.1"
503 priority="highest">
504 <triggerPoints>
505 <and>
506 <instanceof
507 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
508 </instanceof>
509 <test
510 forcePluginActivation="true"
511 property="eu.etaxonomy.taxeditor.propertytests.hasSynonyms">
512 </test>
513 </and>
514 </triggerPoints>
515 <possibleChildren>
516 <instanceof
517 value="eu.etaxonomy.cdm.model.taxon.Synonym">
518 </instanceof>
519 </possibleChildren>
520 </navigatorContent>
521 </extension>
522 <extension
523 point="org.eclipse.ui.navigator.viewer">
524 <viewer
525 viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
526 <popupMenu
527 id="eu.etaxonomy.taxeditor.navigation.navigatorpopup">
528 </popupMenu>
529 </viewer>
530 <viewerContentBinding viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
531 <includes>
532 <contentExtension
533 pattern="eu.etaxonomy.taxeditor.navigation.classificationContent">
534 </contentExtension>
535 <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"/>
536 <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper"/>
537 <contentExtension
538 pattern="eu.etaxonomy.taxeditor.navigation.synonymContent">
539 </contentExtension>
540 </includes>
541 </viewerContentBinding>
542 <!--viewer
543 popupMenuId="eu.etaxonomy.taxeditor.navigation.navigator#PopupMenu"
544 viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
545 <options>
546 <property
547 name="org.eclipse.ui.navigator.hideAvailableExtensionsTab"
548 value="true">
549 </property>
550 </options>
551 </viewer-->
552 <dragAssistant
553 class="eu.etaxonomy.taxeditor.navigation.navigator.dnd.TaxonNavigatorDragAdapterAssistant"
554 viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
555 </dragAssistant>
556 </extension>
557 <extension
558 point="org.eclipse.ui.navigator.linkHelper">
559 <linkHelper
560 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonLinkHelper"
561 id="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper">
562 <selectionEnablement>
563 <instanceof value="eu.etaxonomy.cdm.model.taxon.TaxonNode"/>
564 </selectionEnablement>
565 <editorInputEnablement>
566 <instanceof value="eu.etaxonomy.taxeditor.editor.TaxonEditorInput"/>
567 </editorInputEnablement>
568 </linkHelper>
569 </extension>
570 <extension
571 point="org.eclipse.core.runtime.adapters">
572 <factory
573 adaptableType="org.eclipse.core.internal.resources.Workspace"
574 class="eu.etaxonomy.taxeditor.navigation.WorkbenchUndoContextAdapterFactory">
575 <adapter
576 type="org.eclipse.core.commands.operations.IUndoContext">
577 </adapter>
578 </factory>
579 </extension>
580 <extension
581 point="org.eclipse.core.expressions.propertyTesters">
582 <propertyTester
583 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
584 id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
585 namespace="eu.etaxonomy.taxeditor.propertytests"
586 properties="hasSynonyms"
587 type="eu.etaxonomy.cdm.model.taxon.TaxonNode">
588 </propertyTester>
589 <propertyTester
590 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
591 id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
592 namespace="eu.etaxonomy.taxeditor.propertytests"
593 properties="hasTaxa"
594 type="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
595 </propertyTester>
596 <propertyTester
597 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
598 id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
599 namespace="eu.etaxonomy.taxeditor.propertytests"
600 properties="hasTaxa"
601 type="eu.etaxonomy.cdm.model.taxon.Classification">
602 </propertyTester>
603 <propertyTester
604 class="eu.etaxonomy.taxeditor.preference.PreferencePropertyTester"
605 id="eu.etaxonomy.taxeditor.preferences.propertyTester"
606 namespace="eu.etaxonomy.taxeditor.preferences.propertyTester"
607 properties="isChecklistEditorEnabled"
608 type="org.eclipse.jface.viewers.IStructuredSelection">
609 </propertyTester>
610 </extension>
611 <extension
612 point="org.eclipse.core.expressions.definitions">
613 <definition
614 id="isTaxonNode">
615 <with
616 variable="selection">
617 <iterate
618 ifEmpty="false">
619 <instanceof
620 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
621 </instanceof>
622 </iterate>
623 </with>
624 </definition>
625 <definition
626 id="isSynonymNode">
627 <with
628 variable="selection">
629 <iterate
630 ifEmpty="false">
631 <instanceof
632 value="eu.etaxonomy.cdm.model.taxon.Synonym">
633 </instanceof>
634 </iterate>
635 </with>
636 </definition>
637 <definition
638 id="isClassification">
639 <with
640 variable="selection">
641 <iterate
642 ifEmpty="false">
643 <instanceof
644 value="eu.etaxonomy.cdm.model.taxon.Classification">
645 </instanceof>
646 </iterate>
647 </with>
648 </definition>
649 <definition
650 id="isChecklistEditorEnabled">
651 <with
652 variable="selection">
653 <test
654 property="eu.etaxonomy.taxeditor.preferences.propertyTester.isChecklistEditorEnabled">
655 </test>
656 </with>
657 </definition>
658 </extension>
659 </plugin>