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