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