merging in latest changes from trunk
[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.edit"
219 label="Edit"
220 style="push">
221 </command>
222 <separator
223 name="eu.etaxonomy.eu.polytomousKeyView.separator"
224 visible="true">
225 </separator>
226 <command
227 commandId="org.eclipse.ui.edit.delete"
228 label="Delete"
229 style="push">
230 </command>
231 </menuContribution>
232 </extension>
233 <extension
234 point="org.eclipse.ui.commands">
235 <command
236 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewTaxonNodeHandler"
237 id="eu.etaxonomy.taxeditor.navigation.newTaxonNode"
238 name="New Taxon Node">
239 </command>
240 <command
241 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.NewClassificationHandler"
242 id="eu.etaxonomy.taxeditor.navigation.newClassification"
243 name="New Classification">
244 </command>
245 </extension>
246 <extension
247 point="org.eclipse.ui.commands">
248 <command
249 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.EditHandler"
250 id="eu.etaxonomy.taxeditor.navigation.command.editSelection"
251 name="Edit">
252 </command>
253 <command
254 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.MoveTaxonHandler"
255 id="eu.etaxonomy.taxeditor.navigation.command.moveTaxon"
256 name="Move Taxon">
257 </command>
258 <command
259 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.RefreshTreeHandler"
260 id="org.eclipse.ui.file.refresh"
261 name="Refresh">
262 </command>
263 <command
264 defaultHandler="eu.etaxonomy.taxeditor.navigation.navigator.handler.CopyHandler"
265 id="eu.etaxonomy.taxeditor.navigation.command.copyTaxonName"
266 name="Copy">
267 </command>
268 </extension>
269 <extension
270 point="org.eclipse.ui.commands">
271 <command
272 defaultHandler="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.EditHandler"
273 id="eu.etaxonomy.taxeditor.navigation.key.polytomous.edit"
274 name="Edit Polytomous Key">
275 </command>
276 </extension>
277 <extension
278 point="org.eclipse.ui.handlers">
279 <handler
280 class="eu.etaxonomy.taxeditor.navigation.navigator.handler.DeleteHandler"
281 commandId="org.eclipse.ui.edit.delete">
282 <activeWhen>
283 <with
284 variable="activePartId">
285 <equals
286 value="eu.etaxonomy.taxeditor.navigation.navigator">
287 </equals>
288 </with>
289 </activeWhen>
290 </handler>
291 <handler
292 class="eu.etaxonomy.taxeditor.navigation.key.polytomous.handler.DeleteHandler"
293 commandId="org.eclipse.ui.edit.delete">
294 <activeWhen>
295 <with
296 variable="activePartId">
297 <equals
298 value="eu.etaxonomy.taxeditor.navigation.key.polytomous.polytomousKeyViewPart">
299 </equals>
300 </with>
301 </activeWhen>
302 </handler>
303 </extension>
304
305
306 <!--extension
307 point="org.eclipse.ui.navigator.viewer">
308 <viewer
309 viewerId="org.eclipse.ui.examples.navigator.view">
310 </viewer>
311 <viewerContentBinding
312 viewerId="org.eclipse.ui.examples.navigator.view">
313 <includes>
314 <contentExtension
315 pattern="org.eclipse.ui.navigator.resourceContent" />
316 <contentExtension
317 pattern="org.eclipse.ui.navigator.resources.filters.*" />
318 </includes>
319 </viewerContentBinding>
320 <viewerActionBinding
321 viewerId="org.eclipse.ui.examples.navigator.view">
322 <includes>
323 <actionExtension
324 pattern="org.eclipse.ui.navigator.resources.*">
325 </actionExtension>
326 </includes>
327 </viewerActionBinding>
328 </extension>
329 <extension
330 point="org.eclipse.ui.navigator.navigatorContent">
331 <commonFilter
332 id="org.eclipse.ui.examples.navigator.filters.hideNonJavaProjects"
333 name="Hide non-Java projects">
334 <filterExpression>
335 <not>
336 <adapt
337 type="org.eclipse.core.resources.IProject">
338 <test
339 property="org.eclipse.core.resources.projectNature"
340 value="org.eclipse.jdt.core.javanature">
341 </test>
342 </adapt>
343 </not>
344 </filterExpression>
345 </commonFilter>
346 </extension-->
347
348
349
350
351
352
353 <extension
354 point="org.eclipse.ui.views">
355 <view
356 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator"
357 icon="icons/edit_16x16.gif"
358 id="eu.etaxonomy.taxeditor.navigation.navigator"
359 name="Taxonomic Tree"/>
360 </extension>
361 <extension
362 point="org.eclipse.ui.navigator.navigatorContent">
363 <navigatorContent
364 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationContentProvider"
365 id="eu.etaxonomy.taxeditor.navigation.classificationContent"
366 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationLabelProvider"
367 name="Classification">
368 <triggerPoints>
369 <instanceof
370 value="eu.etaxonomy.taxeditor.navigation.navigator.Root">
371 </instanceof>
372 </triggerPoints>
373 <possibleChildren>
374 <instanceof
375 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
376 </instanceof>
377 </possibleChildren>
378 <dropAssistant
379 class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
380 id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
381 <possibleDropTargets></possibleDropTargets>
382 </dropAssistant>
383 </navigatorContent>
384 <navigatorContent
385 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeContentProvider"
386 id="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"
387 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeLabelProvider"
388 name="TaxonNode">
389 <triggerPoints>
390 <or>
391 <instanceof
392 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
393 </instanceof>
394 <and>
395 <instanceof
396 value="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
397 </instanceof>
398 <test
399 forcePluginActivation="true"
400 property="eu.etaxonomy.taxeditor.propertytests.hasTaxa">
401 </test>
402 </and>
403 </or>
404 </triggerPoints>
405 <dropAssistant
406 class="eu.etaxonomy.taxeditor.navigation.navigator.TreeNodeDropAdapterAssistant"
407 id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
408 <possibleDropTargets>
409 <or>
410 <instanceof
411 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
412 </instanceof>
413 <instanceof
414 value="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
415 </instanceof>
416 </or>
417 </possibleDropTargets>
418 </dropAssistant>
419 <possibleChildren>
420 <instanceof
421 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
422 </instanceof>
423 </possibleChildren>
424 </navigatorContent>
425 <navigatorContent
426 activeByDefault="false"
427 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymContentProvider"
428 id="eu.etaxonomy.taxeditor.navigation.synonymContent"
429 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymLabelProvider"
430 name="Synonyms (experimental)"
431 priority="highest">
432 <triggerPoints>
433 <and>
434 <instanceof
435 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
436 </instanceof>
437 <test
438 forcePluginActivation="true"
439 property="eu.etaxonomy.taxeditor.propertytests.hasSynonyms">
440 </test>
441 </and>
442 </triggerPoints>
443 <possibleChildren>
444 <instanceof
445 value="eu.etaxonomy.cdm.model.taxon.Synonym">
446 </instanceof>
447 </possibleChildren>
448 </navigatorContent>
449 </extension>
450 <extension
451 point="org.eclipse.ui.navigator.viewer">
452 <viewer
453 viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
454 <popupMenu
455 id="eu.etaxonomy.taxeditor.navigation.navigatorpopup">
456 </popupMenu>
457 </viewer>
458 <viewerContentBinding viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
459 <includes>
460 <contentExtension
461 pattern="eu.etaxonomy.taxeditor.navigation.classificationContent">
462 </contentExtension>
463 <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonNodeContent"/>
464 <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper"/>
465 <contentExtension
466 pattern="eu.etaxonomy.taxeditor.navigation.synonymContent">
467 </contentExtension>
468 </includes>
469 </viewerContentBinding>
470 <!--viewer
471 popupMenuId="eu.etaxonomy.taxeditor.navigation.navigator#PopupMenu"
472 viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
473 <options>
474 <property
475 name="org.eclipse.ui.navigator.hideAvailableExtensionsTab"
476 value="true">
477 </property>
478 </options>
479 </viewer-->
480 </extension>
481 <extension
482 point="org.eclipse.ui.navigator.linkHelper">
483 <linkHelper
484 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonLinkHelper"
485 id="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper">
486 <selectionEnablement>
487 <instanceof value="eu.etaxonomy.cdm.model.taxon.TaxonNode"/>
488 </selectionEnablement>
489 <editorInputEnablement>
490 <instanceof value="eu.etaxonomy.taxeditor.editor.TaxonEditorInput"/>
491 </editorInputEnablement>
492 </linkHelper>
493 </extension>
494 <extension
495 point="org.eclipse.core.runtime.adapters">
496 <factory
497 adaptableType="org.eclipse.core.internal.resources.Workspace"
498 class="eu.etaxonomy.taxeditor.navigation.WorkbenchUndoContextAdapterFactory">
499 <adapter
500 type="org.eclipse.core.commands.operations.IUndoContext">
501 </adapter>
502 </factory>
503 </extension>
504 <extension
505 point="org.eclipse.core.expressions.propertyTesters">
506 <propertyTester
507 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
508 id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
509 namespace="eu.etaxonomy.taxeditor.propertytests"
510 properties="hasSynonyms"
511 type="eu.etaxonomy.cdm.model.taxon.TaxonNode">
512 </propertyTester>
513 <propertyTester
514 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
515 id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
516 namespace="eu.etaxonomy.taxeditor.propertytests"
517 properties="hasTaxa"
518 type="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
519 </propertyTester>
520 </extension>
521 <extension
522 point="org.eclipse.core.expressions.definitions">
523 <definition
524 id="isTaxonNode">
525 <with
526 variable="selection">
527 <iterate>
528 <instanceof
529 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
530 </instanceof>
531 </iterate>
532 </with>
533 </definition>
534 <definition
535 id="isTaxonomicTree">
536 <with
537 variable="selection">
538 <iterate>
539 <instanceof
540 value="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
541 </instanceof>
542 </iterate>
543 </with>
544 </definition>
545 <definition
546 id="isSynonymNode">
547 <with
548 variable="selection">
549 <iterate>
550 <instanceof
551 value="eu.etaxonomy.cdm.model.taxon.Synonym">
552 </instanceof>
553 </iterate>
554 </with>
555 </definition>
556 </extension>
557 </plugin>