Renamed classes to match the new order in PreferenceMenu
[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 </dynamic>
51 </menuContribution>
52 <menuContribution
53 locationURI="menu:eu.etaxonomy.taxeditor.menu.showView?before=eu.etaxonomy.taxeditor.editor.showViewMenu">
54 <command
55 commandId="org.eclipse.ui.views.showView"
56 label="%command.label"
57 style="push">
58 <parameter
59 name="org.eclipse.ui.views.showView.viewId"
60 value="eu.etaxonomy.taxeditor.navigation.navigator">
61 </parameter>
62 </command>
63 <command
64 commandId="org.eclipse.ui.views.showView"
65 label="%command.label.0"
66 style="push">
67 <parameter
68 name="org.eclipse.ui.views.showView.viewId"
69 value="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
70 </parameter>
71 </command>
72 </menuContribution>
73 <menuContribution
74 locationURI="popup:eu.etaxonomy.taxeditor.navigation.search.searchResultView">
75 <command
76 commandId="eu.etaxonomy.taxeditor.navigation.command.editTaxon"
77 label="%command.label.1"
78 style="push">
79 </command>
80 </menuContribution>
81 <menuContribution
82 locationURI="popup:eu.etaxonomy.taxeditor.navigation.navigatorpopup">
83 <menu
84 id="eu.etaxonomy.navigation.menu.new"
85 label="%menu.label">
86 <command
87 commandId="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
88 label="%command.label.2"
89 style="push">
90 </command>
91 <separator
92 name="eu.etaxonomy.navigation.menu.new.separator1"
93 visible="true">
94 </separator>
95 <command
96 commandId="eu.etaxonomy.taxeditor.navigation.create.classification"
97 id="eu.etaxonomy.taxeditor.navigation.create.classificationHandler"
98 label="%command.label.3"
99 style="push">
100 </command>
101 </menu>
102 <command
103 commandId="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistViewHandler"
104 icon="icons/check.png"
105 label="%command.label.4"
106 style="push">
107 <visibleWhen
108 checkEnabled="true">
109 <and>
110 <reference
111 definitionId="isChecklistEditorEnabled">
112 </reference>
113 <or>
114 <reference
115 definitionId="isClassification">
116 </reference>
117 <reference
118 definitionId="isTaxonNode">
119 </reference>
120 </or>
121 </and>
122 </visibleWhen>
123 </command>
124 <separator
125 name="taxeditor-navigation.separator1"
126 visible="true">
127 </separator>
128 <command
129 commandId="eu.etaxonomy.taxeditor.navigation.command.update.editSelection"
130 label="%command.label.5"
131 style="push">
132 <visibleWhen
133 checkEnabled="true">
134 <or>
135 <reference
136 definitionId="isTaxonNode">
137 </reference>
138 <reference
139 definitionId="isTaxonomicTree">
140 </reference>
141 </or>
142 </visibleWhen>
143 </command>
144 <command
145 commandId="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym"
146 label="%command.label.6"
147 style="push">
148 <visibleWhen
149 checkEnabled="true">
150 <reference
151 definitionId="isTaxonNode">
152 </reference>
153 </visibleWhen>
154 </command>
155 <command
156 commandId="eu.etaxonomy.taxeditor.navigation.command.update.moveTaxon"
157 label="%command.label.7"
158 style="push">
159 <visibleWhen
160 checkEnabled="true">
161 <reference
162 definitionId="isTaxonNode">
163 </reference>
164 </visibleWhen>
165 </command>
166 <separator
167 name="taxeditor-navigation.separator2"
168 visible="true">
169 </separator>
170 <!--command
171 commandId="eu.etaxonomy.taxeditor.navigation.command.createChildTaxon"
172 label="New Child"
173 style="push">
174 </command>
175 <command
176 commandId="eu.etaxonomy.taxeditor.navigation.command.quickCreateChildTaxon"
177 label="Quick Add Child "
178 style="push">
179 </command-->
180 <command
181 commandId="org.eclipse.ui.file.import"
182 label="%command.label.8"
183 style="push">
184 </command>
185 <command
186 commandId="org.eclipse.ui.file.export"
187 label="%command.label.9"
188 style="push">
189 </command>
190 <separator
191 name="taxeditor-navigation.separator4"
192 visible="true">
193 </separator>
194 <command
195 commandId="org.eclipse.ui.edit.delete"
196 label="%command.label.10"
197 style="push">
198 <visibleWhen>
199 <not>
200 <reference
201 definitionId="isSynonymNode">
202 </reference>
203 </not>
204 </visibleWhen>
205 </command>
206 <separator
207 name="taxeditor-navigation.separator5"
208 visible="true">
209 </separator>
210 <command
211 commandId="org.eclipse.ui.file.refresh"
212 label="%command.label.11"
213 style="push">
214 </command>
215 <command
216 commandId="eu.etaxonomy.taxeditor.navigation.command.copyTaxonName"
217 label="%command.label.12"
218 style="push">
219 </command>
220 </menuContribution>
221 <menuContribution
222 locationURI="toolbar:org.eclipse.ui.main.toolbar">
223 <toolbar
224 id="eu.etaxonomy.taxeditor.navigation.search.toolbar">
225 <control
226 class="eu.etaxonomy.taxeditor.navigation.search.SearchBar">
227 </control>
228 </toolbar>
229 </menuContribution>
230 <menuContribution
231 locationURI="menu:eu.etaxonomy.navigation.menu.new">
232 <command
233 commandId="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
234 label="%command.label.13"
235 style="push">
236 </command>
237 <separator
238 name="eu.etaxonomy.navigation.menu.new.separator1"
239 visible="true">
240 </separator>
241 <command
242 commandId="eu.etaxonomy.taxeditor.navigation.create.classification"
243 id="eu.etaxonomy.taxeditor.navigation.create.classificationHandler"
244 label="%command.label.14"
245 style="push">
246 </command>
247 </menuContribution>
248 <menuContribution
249 locationURI="popup:eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
250 <command
251 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
252 label="%command.label.15"
253 style="push">
254 </command>
255 <command
256 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
257 label="%command.label.16"
258 style="push">
259 </command>
260 <menu
261 label="%menu.label.0">
262 <command
263 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyList"
264 label="%command.label.17"
265 style="push">
266 </command>
267 <command
268 commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes"
269 label="%command.label.18"
270 style="push">
271 </command>
272 </menu>
273 <separator
274 name="eu.etaxonomy.eu.polytomousKeyView.separator2"
275 visible="true">
276 </separator>
277 <command
278 commandId="org.eclipse.ui.edit.delete"
279 label="%command.label.19"
280 style="push">
281 </command>
282
283 </menuContribution>
284 </extension>
285 <extension
286 point="org.eclipse.ui.commands">
287 <command
288 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.EditHandler"
289 id="eu.etaxonomy.taxeditor.navigation.command.update.editSelection"
290 name="%command.name.1">
291 </command>
292 <command
293 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.MoveTaxonHandler"
294 id="eu.etaxonomy.taxeditor.navigation.command.update.moveTaxon"
295 name="%command.name.2">
296 </command>
297 <command
298 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.RefreshTreeHandler"
299 id="org.eclipse.ui.file.refresh"
300 name="%command.name.3">
301 </command>
302 <command
303 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.CopyHandler"
304 id="eu.etaxonomy.taxeditor.navigation.command.copyTaxonName"
305 name="%command.name.4">
306 </command>
307 <command
308 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.ChangeAcceptedTaxonToSynonymHandler"
309 id="eu.etaxonomy.taxeditor.navigator.command.update.changeAcceptedToSynonym"
310 name="%command.name.5">
311 </command>
312 <command
313 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewClassificationHandler"
314 id="eu.etaxonomy.taxeditor.navigation.create.classification"
315 name="%command.name.0">
316 </command>
317 <command
318 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewTaxonNodeHandler"
319 id="eu.etaxonomy.taxeditor.navigation.command.create.taxonNode"
320 name="%command.name">
321 </command>
322 <command
323 defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.NewPolytomousKeyHandler"
324 id="eu.etaxonomy.taxeditor.navigation.key.polytomous.newKey"
325 name="%command.name.6">
326 </command>
327 <command
328 defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.EditPolytomousKeyNodesHandler"
329 id="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes"
330 name="%command.name.7">
331 </command>
332 <command
333 defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RefreshPolytomousKeyListHandler"
334 id="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyList"
335 name="%command.name.8">
336 </command>
337 <command
338 defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.RefreshPolytomousKeyNodesHandler"
339 id="eu.etaxonomy.taxeditor.navigation.key.polytomous.refreshKeyNodes"
340 name="%command.name.9">
341 </command>
342 </extension>
343 <extension
344 point="org.eclipse.ui.handlers">
345 <handler
346 class="eu.etaxonomy.taxeditor.navigation.navigator.handler.DeleteHandler"
347 commandId="org.eclipse.ui.edit.delete">
348 <activeWhen>
349 <with
350 variable="activePartId">
351 <equals
352 value="eu.etaxonomy.taxeditor.navigation.navigator">
353 </equals>
354 </with>
355 </activeWhen>
356 </handler>
357 <handler
358 class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.DeleteHandler"
359 commandId="org.eclipse.ui.edit.delete">
360 <activeWhen>
361 <with
362 variable="activePartId">
363 <equals
364 value="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
365 </equals>
366 </with>
367 </activeWhen>
368 </handler>
369 </extension>
370
371
372 <!--extension
373 point="org.eclipse.ui.navigator.viewer">
374 <viewer
375 viewerId="org.eclipse.ui.examples.navigator.view">
376 </viewer>
377 <viewerContentBinding
378 viewerId="org.eclipse.ui.examples.navigator.view">
379 <includes>
380 <contentExtension
381 pattern="org.eclipse.ui.navigator.resourceContent" />
382 <contentExtension
383 pattern="org.eclipse.ui.navigator.resources.filters.*" />
384 </includes>
385 </viewerContentBinding>
386 <viewerActionBinding
387 viewerId="org.eclipse.ui.examples.navigator.view">
388 <includes>
389 <actionExtension
390 pattern="org.eclipse.ui.navigator.resources.*">
391 </actionExtension>
392 </includes>
393 </viewerActionBinding>
394 </extension>
395 <extension
396 point="org.eclipse.ui.navigator.navigatorContent">
397 <commonFilter
398 id="org.eclipse.ui.examples.navigator.filters.hideNonJavaProjects"
399 name="Hide non-Java projects">
400 <filterExpression>
401 <not>
402 <adapt
403 type="org.eclipse.core.resources.IProject">
404 <test
405 property="org.eclipse.core.resources.projectNature"
406 value="org.eclipse.jdt.core.javanature">
407 </test>
408 </adapt>
409 </not>
410 </filterExpression>
411 </commonFilter>
412 </extension-->
413
414
415
416
417
418
419 <extension
420 point="org.eclipse.ui.views">
421 <view
422 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator"
423 icon="icons/edit_16x16.gif"
424 id="eu.etaxonomy.taxeditor.navigation.navigator"
425 name="%view.name.2"/>
426 </extension>
427 <extension
428 point="org.eclipse.ui.navigator.navigatorContent">
429 <navigatorContent
430 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationContentProvider"
431 id="eu.etaxonomy.taxeditor.navigation.classificationContent"
432 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationLabelProvider"
433 name="%navigatorContent.name">
434 <triggerPoints>
435 <instanceof
436 value="eu.etaxonomy.taxeditor.navigation.navigator.Root">
437 </instanceof>
438 </triggerPoints>
439 <possibleChildren>
440 <instanceof
441 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
442 </instanceof>
443 </possibleChildren>
444 <dropAssistant
445 class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
446 id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
447 <possibleDropTargets></possibleDropTargets>
448 </dropAssistant>
449 </navigatorContent>
450 <navigatorContent
451 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeContentProvider"
452 id="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"
453 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeLabelProvider"
454 name="%navigatorContent.name.0">
455 <triggerPoints>
456 <or>
457 <instanceof
458 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
459 </instanceof>
460 <and>
461 <instanceof
462 value="eu.etaxonomy.cdm.model.taxon.Classification">
463 </instanceof>
464 <test
465 forcePluginActivation="true"
466 property="eu.etaxonomy.taxeditor.propertytests.hasTaxa">
467 </test>
468 </and>
469 </or>
470 </triggerPoints>
471 <dropAssistant
472 class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
473 id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
474 <possibleDropTargets>
475 <or>
476 <instanceof
477 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
478 </instanceof>
479 <instanceof
480 value="eu.etaxonomy.cdm.model.taxon.Classification">
481 </instanceof>
482 </or>
483 </possibleDropTargets>
484 </dropAssistant>
485 <possibleChildren>
486 <instanceof
487 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
488 </instanceof>
489 </possibleChildren>
490 </navigatorContent>
491 <navigatorContent
492 activeByDefault="false"
493 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymContentProvider"
494 id="eu.etaxonomy.taxeditor.navigation.synonymContent"
495 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymLabelProvider"
496 name="%navigatorContent.name.1"
497 priority="highest">
498 <triggerPoints>
499 <and>
500 <instanceof
501 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
502 </instanceof>
503 <test
504 forcePluginActivation="true"
505 property="eu.etaxonomy.taxeditor.propertytests.hasSynonyms">
506 </test>
507 </and>
508 </triggerPoints>
509 <possibleChildren>
510 <instanceof
511 value="eu.etaxonomy.cdm.model.taxon.Synonym">
512 </instanceof>
513 </possibleChildren>
514 </navigatorContent>
515 </extension>
516 <extension
517 point="org.eclipse.ui.navigator.viewer">
518 <viewer
519 viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
520 <popupMenu
521 id="eu.etaxonomy.taxeditor.navigation.navigatorpopup">
522 </popupMenu>
523 </viewer>
524 <viewerContentBinding viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
525 <includes>
526 <contentExtension
527 pattern="eu.etaxonomy.taxeditor.navigation.classificationContent">
528 </contentExtension>
529 <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"/>
530 <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper"/>
531 <contentExtension
532 pattern="eu.etaxonomy.taxeditor.navigation.synonymContent">
533 </contentExtension>
534 </includes>
535 </viewerContentBinding>
536 <!--viewer
537 popupMenuId="eu.etaxonomy.taxeditor.navigation.navigator#PopupMenu"
538 viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
539 <options>
540 <property
541 name="org.eclipse.ui.navigator.hideAvailableExtensionsTab"
542 value="true">
543 </property>
544 </options>
545 </viewer-->
546 <dragAssistant
547 class="eu.etaxonomy.taxeditor.navigation.navigator.dnd.TaxonNavigatorDragAdapterAssistant"
548 viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
549 </dragAssistant>
550 </extension>
551 <extension
552 point="org.eclipse.ui.navigator.linkHelper">
553 <linkHelper
554 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonLinkHelper"
555 id="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper">
556 <selectionEnablement>
557 <instanceof value="eu.etaxonomy.cdm.model.taxon.TaxonNode"/>
558 </selectionEnablement>
559 <editorInputEnablement>
560 <instanceof value="eu.etaxonomy.taxeditor.editor.TaxonEditorInput"/>
561 </editorInputEnablement>
562 </linkHelper>
563 </extension>
564 <extension
565 point="org.eclipse.core.runtime.adapters">
566 <factory
567 adaptableType="org.eclipse.core.internal.resources.Workspace"
568 class="eu.etaxonomy.taxeditor.navigation.WorkbenchUndoContextAdapterFactory">
569 <adapter
570 type="org.eclipse.core.commands.operations.IUndoContext">
571 </adapter>
572 </factory>
573 </extension>
574 <extension
575 point="org.eclipse.core.expressions.propertyTesters">
576 <propertyTester
577 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
578 id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
579 namespace="eu.etaxonomy.taxeditor.propertytests"
580 properties="hasSynonyms"
581 type="eu.etaxonomy.cdm.model.taxon.TaxonNode">
582 </propertyTester>
583 <propertyTester
584 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
585 id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
586 namespace="eu.etaxonomy.taxeditor.propertytests"
587 properties="hasTaxa"
588 type="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
589 </propertyTester>
590 <propertyTester
591 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
592 id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
593 namespace="eu.etaxonomy.taxeditor.propertytests"
594 properties="hasTaxa"
595 type="eu.etaxonomy.cdm.model.taxon.Classification">
596 </propertyTester>
597 <propertyTester
598 class="eu.etaxonomy.taxeditor.preference.PreferencePropertyTester"
599 id="eu.etaxonomy.taxeditor.preferences.propertyTester"
600 namespace="eu.etaxonomy.taxeditor.preferences.propertyTester"
601 properties="isChecklistEditorEnabled"
602 type="org.eclipse.jface.viewers.IStructuredSelection">
603 </propertyTester>
604 </extension>
605 <extension
606 point="org.eclipse.core.expressions.definitions">
607 <definition
608 id="isTaxonNode">
609 <with
610 variable="selection">
611 <iterate
612 ifEmpty="false">
613 <instanceof
614 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
615 </instanceof>
616 </iterate>
617 </with>
618 </definition>
619 <definition
620 id="isSynonymNode">
621 <with
622 variable="selection">
623 <iterate
624 ifEmpty="false">
625 <instanceof
626 value="eu.etaxonomy.cdm.model.taxon.Synonym">
627 </instanceof>
628 </iterate>
629 </with>
630 </definition>
631 <definition
632 id="isClassification">
633 <with
634 variable="selection">
635 <iterate
636 ifEmpty="false">
637 <instanceof
638 value="eu.etaxonomy.cdm.model.taxon.Classification">
639 </instanceof>
640 </iterate>
641 </with>
642 </definition>
643 <definition
644 id="isChecklistEditorEnabled">
645 <with
646 variable="selection">
647 <test
648 property="eu.etaxonomy.taxeditor.preferences.propertyTester.isChecklistEditorEnabled">
649 </test>
650 </with>
651 </definition>
652 </extension>
653 </plugin>