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