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