ref #6566 Sort main menu
[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:eu.etaxonomy.taxeditor.workbench.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 <visibleWhen
51 checkEnabled="true">
52 <reference
53 definitionId="isCdmStoreConnected">
54 </reference>
55 </visibleWhen>
56 </dynamic>
57 </menuContribution>
58 <menuContribution
59 locationURI="menu:eu.etaxonomy.taxeditor.menu.showView?before=eu.etaxonomy.taxeditor.editor.showViewMenu">
60 <command
61 commandId="org.eclipse.ui.views.showView"
62 label="%command.label"
63 style="push">
64 <parameter
65 name="org.eclipse.ui.views.showView.viewId"
66 value="eu.etaxonomy.taxeditor.navigation.navigator">
67 </parameter>
68 <visibleWhen
69 checkEnabled="true">
70 <reference
71 definitionId="isCdmStoreConnected">
72 </reference>
73 </visibleWhen>
74 </command>
75 <command
76 commandId="org.eclipse.ui.views.showView"
77 label="%command.label.0"
78 style="push">
79 <parameter
80 name="org.eclipse.ui.views.showView.viewId"
81 value="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
82 </parameter>
83 <visibleWhen
84 checkEnabled="true">
85 <reference
86 definitionId="isCdmStoreConnected">
87 </reference>
88 </visibleWhen>
89 </command>
90 </menuContribution>
91 <menuContribution
92 locationURI="popup:eu.etaxonomy.taxeditor.navigation.search.searchResultView">
93 <dynamic
94 class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
95 id="eu.etaxonomy.taxeditor.navigation.cdmViewerContextMenu">
96 </dynamic>
97 <separator
98 name="eu.etaxonomy.taxeditor.navigation.separator2">
99 </separator>
100 </menuContribution>
101 <menuContribution
102 locationURI="popup:eu.etaxonomy.taxeditor.navigation.navigatorpopup">
103 <menu
104 id="eu.etaxonomy.navigation.menu.new"
105 label="%menu.label">
106 <command
107 commandId="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
108 label="%command.label.2"
109 style="push">
110 <visibleWhen
111 checkEnabled="true">
112 <with
113 variable="selection">
114 <count
115 value="+">
116 </count>
117 </with>
118 </visibleWhen>
119 </command>
120 <separator
121 name="eu.etaxonomy.navigation.menu.new.separator1"
122 visible="true">
123 </separator>
124 <command
125 commandId="eu.etaxonomy.taxeditor.navigation.create.classification"
126 id="eu.etaxonomy.taxeditor.navigation.create.classificationHandler"
127 label="%command.label.3"
128 style="push">
129 </command>
130 <visibleWhen
131 checkEnabled="true">
132 <reference
133 definitionId="isCdmStoreConnected">
134 </reference>
135 </visibleWhen>
136 </menu>
137 <command
138 commandId="eu.etaxonomy.taxeditor.navigation.navigator.handler.OpenFixClassificationHierarchyHandler"
139 label="%command.label.fixClassificationHierarchy"
140 style="push">
141 <visibleWhen
142 checkEnabled="true">
143 <and>
144 <reference
145 definitionId="isShowExperimentalFeatures">
146 </reference>
147 <reference
148 definitionId="isClassification">
149 </reference>
150 </and>
151 </visibleWhen>
152 </command>
153 <command
154 commandId="eu.etaxonomy.taxeditor.navigation.cloneClassification"
155 label="Clone Classification"
156 style="push">
157 <visibleWhen
158 checkEnabled="true">
159 <and>
160 <reference
161 definitionId="isShowExperimentalFeatures">
162 </reference>
163 <reference
164 definitionId="isClassification">
165 </reference>
166 </and>
167 </visibleWhen>
168 </command>
169 <separator
170 name="taxeditor-navigation.separator1"
171 visible="true">
172 </separator>
173 <dynamic
174 class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
175 id="eu.etaxonomy.taxeditor.navigation.cdmViewerContextMenu">
176 </dynamic>
177 <separator
178 name="eu.etaxonomy.taxeditor.navigation.separator2">
179 </separator>
180 <command
181 commandId="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym"
182 label="%command.label.6"
183 style="push">
184 <visibleWhen
185 checkEnabled="true">
186 <and>
187 <reference
188 definitionId="isCdmStoreConnected">
189 </reference>
190 <reference
191 definitionId="isTaxonNode">
192 </reference>
193 </and>
194 </visibleWhen>
195 </command>
196 <command
197 commandId="eu.etaxonomy.taxeditor.navigator.command.update.setSecundumForSubtree"
198 label="%command.label.setSecForSubtree"
199 style="push">
200 <visibleWhen
201 checkEnabled="true">
202 <and>
203 <reference
204 definitionId="isCdmStoreConnected">
205 </reference>
206 <reference
207 definitionId="isTaxonNode">
208 </reference>
209 </and>
210 </visibleWhen>
211 </command>
212 <command
213 commandId="eu.etaxonomy.taxeditor.navigation.command.update.moveTaxon"
214 label="%command.label.7"
215 style="push">
216 <visibleWhen
217 checkEnabled="true">
218 <reference
219 definitionId="isTaxonNode">
220 </reference>
221 </visibleWhen>
222 </command>
223 <command
224 commandId="eu.etaxonomy.taxeditor.navigation.moveFactualData"
225 label="%command.label.moveFactualData"
226 style="push">
227 <visibleWhen
228 checkEnabled="true">
229 <and>
230 <reference
231 definitionId="isCdmStoreConnected">
232 </reference>
233 <reference
234 definitionId="isTaxonNode">
235 </reference>
236 </and>
237 </visibleWhen>
238 </command>
239 <separator
240 name="taxeditor-navigation.separator2"
241 visible="true">
242 </separator>
243 <!--command
244 commandId="eu.etaxonomy.taxeditor.navigation.command.createChildTaxon"
245 label="New Child"
246 style="push">
247 </command>
248 <command
249 commandId="eu.etaxonomy.taxeditor.navigation.command.quickCreateChildTaxon"
250 label="Quick Add Child "
251 style="push">
252 </command-->
253 <command
254 commandId="org.eclipse.ui.file.import"
255 label="%command.label.8"
256 style="push">
257 <visibleWhen
258 checkEnabled="true">
259 <reference
260 definitionId="isCdmStoreConnected">
261 </reference>
262 </visibleWhen>
263 </command>
264 <command
265 commandId="org.eclipse.ui.file.export"
266 label="%command.label.9"
267 style="push">
268 <visibleWhen
269 checkEnabled="true">
270 <reference
271 definitionId="isCdmStoreConnected">
272 </reference>
273 </visibleWhen>
274 </command>
275 <separator
276 name="taxeditor-navigation.separator4"
277 visible="true">
278 </separator>
279 <command
280 commandId="eu.etaxonomy.taxeditor.navigation.command.delete"
281 label="%command.label.10"
282 style="push">
283 <visibleWhen
284 checkEnabled="true">
285 <and>
286 <reference
287 definitionId="isCdmStoreConnected">
288 </reference>
289 <not>
290 <reference
291 definitionId="isSynonymNode">
292 </reference>
293 </not>
294 <with
295 variable="selection">
296 <count
297 value="+">
298 </count>
299 </with>
300 </and>
301 </visibleWhen>
302 </command>
303 <separator
304 name="taxeditor-navigation.separator5"
305 visible="true">
306 </separator>
307 <command
308 commandId="org.eclipse.ui.file.refresh"
309 label="%command.label.11"
310 style="push">
311 <visibleWhen
312 checkEnabled="true">
313 <reference
314 definitionId="isCdmStoreConnected">
315 </reference>
316 </visibleWhen>
317 </command>
318 <command
319 commandId="eu.etaxonomy.taxeditor.navigation.command.copyTaxonName"
320 label="%command.label.12"
321 style="push">
322 <visibleWhen
323 checkEnabled="true">
324 <and>
325 <reference
326 definitionId="isCdmStoreConnected">
327 </reference>
328 <reference
329 definitionId="isTaxonNode">
330 </reference></and>
331 </visibleWhen>
332 </command>
333 </menuContribution>
334 <menuContribution
335 locationURI="toolbar:org.eclipse.ui.main.toolbar">
336 <toolbar
337 id="eu.etaxonomy.taxeditor.navigation.search.toolbar">
338 <control
339 class="eu.etaxonomy.taxeditor.navigation.search.SearchBar">
340 </control>
341 </toolbar>
342 </menuContribution>
343 <menuContribution
344 locationURI="menu:eu.etaxonomy.navigation.menu.new">
345 <command
346 commandId="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
347 label="%command.label.13"
348 style="push">
349 <visibleWhen
350 checkEnabled="true">
351 <reference
352 definitionId="isCdmStoreConnected">
353 </reference>
354 </visibleWhen>
355 </command>
356 <separator
357 name="eu.etaxonomy.navigation.menu.new.separator1"
358 visible="true">
359 </separator>
360 <command
361 commandId="eu.etaxonomy.taxeditor.navigation.create.classification"
362 id="eu.etaxonomy.taxeditor.navigation.create.classificationHandler"
363 label="%command.label.14"
364 style="push">
365 <visibleWhen
366 checkEnabled="true">
367 <reference
368 definitionId="isCdmStoreConnected">
369 </reference>
370 </visibleWhen>
371 </command>
372 </menuContribution>
373 <menuContribution
374 locationURI="popup:eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
375 <command
376 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
377 label="%command.label.15"
378 style="push">
379 </command>
380 <dynamic
381 class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
382 id="eu.etaxonomy.taxeditor.navigation.polytomous.cdmViewerContextMenu">
383 </dynamic>
384 <command
385 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
386 label="%command.label.16"
387 style="push">
388 </command>
389 <menu
390 label="%menu.label.0">
391 <command
392 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyList"
393 label="%command.label.17"
394 style="push">
395 </command>
396 <command
397 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes"
398 label="%command.label.18"
399 style="push">
400 </command>
401 </menu>
402 <separator
403 name="eu.etaxonomy.eu.polytomousKeyView.separator2"
404 visible="true">
405 </separator>
406 <command
407 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete"
408 label="%command.label.19"
409 style="push">
410 </command>
411
412 </menuContribution>
413 </extension>
414 <extension
415 point="org.eclipse.ui.commands">
416 <command
417 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.MoveTaxonHandler"
418 id="eu.etaxonomy.taxeditor.navigation.command.update.moveTaxon"
419 name="%command.name.2">
420 </command>
421 <command
422 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.RefreshTreeHandler"
423 id="org.eclipse.ui.file.refresh"
424 name="%command.name.3">
425 </command>
426 <command
427 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.CopyHandler"
428 id="eu.etaxonomy.taxeditor.navigation.command.copyTaxonName"
429 name="%command.name.4">
430 </command>
431 <command
432 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.ChangeAcceptedTaxonToSynonymHandler"
433 id="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym"
434 name="%command.name.5">
435 </command>
436 <command
437 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.SetSecReferenceForSubtreeHandler"
438 id="eu.etaxonomy.taxeditor.navigator.command.update.setSecundumForSubtree"
439 name="%command.name.setSecForSubtree">
440 </command>
441 <command
442 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewClassificationHandler"
443 id="eu.etaxonomy.taxeditor.navigation.create.classification"
444 name="%command.name.0">
445 </command>
446 <command
447 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewTaxonNodeHandler"
448 id="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
449 name="%command.name">
450 </command>
451 <command
452 defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.NewPolytomousKeyHandler"
453 id="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
454 name="%command.name.6">
455 </command>
456 <command
457 defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.EditPolytomousKeyNodesHandler"
458 id="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
459 name="%command.name.7">
460 </command>
461 <command
462 defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RefreshPolytomousKeyListHandler"
463 id="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyList"
464 name="%command.name.8">
465 </command>
466 <command
467 defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RefreshPolytomousKeyNodesHandler"
468 id="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes"
469 name="%command.name.9">
470 </command>
471 <command
472 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.MoveFactualDataHandler"
473 id="eu.etaxonomy.taxeditor.navigation.moveFactualData"
474 name="%command.name.moveFactualData">
475 </command>
476 <command
477 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.CreateClassificationHierarchyHandler"
478 id="eu.etaxonomy.taxeditor.navigation.navigator.handler.OpenFixClassificationHierarchyHandler"
479 name="%command.name.10">
480 </command>
481 <command
482 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.DeleteHandler"
483 id="eu.etaxonomy.taxeditor.navigation.command.delete"
484 name="%command.name.11">
485 </command>
486 <command
487 defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.DeleteHandler"
488 id="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete"
489 name="%command.name.11">
490 </command>
491 <command
492 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.CloneClassificationHandler"
493 id="eu.etaxonomy.taxeditor.navigation.cloneClassification"
494 name="Clone Classification">
495 </command>
496 </extension>
497 <extension
498 point="org.eclipse.ui.handlers">
499 <handler
500 class="eu.etaxonomy.taxeditor.navigation.navigator.handler.DeleteHandler"
501 commandId="eu.etaxonomy.taxeditor.navigation.navigator.command.delete">
502 <activeWhen>
503 <with
504 variable="activePartId">
505 <equals
506 value="eu.etaxonomy.taxeditor.navigation.navigator">
507 </equals>
508 </with>
509 </activeWhen>
510 </handler>
511 <handler
512 class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.DeleteHandler"
513 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete">
514 <activeWhen>
515 <with
516 variable="activePartId">
517 <equals
518 value="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
519 </equals>
520 </with>
521 </activeWhen>
522 </handler>
523 <handler
524 class="eu.etaxonomy.taxeditor.navigation.navigator.handler.RemotingChangeAcceptedTaxonToSynonymHandler"
525 commandId="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym">
526 <activeWhen>
527 <reference
528 definitionId="isRemoting">
529 </reference>
530 </activeWhen>
531 </handler>
532 <handler
533 class="eu.etaxonomy.taxeditor.navigation.navigator.handler.SetSecReferenceForSubtreeHandler"
534 commandId="eu.etaxonomy.taxeditor.navigator.command.update.setSecundumForSubtree">
535 <activeWhen>
536 <reference
537 definitionId="isRemoting">
538 </reference>
539 </activeWhen>
540 </handler>
541 <handler
542 class="eu.etaxonomy.taxeditor.navigation.navigator.handler.RemotingMoveFactualDataHandler"
543 commandId="eu.etaxonomy.taxeditor.navigation.moveFactualData">
544 <activeWhen>
545 <reference
546 definitionId="isRemoting">
547 </reference>
548 </activeWhen>
549 </handler>
550 <handler
551 class="eu.etaxonomy.taxeditor.navigation.navigator.handler.RemotingMoveTaxonNodeHandler"
552 commandId="eu.etaxonomy.taxeditor.navigation.command.update.moveTaxon">
553 <activeWhen>
554 <reference
555 definitionId="isRemoting">
556 </reference>
557 </activeWhen>
558 </handler>
559 <handler
560 class="eu.etaxonomy.taxeditor.navigation.navigator.handler.RemotingDeleteTaxonNodeHandler"
561 commandId="eu.etaxonomy.taxeditor.navigation.command.delete">
562 <activeWhen>
563 <reference
564 definitionId="isRemoting">
565 </reference>
566 </activeWhen>
567 </handler>
568 <handler
569 class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RemotingDeletePolytomousKeyHandler"
570 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete">
571 <activeWhen>
572 <reference
573 definitionId="isRemoting">
574 </reference>
575 </activeWhen>
576 </handler>
577 <handler
578 class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RemotingUpdatePolytomousKeyAllNodesHandler"
579 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes">
580 <activeWhen>
581 <reference
582 definitionId="isRemoting">
583 </reference>
584 </activeWhen>
585 </handler>
586 <handler
587 class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RemotingEditPolytomousKeyNodesHandler"
588 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes">
589 <activeWhen>
590 <reference
591 definitionId="isRemoting">
592 </reference>
593 </activeWhen>
594 </handler>
595 <handler
596 class="eu.etaxonomy.taxeditor.handler.defaultHandler.OpenReferencingObjectsView"
597 commandId="eu.etaxonomy.taxeditor.openReferencingObjectsView">
598 <activeWhen>
599 <with
600 variable="activePartId">
601 <equals
602 value="eu.etaxonomy.taxeditor.navigation.navigator">
603 </equals>
604 </with>
605 </activeWhen>
606 </handler>
607 <handler
608 class="eu.etaxonomy.taxeditor.editor.handler.defaultHandler.DefaultOpenTaxonEditorForTaxonBaseHandler"
609 commandId="eu.etaxonomy.taxeditor.editor.openTaxonEditorForTaxon">
610 <activeWhen>
611 <and>
612 <not>
613 <reference
614 definitionId="isOrphanedTaxon">
615 </reference>
616 </not>
617 </and>
618 </activeWhen>
619 </handler>
620 </extension>
621
622
623 <!--extension
624 point="org.eclipse.ui.navigator.viewer">
625 <viewer
626 viewerId="org.eclipse.ui.examples.navigator.view">
627 </viewer>
628 <viewerContentBinding
629 viewerId="org.eclipse.ui.examples.navigator.view">
630 <includes>
631 <contentExtension
632 pattern="org.eclipse.ui.navigator.resourceContent" />
633 <contentExtension
634 pattern="org.eclipse.ui.navigator.resources.filters.*" />
635 </includes>
636 </viewerContentBinding>
637 <viewerActionBinding
638 viewerId="org.eclipse.ui.examples.navigator.view">
639 <includes>
640 <actionExtension
641 pattern="org.eclipse.ui.navigator.resources.*">
642 </actionExtension>
643 </includes>
644 </viewerActionBinding>
645 </extension>
646 <extension
647 point="org.eclipse.ui.navigator.navigatorContent">
648 <commonFilter
649 id="org.eclipse.ui.examples.navigator.filters.hideNonJavaProjects"
650 name="Hide non-Java projects">
651 <filterExpression>
652 <not>
653 <adapt
654 type="org.eclipse.core.resources.IProject">
655 <test
656 property="org.eclipse.core.resources.projectNature"
657 value="org.eclipse.jdt.core.javanature">
658 </test>
659 </adapt>
660 </not>
661 </filterExpression>
662 </commonFilter>
663 </extension-->
664
665
666
667
668
669
670 <extension
671 point="org.eclipse.ui.views">
672 <view
673 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator"
674 icon="icons/edit_16x16.gif"
675 id="eu.etaxonomy.taxeditor.navigation.navigator"
676 name="%view.name.2"/>
677 </extension>
678 <extension
679 point="org.eclipse.ui.navigator.navigatorContent">
680 <navigatorContent
681 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationContentProvider"
682 id="eu.etaxonomy.taxeditor.navigation.classificationContent"
683 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationLabelProvider"
684 name="%navigatorContent.name">
685 <triggerPoints>
686 <instanceof
687 value="eu.etaxonomy.taxeditor.navigation.navigator.Root">
688 </instanceof>
689 </triggerPoints>
690 <possibleChildren>
691 <instanceof
692 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
693 </instanceof>
694 </possibleChildren>
695 <dropAssistant
696 class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
697 id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
698 <possibleDropTargets></possibleDropTargets>
699 </dropAssistant>
700 </navigatorContent>
701 <navigatorContent
702 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeContentProvider"
703 id="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"
704 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeLabelProvider"
705 name="%navigatorContent.name.0">
706 <triggerPoints>
707 <or>
708 <instanceof
709 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
710 </instanceof>
711 <and>
712 <instanceof
713 value="eu.etaxonomy.cdm.model.taxon.Classification">
714 </instanceof>
715 <test
716 forcePluginActivation="true"
717 property="eu.etaxonomy.taxeditor.propertytests.hasTaxa">
718 </test>
719 </and>
720 </or>
721 </triggerPoints>
722 <dropAssistant
723 class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
724 id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
725 <possibleDropTargets>
726 <or>
727 <instanceof
728 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
729 </instanceof>
730 <instanceof
731 value="eu.etaxonomy.cdm.model.taxon.Classification">
732 </instanceof>
733 </or>
734 </possibleDropTargets>
735 </dropAssistant>
736 <possibleChildren>
737 <instanceof
738 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
739 </instanceof>
740 </possibleChildren>
741 </navigatorContent>
742 <navigatorContent
743 activeByDefault="false"
744 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymContentProvider"
745 id="eu.etaxonomy.taxeditor.navigation.synonymContent"
746 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymLabelProvider"
747 name="%navigatorContent.name.1"
748 priority="highest">
749 <triggerPoints>
750 <and>
751 <instanceof
752 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
753 </instanceof>
754 <test
755 forcePluginActivation="true"
756 property="eu.etaxonomy.taxeditor.propertytests.hasSynonyms">
757 </test>
758 </and>
759 </triggerPoints>
760 <possibleChildren>
761 <instanceof
762 value="eu.etaxonomy.cdm.model.taxon.Synonym">
763 </instanceof>
764 </possibleChildren>
765 </navigatorContent>
766 </extension>
767 <extension
768 point="org.eclipse.ui.navigator.viewer">
769 <viewer
770 viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
771 <popupMenu
772 id="eu.etaxonomy.taxeditor.navigation.navigatorpopup">
773 </popupMenu>
774 </viewer>
775 <viewerContentBinding viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
776 <includes>
777 <contentExtension
778 pattern="eu.etaxonomy.taxeditor.navigation.classificationContent">
779 </contentExtension>
780 <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"/>
781 <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper"/>
782 <contentExtension
783 pattern="eu.etaxonomy.taxeditor.navigation.synonymContent">
784 </contentExtension>
785 </includes>
786 </viewerContentBinding>
787 <!--viewer
788 popupMenuId="eu.etaxonomy.taxeditor.navigation.navigator#PopupMenu"
789 viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
790 <options>
791 <property
792 name="org.eclipse.ui.navigator.hideAvailableExtensionsTab"
793 value="true">
794 </property>
795 </options>
796 </viewer-->
797 <dragAssistant
798 class="eu.etaxonomy.taxeditor.navigation.navigator.dnd.TaxonNavigatorDragAdapterAssistant"
799 viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
800 </dragAssistant>
801 </extension>
802 <extension
803 point="org.eclipse.ui.navigator.linkHelper">
804 <linkHelper
805 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonLinkHelper"
806 id="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper">
807 <selectionEnablement>
808 <instanceof value="eu.etaxonomy.cdm.model.taxon.TaxonNode"/>
809 </selectionEnablement>
810 <editorInputEnablement>
811 <instanceof value="eu.etaxonomy.taxeditor.editor.TaxonEditorInput"/>
812 </editorInputEnablement>
813 </linkHelper>
814 </extension>
815 <extension
816 point="org.eclipse.core.runtime.adapters">
817 <factory
818 adaptableType="org.eclipse.core.internal.resources.Workspace"
819 class="eu.etaxonomy.taxeditor.navigation.WorkbenchUndoContextAdapterFactory">
820 <adapter
821 type="org.eclipse.core.commands.operations.IUndoContext">
822 </adapter>
823 </factory>
824 </extension>
825 <extension
826 point="org.eclipse.core.expressions.propertyTesters">
827 <propertyTester
828 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
829 id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
830 namespace="eu.etaxonomy.taxeditor.propertytests"
831 properties="hasSynonyms"
832 type="eu.etaxonomy.cdm.model.taxon.TaxonNode">
833 </propertyTester>
834 <propertyTester
835 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
836 id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
837 namespace="eu.etaxonomy.taxeditor.propertytests"
838 properties="hasTaxa"
839 type="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
840 </propertyTester>
841 <propertyTester
842 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
843 id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
844 namespace="eu.etaxonomy.taxeditor.propertytests"
845 properties="hasTaxa"
846 type="eu.etaxonomy.cdm.model.taxon.Classification">
847 </propertyTester>
848 <propertyTester
849 class="eu.etaxonomy.taxeditor.preference.PreferencePropertyTester"
850 id="eu.etaxonomy.taxeditor.preferences.propertyTester"
851 namespace="eu.etaxonomy.taxeditor.preferences.propertyTester"
852 properties="isShowExperimentalFeatures, isChecklistEditorEnabled"
853 type="org.eclipse.jface.viewers.IStructuredSelection">
854 </propertyTester>
855 <propertyTester
856 class="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
857 id="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
858 namespace="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
859 properties="isCdmStoreConnected,isRemoting,isStandAlone"
860 type="java.lang.Object">
861 </propertyTester>
862 </extension>
863 <extension
864 point="org.eclipse.core.expressions.definitions">
865 <definition
866 id="isTaxonNode">
867 <with
868 variable="selection">
869 <iterate
870 ifEmpty="false">
871 <instanceof
872 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
873 </instanceof>
874 </iterate>
875 </with>
876 </definition>
877 <definition
878 id="isSynonymNode">
879 <with
880 variable="selection">
881 <iterate
882 ifEmpty="false">
883 <instanceof
884 value="eu.etaxonomy.cdm.model.taxon.Synonym">
885 </instanceof>
886 </iterate>
887 </with>
888 </definition>
889 <definition
890 id="isClassification">
891 <with
892 variable="selection">
893 <iterate
894 ifEmpty="false">
895 <instanceof
896 value="eu.etaxonomy.cdm.model.taxon.Classification">
897 </instanceof>
898 </iterate>
899 </with>
900 </definition>
901 <definition
902 id="isChecklistEditorEnabled">
903 <with
904 variable="selection">
905 <test
906 property="eu.etaxonomy.taxeditor.preferences.propertyTester.isChecklistEditorEnabled">
907 </test>
908 </with>
909 </definition>
910 <definition
911 id="isCdmStoreConnected">
912 <test
913 property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isCdmStoreConnected">
914 </test>
915 </definition>
916 <definition
917 id="isShowExperimentalFeatures">
918 <with
919 variable="selection">
920 <test
921 property="eu.etaxonomy.taxeditor.preferences.propertyTester.isShowExperimentalFeatures">
922 </test>
923 </with>
924 </definition>
925 <definition
926 id="isRemoting">
927 <test
928 property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isRemoting">
929 </test>
930 </definition>
931 <definition
932 id="isStandAlone">
933 <test
934 property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isStandAlone">
935 </test>
936 </definition>
937 </extension>
938 </plugin>