d625a694d91964e70e038f1c07f15648bdd9059a
[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 <dynamic
178 class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
179 id="eu.etaxonomy.taxeditor.navigation.cdmViewerContextMenu">
180 </dynamic>
181 <command
182 commandId="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym"
183 label="%command.label.6"
184 style="push">
185 <visibleWhen
186 checkEnabled="true">
187 <and>
188 <reference
189 definitionId="isCdmStoreConnected">
190 </reference>
191 <reference
192 definitionId="isTaxonNode">
193 </reference>
194 </and>
195 </visibleWhen>
196 </command>
197 <command
198 commandId="eu.etaxonomy.taxeditor.navigation.command.update.moveTaxon"
199 label="%command.label.7"
200 style="push">
201 <visibleWhen
202 checkEnabled="true">
203 <reference
204 definitionId="isTaxonNode">
205 </reference>
206 </visibleWhen>
207 </command>
208 <command
209 commandId="eu.etaxonomy.taxeditor.navigation.moveFactualData"
210 label="%command.label.moveFactualData"
211 style="push">
212 <visibleWhen
213 checkEnabled="true">
214 <and>
215 <reference
216 definitionId="isCdmStoreConnected">
217 </reference>
218 <reference
219 definitionId="isTaxonNode">
220 </reference>
221 </and>
222 </visibleWhen>
223 </command>
224 <separator
225 name="taxeditor-navigation.separator2"
226 visible="true">
227 </separator>
228 <!--command
229 commandId="eu.etaxonomy.taxeditor.navigation.command.createChildTaxon"
230 label="New Child"
231 style="push">
232 </command>
233 <command
234 commandId="eu.etaxonomy.taxeditor.navigation.command.quickCreateChildTaxon"
235 label="Quick Add Child "
236 style="push">
237 </command-->
238 <command
239 commandId="org.eclipse.ui.file.import"
240 label="%command.label.8"
241 style="push">
242 <visibleWhen
243 checkEnabled="true">
244 <reference
245 definitionId="isCdmStoreConnected">
246 </reference>
247 </visibleWhen>
248 </command>
249 <command
250 commandId="org.eclipse.ui.file.export"
251 label="%command.label.9"
252 style="push">
253 <visibleWhen
254 checkEnabled="true">
255 <reference
256 definitionId="isCdmStoreConnected">
257 </reference>
258 </visibleWhen>
259 </command>
260 <separator
261 name="taxeditor-navigation.separator4"
262 visible="true">
263 </separator>
264 <command
265 commandId="eu.etaxonomy.taxeditor.navigation.command.delete"
266 label="%command.label.10"
267 style="push">
268 <visibleWhen
269 checkEnabled="true">
270 <and>
271 <reference
272 definitionId="isCdmStoreConnected">
273 </reference>
274 <not>
275 <reference
276 definitionId="isSynonymNode">
277 </reference>
278 </not>
279 <with
280 variable="selection">
281 <count
282 value="+">
283 </count>
284 </with>
285 </and>
286 </visibleWhen>
287 </command>
288 <separator
289 name="taxeditor-navigation.separator5"
290 visible="true">
291 </separator>
292 <command
293 commandId="org.eclipse.ui.file.refresh"
294 label="%command.label.11"
295 style="push">
296 <visibleWhen
297 checkEnabled="true">
298 <reference
299 definitionId="isCdmStoreConnected">
300 </reference>
301 </visibleWhen>
302 </command>
303 <command
304 commandId="eu.etaxonomy.taxeditor.navigation.command.copyTaxonName"
305 label="%command.label.12"
306 style="push">
307 <visibleWhen
308 checkEnabled="true">
309 <and>
310 <reference
311 definitionId="isCdmStoreConnected">
312 </reference>
313 <reference
314 definitionId="isTaxonNode">
315 </reference></and>
316 </visibleWhen>
317 </command>
318 </menuContribution>
319 <menuContribution
320 locationURI="toolbar:org.eclipse.ui.main.toolbar">
321 <toolbar
322 id="eu.etaxonomy.taxeditor.navigation.search.toolbar">
323 <control
324 class="eu.etaxonomy.taxeditor.navigation.search.SearchBar">
325 </control>
326 </toolbar>
327 </menuContribution>
328 <menuContribution
329 locationURI="menu:eu.etaxonomy.navigation.menu.new">
330 <command
331 commandId="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
332 label="%command.label.13"
333 style="push">
334 <visibleWhen
335 checkEnabled="true">
336 <reference
337 definitionId="isCdmStoreConnected">
338 </reference>
339 </visibleWhen>
340 </command>
341 <separator
342 name="eu.etaxonomy.navigation.menu.new.separator1"
343 visible="true">
344 </separator>
345 <command
346 commandId="eu.etaxonomy.taxeditor.navigation.create.classification"
347 id="eu.etaxonomy.taxeditor.navigation.create.classificationHandler"
348 label="%command.label.14"
349 style="push">
350 <visibleWhen
351 checkEnabled="true">
352 <reference
353 definitionId="isCdmStoreConnected">
354 </reference>
355 </visibleWhen>
356 </command>
357 </menuContribution>
358 <menuContribution
359 locationURI="popup:eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
360 <command
361 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
362 label="%command.label.15"
363 style="push">
364 </command>
365 <command
366 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
367 label="%command.label.16"
368 style="push">
369 </command>
370 <menu
371 label="%menu.label.0">
372 <command
373 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyList"
374 label="%command.label.17"
375 style="push">
376 </command>
377 <command
378 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes"
379 label="%command.label.18"
380 style="push">
381 </command>
382 </menu>
383 <separator
384 name="eu.etaxonomy.eu.polytomousKeyView.separator2"
385 visible="true">
386 </separator>
387 <command
388 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.command.delete"
389 label="%command.label.19"
390 style="push">
391 </command>
392
393 </menuContribution>
394 </extension>
395 <extension
396 point="org.eclipse.ui.commands">
397 <command
398 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.EditHandler"
399 id="eu.etaxonomy.taxeditor.navigation.command.update.editSelection"
400 name="%command.name.1">
401 </command>
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>