Merge branch 'develop' into LibrAlign
[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 <command
371 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
372 label="%command.label.16"
373 style="push">
374 </command>
375 <menu
376 label="%menu.label.0">
377 <command
378 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyList"
379 label="%command.label.17"
380 style="push">
381 </command>
382 <command
383 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes"
384 label="%command.label.18"
385 style="push">
386 </command>
387 </menu>
388 <separator
389 name="eu.etaxonomy.eu.polytomousKeyView.separator2"
390 visible="true">
391 </separator>
392 <command
393 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete"
394 label="%command.label.19"
395 style="push">
396 </command>
397
398 </menuContribution>
399 </extension>
400 <extension
401 point="org.eclipse.ui.commands">
402 <command
403 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.MoveTaxonHandler"
404 id="eu.etaxonomy.taxeditor.navigation.command.update.moveTaxon"
405 name="%command.name.2">
406 </command>
407 <command
408 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.RefreshTreeHandler"
409 id="org.eclipse.ui.file.refresh"
410 name="%command.name.3">
411 </command>
412 <command
413 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.CopyHandler"
414 id="eu.etaxonomy.taxeditor.navigation.command.copyTaxonName"
415 name="%command.name.4">
416 </command>
417 <command
418 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.ChangeAcceptedTaxonToSynonymHandler"
419 id="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym"
420 name="%command.name.5">
421 </command>
422 <command
423 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewClassificationHandler"
424 id="eu.etaxonomy.taxeditor.navigation.create.classification"
425 name="%command.name.0">
426 </command>
427 <command
428 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewTaxonNodeHandler"
429 id="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
430 name="%command.name">
431 </command>
432 <command
433 defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.NewPolytomousKeyHandler"
434 id="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
435 name="%command.name.6">
436 </command>
437 <command
438 defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.EditPolytomousKeyNodesHandler"
439 id="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
440 name="%command.name.7">
441 </command>
442 <command
443 defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RefreshPolytomousKeyListHandler"
444 id="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyList"
445 name="%command.name.8">
446 </command>
447 <command
448 defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RefreshPolytomousKeyNodesHandler"
449 id="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes"
450 name="%command.name.9">
451 </command>
452 <command
453 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.MoveFactualDataHandler"
454 id="eu.etaxonomy.taxeditor.navigation.moveFactualData"
455 name="%command.name.moveFactualData">
456 </command>
457 <command
458 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.CreateClassificationHierarchyHandler"
459 id="eu.etaxonomy.taxeditor.navigation.navigator.handler.OpenFixClassificationHierarchyHandler"
460 name="%command.name.10">
461 </command>
462 <command
463 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.DeleteHandler"
464 id="eu.etaxonomy.taxeditor.navigation.command.delete"
465 name="%command.name.11">
466 </command>
467 <command
468 defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.DeleteHandler"
469 id="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete"
470 name="%command.name.11">
471 </command>
472 </extension>
473 <extension
474 point="org.eclipse.ui.handlers">
475 <handler
476 class="eu.etaxonomy.taxeditor.navigation.navigator.handler.DeleteHandler"
477 commandId="eu.etaxonomy.taxeditor.navigation.navigator.command.delete">
478 <activeWhen>
479 <with
480 variable="activePartId">
481 <equals
482 value="eu.etaxonomy.taxeditor.navigation.navigator">
483 </equals>
484 </with>
485 </activeWhen>
486 </handler>
487 <handler
488 class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.DeleteHandler"
489 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete">
490 <activeWhen>
491 <with
492 variable="activePartId">
493 <equals
494 value="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
495 </equals>
496 </with>
497 </activeWhen>
498 </handler>
499 <handler
500 class="eu.etaxonomy.taxeditor.navigation.navigator.handler.RemotingChangeAcceptedTaxonToSynonymHandler"
501 commandId="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym">
502 <activeWhen>
503 <reference
504 definitionId="isRemoting">
505 </reference>
506 </activeWhen>
507 </handler>
508 <handler
509 class="eu.etaxonomy.taxeditor.navigation.navigator.handler.RemotingMoveFactualDataHandler"
510 commandId="eu.etaxonomy.taxeditor.navigation.moveFactualData">
511 <activeWhen>
512 <reference
513 definitionId="isRemoting">
514 </reference>
515 </activeWhen>
516 </handler>
517 <handler
518 class="eu.etaxonomy.taxeditor.navigation.navigator.handler.RemotingMoveTaxonNodeHandler"
519 commandId="eu.etaxonomy.taxeditor.navigation.command.update.moveTaxon">
520 <activeWhen>
521 <reference
522 definitionId="isRemoting">
523 </reference>
524 </activeWhen>
525 </handler>
526 <handler
527 class="eu.etaxonomy.taxeditor.navigation.navigator.handler.RemotingDeleteTaxonNodeHandler"
528 commandId="eu.etaxonomy.taxeditor.navigation.command.delete">
529 <activeWhen>
530 <reference
531 definitionId="isRemoting">
532 </reference>
533 </activeWhen>
534 </handler>
535 <handler
536 class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RemotingDeletePolytomousKeyHandler"
537 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete">
538 <activeWhen>
539 <reference
540 definitionId="isRemoting">
541 </reference>
542 </activeWhen>
543 </handler>
544 <handler
545 class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RemotingUpdatePolytomousKeyAllNodesHandler"
546 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes">
547 <activeWhen>
548 <reference
549 definitionId="isRemoting">
550 </reference>
551 </activeWhen>
552 </handler>
553 <handler
554 class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RemotingEditPolytomousKeyNodesHandler"
555 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes">
556 <activeWhen>
557 <reference
558 definitionId="isRemoting">
559 </reference>
560 </activeWhen>
561 </handler>
562 </extension>
563
564
565 <!--extension
566 point="org.eclipse.ui.navigator.viewer">
567 <viewer
568 viewerId="org.eclipse.ui.examples.navigator.view">
569 </viewer>
570 <viewerContentBinding
571 viewerId="org.eclipse.ui.examples.navigator.view">
572 <includes>
573 <contentExtension
574 pattern="org.eclipse.ui.navigator.resourceContent" />
575 <contentExtension
576 pattern="org.eclipse.ui.navigator.resources.filters.*" />
577 </includes>
578 </viewerContentBinding>
579 <viewerActionBinding
580 viewerId="org.eclipse.ui.examples.navigator.view">
581 <includes>
582 <actionExtension
583 pattern="org.eclipse.ui.navigator.resources.*">
584 </actionExtension>
585 </includes>
586 </viewerActionBinding>
587 </extension>
588 <extension
589 point="org.eclipse.ui.navigator.navigatorContent">
590 <commonFilter
591 id="org.eclipse.ui.examples.navigator.filters.hideNonJavaProjects"
592 name="Hide non-Java projects">
593 <filterExpression>
594 <not>
595 <adapt
596 type="org.eclipse.core.resources.IProject">
597 <test
598 property="org.eclipse.core.resources.projectNature"
599 value="org.eclipse.jdt.core.javanature">
600 </test>
601 </adapt>
602 </not>
603 </filterExpression>
604 </commonFilter>
605 </extension-->
606
607
608
609
610
611
612 <extension
613 point="org.eclipse.ui.views">
614 <view
615 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator"
616 icon="icons/edit_16x16.gif"
617 id="eu.etaxonomy.taxeditor.navigation.navigator"
618 name="%view.name.2"/>
619 </extension>
620 <extension
621 point="org.eclipse.ui.navigator.navigatorContent">
622 <navigatorContent
623 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationContentProvider"
624 id="eu.etaxonomy.taxeditor.navigation.classificationContent"
625 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationLabelProvider"
626 name="%navigatorContent.name">
627 <triggerPoints>
628 <instanceof
629 value="eu.etaxonomy.taxeditor.navigation.navigator.Root">
630 </instanceof>
631 </triggerPoints>
632 <possibleChildren>
633 <instanceof
634 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
635 </instanceof>
636 </possibleChildren>
637 <dropAssistant
638 class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
639 id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
640 <possibleDropTargets></possibleDropTargets>
641 </dropAssistant>
642 </navigatorContent>
643 <navigatorContent
644 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeContentProvider"
645 id="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"
646 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeLabelProvider"
647 name="%navigatorContent.name.0">
648 <triggerPoints>
649 <or>
650 <instanceof
651 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
652 </instanceof>
653 <and>
654 <instanceof
655 value="eu.etaxonomy.cdm.model.taxon.Classification">
656 </instanceof>
657 <test
658 forcePluginActivation="true"
659 property="eu.etaxonomy.taxeditor.propertytests.hasTaxa">
660 </test>
661 </and>
662 </or>
663 </triggerPoints>
664 <dropAssistant
665 class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
666 id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
667 <possibleDropTargets>
668 <or>
669 <instanceof
670 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
671 </instanceof>
672 <instanceof
673 value="eu.etaxonomy.cdm.model.taxon.Classification">
674 </instanceof>
675 </or>
676 </possibleDropTargets>
677 </dropAssistant>
678 <possibleChildren>
679 <instanceof
680 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
681 </instanceof>
682 </possibleChildren>
683 </navigatorContent>
684 <navigatorContent
685 activeByDefault="false"
686 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymContentProvider"
687 id="eu.etaxonomy.taxeditor.navigation.synonymContent"
688 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymLabelProvider"
689 name="%navigatorContent.name.1"
690 priority="highest">
691 <triggerPoints>
692 <and>
693 <instanceof
694 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
695 </instanceof>
696 <test
697 forcePluginActivation="true"
698 property="eu.etaxonomy.taxeditor.propertytests.hasSynonyms">
699 </test>
700 </and>
701 </triggerPoints>
702 <possibleChildren>
703 <instanceof
704 value="eu.etaxonomy.cdm.model.taxon.Synonym">
705 </instanceof>
706 </possibleChildren>
707 </navigatorContent>
708 </extension>
709 <extension
710 point="org.eclipse.ui.navigator.viewer">
711 <viewer
712 viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
713 <popupMenu
714 id="eu.etaxonomy.taxeditor.navigation.navigatorpopup">
715 </popupMenu>
716 </viewer>
717 <viewerContentBinding viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
718 <includes>
719 <contentExtension
720 pattern="eu.etaxonomy.taxeditor.navigation.classificationContent">
721 </contentExtension>
722 <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"/>
723 <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper"/>
724 <contentExtension
725 pattern="eu.etaxonomy.taxeditor.navigation.synonymContent">
726 </contentExtension>
727 </includes>
728 </viewerContentBinding>
729 <!--viewer
730 popupMenuId="eu.etaxonomy.taxeditor.navigation.navigator#PopupMenu"
731 viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
732 <options>
733 <property
734 name="org.eclipse.ui.navigator.hideAvailableExtensionsTab"
735 value="true">
736 </property>
737 </options>
738 </viewer-->
739 <dragAssistant
740 class="eu.etaxonomy.taxeditor.navigation.navigator.dnd.TaxonNavigatorDragAdapterAssistant"
741 viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
742 </dragAssistant>
743 </extension>
744 <extension
745 point="org.eclipse.ui.navigator.linkHelper">
746 <linkHelper
747 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonLinkHelper"
748 id="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper">
749 <selectionEnablement>
750 <instanceof value="eu.etaxonomy.cdm.model.taxon.TaxonNode"/>
751 </selectionEnablement>
752 <editorInputEnablement>
753 <instanceof value="eu.etaxonomy.taxeditor.editor.TaxonEditorInput"/>
754 </editorInputEnablement>
755 </linkHelper>
756 </extension>
757 <extension
758 point="org.eclipse.core.runtime.adapters">
759 <factory
760 adaptableType="org.eclipse.core.internal.resources.Workspace"
761 class="eu.etaxonomy.taxeditor.navigation.WorkbenchUndoContextAdapterFactory">
762 <adapter
763 type="org.eclipse.core.commands.operations.IUndoContext">
764 </adapter>
765 </factory>
766 </extension>
767 <extension
768 point="org.eclipse.core.expressions.propertyTesters">
769 <propertyTester
770 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
771 id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
772 namespace="eu.etaxonomy.taxeditor.propertytests"
773 properties="hasSynonyms"
774 type="eu.etaxonomy.cdm.model.taxon.TaxonNode">
775 </propertyTester>
776 <propertyTester
777 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
778 id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
779 namespace="eu.etaxonomy.taxeditor.propertytests"
780 properties="hasTaxa"
781 type="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
782 </propertyTester>
783 <propertyTester
784 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
785 id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
786 namespace="eu.etaxonomy.taxeditor.propertytests"
787 properties="hasTaxa"
788 type="eu.etaxonomy.cdm.model.taxon.Classification">
789 </propertyTester>
790 <propertyTester
791 class="eu.etaxonomy.taxeditor.preference.PreferencePropertyTester"
792 id="eu.etaxonomy.taxeditor.preferences.propertyTester"
793 namespace="eu.etaxonomy.taxeditor.preferences.propertyTester"
794 properties="isShowExperimentalFeatures, isChecklistEditorEnabled"
795 type="org.eclipse.jface.viewers.IStructuredSelection">
796 </propertyTester>
797 <propertyTester
798 class="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
799 id="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
800 namespace="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester"
801 properties="isCdmStoreConnected,isRemoting,isStandAlone"
802 type="java.lang.Object">
803 </propertyTester>
804 </extension>
805 <extension
806 point="org.eclipse.core.expressions.definitions">
807 <definition
808 id="isTaxonNode">
809 <with
810 variable="selection">
811 <iterate
812 ifEmpty="false">
813 <instanceof
814 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
815 </instanceof>
816 </iterate>
817 </with>
818 </definition>
819 <definition
820 id="isSynonymNode">
821 <with
822 variable="selection">
823 <iterate
824 ifEmpty="false">
825 <instanceof
826 value="eu.etaxonomy.cdm.model.taxon.Synonym">
827 </instanceof>
828 </iterate>
829 </with>
830 </definition>
831 <definition
832 id="isClassification">
833 <with
834 variable="selection">
835 <iterate
836 ifEmpty="false">
837 <instanceof
838 value="eu.etaxonomy.cdm.model.taxon.Classification">
839 </instanceof>
840 </iterate>
841 </with>
842 </definition>
843 <definition
844 id="isChecklistEditorEnabled">
845 <with
846 variable="selection">
847 <test
848 property="eu.etaxonomy.taxeditor.preferences.propertyTester.isChecklistEditorEnabled">
849 </test>
850 </with>
851 </definition>
852 <definition
853 id="isCdmStoreConnected">
854 <test
855 property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isCdmStoreConnected">
856 </test>
857 </definition>
858 <definition
859 id="isShowExperimentalFeatures">
860 <with
861 variable="selection">
862 <test
863 property="eu.etaxonomy.taxeditor.preferences.propertyTester.isShowExperimentalFeatures">
864 </test>
865 </with>
866 </definition>
867 <definition
868 id="isRemoting">
869 <test
870 property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isRemoting">
871 </test>
872 </definition>
873 <definition
874 id="isStandAlone">
875 <test
876 property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isStandAlone">
877 </test>
878 </definition>
879 </extension>
880 </plugin>