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