fixes 1160 finally
[taxeditor.git] / 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/edit_16x16.gif"
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/edit_16x16.gif"
27 id="eu.etaxonomy.taxeditor.navigation.navigator"
28 name="Taxonomic Tree"
29 restorable="true">
30 </view>
31 </extension>
32 <extension
33 point="org.eclipse.ui.menus">
34 <menuContribution
35 locationURI="menu:org.eclipse.ui.main.menu.file">
36 <separator
37 name="eu.etaxonomy.taxeditor.navigation.recentnames.separator"
38 visible="true">
39 </separator>
40 <dynamic
41 class="eu.etaxonomy.taxeditor.navigation.RecentNamesContributionItem"
42 id="eu.etaxonomy.taxeditor.navigation.recentnames">
43 </dynamic>
44 </menuContribution>
45 <menuContribution
46 locationURI="menu:eu.etaxonomy.taxeditor.menu.showView">
47 <command
48 commandId="eu.etaxonomy.taxeditor.navigation.command.showTaxonomicTreeView"
49 label="Taxonomic Tree"
50 style="push">
51 </command>
52 </menuContribution>
53 <menuContribution
54 locationURI="popup:eu.etaxonomy.taxeditor.navigation.search.searchResultView">
55 <command
56 commandId="eu.etaxonomy.taxeditor.navigation.command.editTaxon"
57 label="Edit"
58 style="push">
59 </command>
60 </menuContribution>
61 <menuContribution
62 locationURI="popup:eu.etaxonomy.taxeditor.navigation.navigatorpopup">
63 <menu
64 id="eu.etaxonomy.navigation.menu.new"
65 label="New">
66 <command
67 commandId="eu.etaxonomy.taxeditor.navigation.newTaxonNode"
68 label="Taxon Node"
69 style="push">
70 </command>
71 <separator
72 name="eu.etaxonomy.navigation.menu.new.separator1"
73 visible="true">
74 </separator>
75 <command
76 commandId="eu.etaxonomy.taxeditor.navigation.newTaxonomicTree"
77 id="eu.etaxonomy.taxeditor.navigation.menu.nu.new.taxonomicTree"
78 label="Taxonomic Tree"
79 style="push">
80 </command>
81 </menu>
82 <separator
83 name="taxeditor-navigation.separator1"
84 visible="true">
85 </separator>
86 <command
87 commandId="eu.etaxonomy.taxeditor.navigation.command.editTaxon"
88 label="Edit"
89 style="push">
90 <separator
91 name="taxeditor-navigation.separator4">
92 </separator>
93 <visibleWhen>
94 <reference
95 definitionId="isTaxonNode">
96 </reference>
97 </visibleWhen>
98 </command>
99 <command
100 commandId="eu.etaxonomy.taxeditor.navigation.command.moveTaxon"
101 label="Move Taxon (with Subtree)"
102 style="push">
103 <visibleWhen>
104 <reference
105 definitionId="isTaxonNode">
106 </reference>
107 </visibleWhen>
108 </command>
109 <separator
110 name="taxeditor-navigation.separator2"
111 visible="true">
112 </separator>
113 <!--command
114 commandId="eu.etaxonomy.taxeditor.navigation.command.createChildTaxon"
115 label="New Child"
116 style="push">
117 </command>
118 <command
119 commandId="eu.etaxonomy.taxeditor.navigation.command.quickCreateChildTaxon"
120 label="Quick Add Child "
121 style="push">
122 </command-->
123 <command
124 commandId="org.eclipse.ui.file.import"
125 label="Import..."
126 style="push">
127 </command>
128 <command
129 commandId="org.eclipse.ui.file.export"
130 label="Export..."
131 style="push">
132 </command>
133 <separator
134 name="taxeditor-navigation.separator4"
135 visible="true">
136 </separator>
137 <command
138 commandId="org.eclipse.ui.edit.delete"
139 label="Delete"
140 style="push">
141 <visibleWhen>
142 <not>
143 <reference
144 definitionId="isSynonymNode">
145 </reference>
146 </not>
147 </visibleWhen>
148 </command>
149 <separator
150 name="taxeditor-navigation.separator5"
151 visible="true">
152 </separator>
153 <command
154 commandId="org.eclipse.ui.file.refresh"
155 label="Refresh Tree"
156 style="push">
157 </command>
158 </menuContribution>
159 <menuContribution
160 locationURI="toolbar:org.eclipse.ui.main.toolbar">
161 <toolbar
162 id="eu.etaxonomy.taxeditor.navigation.search.toolbar">
163 <control
164 class="eu.etaxonomy.taxeditor.navigation.search.SearchBar">
165 </control>
166 </toolbar>
167 </menuContribution>
168 <menuContribution
169 locationURI="menu:eu.etaxonomy.navigation.menu.new">
170 <command
171 commandId="eu.etaxonomy.taxeditor.navigation.newTaxonNode"
172 label="Taxon Node"
173 style="push">
174 </command>
175 <separator
176 name="eu.etaxonomy.navigation.menu.new.separator1"
177 visible="true">
178 </separator>
179 <command
180 commandId="eu.etaxonomy.taxeditor.navigation.newTaxonomicTree"
181 id="eu.etaxonomy.taxeditor.navigation.menu.nu.new.taxonomicTree"
182 label="Taxonomic Tree"
183 style="push">
184 </command>
185 </menuContribution>
186 </extension>
187 <extension
188 point="org.eclipse.ui.commands">
189 <command
190 defaultHandler="eu.etaxonomy.taxeditor.navigation.handler.NewTaxonNodeHandler"
191 id="eu.etaxonomy.taxeditor.navigation.newTaxonNode"
192 name="New Taxon Node">
193 </command>
194 <command
195 defaultHandler="eu.etaxonomy.taxeditor.navigation.handler.NewTaxonomicTreeHandler"
196 id="eu.etaxonomy.taxeditor.navigation.newTaxonomicTree"
197 name="New Taxonomic Tree">
198 </command>
199 </extension>
200 <extension
201 point="org.eclipse.ui.commands">
202 <command
203 defaultHandler="eu.etaxonomy.taxeditor.navigation.handler.EditTaxonHandler"
204 id="eu.etaxonomy.taxeditor.navigation.command.editTaxon"
205 name="Edit Taxon">
206 </command>
207 <command
208 defaultHandler="eu.etaxonomy.taxeditor.navigation.handler.MoveTaxonHandler"
209 id="eu.etaxonomy.taxeditor.navigation.command.moveTaxon"
210 name="Move Taxon">
211 </command>
212 <command
213 defaultHandler="eu.etaxonomy.taxeditor.navigation.handler.RefreshTreeHandler"
214 id="org.eclipse.ui.file.refresh"
215 name="Refresh">
216 </command>
217 </extension>
218 <extension
219 point="org.eclipse.ui.handlers">
220 <handler
221 class="eu.etaxonomy.taxeditor.navigation.handler.DeleteTreeNodeHandler"
222 commandId="org.eclipse.ui.edit.delete">
223 <enabledWhen>
224 <with
225 variable="activePartId">
226 <equals
227 value="eu.etaxonomy.taxeditor.navigation.navigator">
228 </equals>
229 </with>
230 </enabledWhen>
231 </handler>
232 </extension>
233 <extension
234 point="org.eclipse.ui.commands">
235 <command
236 defaultHandler="eu.etaxonomy.taxeditor.navigation.handler.ShowTaxonomicTreeViewHandler"
237 id="eu.etaxonomy.taxeditor.navigation.command.showTaxonomicTreeView"
238 name="Show Taxonomic Tree View">
239 </command>
240 </extension>
241
242 <extension
243 point="org.eclipse.ui.themes">
244 <themeElementCategory
245 id="eu.etaxonomy.taxeditor.preferences.searchResult"
246 label="Search Result">
247 <description>
248 Colors and fonts used to display the search result.
249 </description>
250 </themeElementCategory>
251 <fontDefinition
252 categoryId="eu.etaxonomy.taxeditor.preferences.searchResult"
253 id="eu.etaxonomy.taxeditor.preferences.searchResult.fontSynonym"
254 isEditable="true"
255 label="Synonym font">
256 <fontValue
257 value="Lucida Sans-italic-11">
258 </fontValue>
259 <description>
260 The font that is used for synonyms in the search result list.
261 </description>
262 </fontDefinition>
263 <fontDefinition
264 categoryId="eu.etaxonomy.taxeditor.preferences.searchResult"
265 id="eu.etaxonomy.taxeditor.preferences.searchResult.fontAccepted"
266 isEditable="true"
267 label="Accepted font">
268 <description>
269 The font that is used for accepted taxa in the search result list.
270 </description>
271 <fontValue
272 value="Lucida Sans-bold-11">
273 </fontValue>
274 </fontDefinition>
275 <fontDefinition
276 categoryId="eu.etaxonomy.taxeditor.preferences.searchResult"
277 id="eu.etaxonomy.taxeditor.preferences.searchResult.fontDefault"
278 isEditable="true"
279 label="Other font">
280 <description>
281 The font used by default in the search result list.
282 </description>
283 <fontValue
284 value="Lucida Grande-11">
285 </fontValue>
286 </fontDefinition>
287 </extension>
288 <!--extension
289 point="org.eclipse.ui.navigator.viewer">
290 <viewer
291 viewerId="org.eclipse.ui.examples.navigator.view">
292 </viewer>
293 <viewerContentBinding
294 viewerId="org.eclipse.ui.examples.navigator.view">
295 <includes>
296 <contentExtension
297 pattern="org.eclipse.ui.navigator.resourceContent" />
298 <contentExtension
299 pattern="org.eclipse.ui.navigator.resources.filters.*" />
300 </includes>
301 </viewerContentBinding>
302 <viewerActionBinding
303 viewerId="org.eclipse.ui.examples.navigator.view">
304 <includes>
305 <actionExtension
306 pattern="org.eclipse.ui.navigator.resources.*">
307 </actionExtension>
308 </includes>
309 </viewerActionBinding>
310 </extension>
311 <extension
312 point="org.eclipse.ui.navigator.navigatorContent">
313 <commonFilter
314 id="org.eclipse.ui.examples.navigator.filters.hideNonJavaProjects"
315 name="Hide non-Java projects">
316 <filterExpression>
317 <not>
318 <adapt
319 type="org.eclipse.core.resources.IProject">
320 <test
321 property="org.eclipse.core.resources.projectNature"
322 value="org.eclipse.jdt.core.javanature">
323 </test>
324 </adapt>
325 </not>
326 </filterExpression>
327 </commonFilter>
328 </extension-->
329
330
331
332
333
334
335 <extension
336 point="org.eclipse.ui.views">
337 <view
338 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator"
339 icon="icons/edit_16x16.gif"
340 id="eu.etaxonomy.taxeditor.navigation.navigator"
341 name="Taxonomic Tree"/>
342 </extension>
343 <extension
344 point="org.eclipse.ui.navigator.navigatorContent">
345 <navigatorContent
346 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonomicTreeContentProvider"
347 id="eu.etaxonomy.taxeditor.navigation.taxonomictreecontent"
348 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonomicTreeLabelProvider"
349 name="Taxonomic Tree">
350 <triggerPoints>
351 <instanceof
352 value="eu.etaxonomy.taxeditor.navigation.navigator.Root">
353 </instanceof>
354 </triggerPoints>
355 <possibleChildren>
356 <instanceof
357 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
358 </instanceof>
359 </possibleChildren>
360 </navigatorContent>
361 <navigatorContent
362 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeContentProvider"
363 id="eu.etaxonomy.taxeditor.navigation.taxoncontent"
364 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeLabelProvider"
365 name="Taxon">
366 <triggerPoints>
367 <or>
368 <instanceof
369 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
370 </instanceof>
371 <and>
372 <instanceof
373 value="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
374 </instanceof>
375 <test
376 forcePluginActivation="true"
377 property="eu.etaxonomy.taxeditor.propertytests.hasTaxa">
378 </test>
379 </and>
380 </or>
381 </triggerPoints>
382 <dropAssistant
383 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonDropAdapterAssistant"
384 id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
385 <possibleDropTargets>
386 <or>
387 <instanceof
388 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
389 </instanceof>
390 <instanceof
391 value="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
392 </instanceof>
393 </or>
394 </possibleDropTargets>
395 </dropAssistant>
396 <possibleChildren>
397 <instanceof
398 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
399 </instanceof>
400 </possibleChildren>
401 <actionProvider
402 class="eu.etaxonomy.taxeditor.navigation.navigator.OpenTaxonActionProvider"
403 id="eu.etaxonomy.taxeditor.navigation.action.open"
404 overrides="org.eclipse.ui.navigator.resources.OpenActions">
405 <enablement>
406 <instanceof
407 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
408 </instanceof>
409 </enablement>
410 </actionProvider>
411 </navigatorContent>
412 <navigatorContent
413 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymContentProvider"
414 id="eu.etaxonomy.taxeditor.navigation.synonymcontent"
415 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymLabelProvider"
416 name="Synonyms"
417 priority="highest">
418 <triggerPoints>
419 <and>
420 <instanceof
421 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
422 </instanceof>
423 <test
424 forcePluginActivation="true"
425 property="eu.etaxonomy.taxeditor.propertytests.hasSynonyms">
426 </test>
427 </and>
428 </triggerPoints>
429 <possibleChildren>
430 <instanceof
431 value="eu.etaxonomy.cdm.model.taxon.Synonym">
432 </instanceof>
433 </possibleChildren>
434 </navigatorContent>
435 </extension>
436 <extension
437 point="org.eclipse.ui.navigator.viewer">
438 <viewer
439 viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
440 <popupMenu
441 id="eu.etaxonomy.taxeditor.navigation.navigatorpopup">
442 </popupMenu>
443 </viewer>
444 <viewerContentBinding viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
445 <includes>
446 <contentExtension
447 pattern="eu.etaxonomy.taxeditor.navigation.taxonomictreecontent">
448 </contentExtension>
449 <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxoncontent"/>
450 <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper"/>
451 <contentExtension
452 pattern="eu.etaxonomy.taxeditor.navigation.synonymcontent">
453 </contentExtension>
454 </includes>
455 </viewerContentBinding>
456 <!--viewer
457 popupMenuId="eu.etaxonomy.taxeditor.navigation.navigator#PopupMenu"
458 viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
459 <options>
460 <property
461 name="org.eclipse.ui.navigator.hideAvailableExtensionsTab"
462 value="true">
463 </property>
464 </options>
465 </viewer-->
466 </extension>
467 <extension
468 point="org.eclipse.ui.navigator.linkHelper">
469 <linkHelper
470 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonLinkHelper"
471 id="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper">
472 <selectionEnablement>
473 <instanceof value="eu.etaxonomy.cdm.model.taxon.TaxonNode"/>
474 </selectionEnablement>
475 <editorInputEnablement>
476 <instanceof value="eu.etaxonomy.taxeditor.editor.TaxonEditorInput"/>
477 </editorInputEnablement>
478 </linkHelper>
479 </extension>
480 <extension
481 point="org.eclipse.core.runtime.adapters">
482 <factory
483 adaptableType="org.eclipse.core.internal.resources.Workspace"
484 class="eu.etaxonomy.taxeditor.navigation.WorkbenchUndoContextAdapterFactory">
485 <adapter
486 type="org.eclipse.core.commands.operations.IUndoContext">
487 </adapter>
488 </factory>
489 </extension>
490 <extension
491 point="org.eclipse.core.expressions.propertyTesters">
492 <propertyTester
493 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
494 id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
495 namespace="eu.etaxonomy.taxeditor.propertytests"
496 properties="hasSynonyms"
497 type="eu.etaxonomy.cdm.model.taxon.TaxonNode">
498 </propertyTester>
499 <propertyTester
500 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
501 id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
502 namespace="eu.etaxonomy.taxeditor.propertytests"
503 properties="hasTaxa"
504 type="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
505 </propertyTester>
506 </extension>
507 <extension
508 point="org.eclipse.ui.newWizards">
509 <category
510 id="eu.etaxonomy.taxeditor.new.category.cdm"
511 name="CDM">
512 </category>
513 <!--primaryWizard
514 id="taxeditor-navigation.wizard1">
515 </primaryWizard-->
516 <wizard
517 category="eu.etaxonomy.taxeditor.new.category.cdm"
518 class="eu.etaxonomy.taxeditor.newWizards.NewTaxonomicTreeWizard"
519 hasPages="true"
520 icon="icons/tree_icon_small.jpg"
521 id="eu.etaxonomy.taxeditor.new.taxonomicTree"
522 name="Taxonomic Tree">
523 </wizard>
524 <wizard
525 category="eu.etaxonomy.taxeditor.new.category.cdm"
526 class="eu.etaxonomy.taxeditor.newWizards.NewTaxonNodeWizard"
527 hasPages="true"
528 id="eu.etaxonomy.taxeditor.new.taxonNode"
529 name="Taxon Node">
530 </wizard>
531 </extension>
532 <extension
533 point="org.eclipse.core.expressions.definitions">
534 <definition
535 id="isTaxonNode">
536 <with
537 variable="activeMenuSelection">
538 <iterate>
539 <instanceof
540 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
541 </instanceof>
542 </iterate>
543 </with>
544 </definition>
545 <definition
546 id="isTaxonomicTree">
547 <with
548 variable="activeMenuSelection">
549 <iterate>
550 <instanceof
551 value="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
552 </instanceof>
553 </iterate>
554 </with>
555 </definition>
556 <definition
557 id="isSynonymNode">
558 <with
559 variable="activeMenuSelection">
560 <iterate>
561 <instanceof
562 value="eu.etaxonomy.cdm.model.taxon.Synonym">
563 </instanceof>
564 </iterate>
565 </with>
566 </definition>
567 </extension>
568 <extension
569 point="org.eclipse.ui.handlers">
570 <handler
571 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut"
572 commandId="org.eclipse.ui.edit.cut">
573 <activeWhen>
574 <with
575 variable="activeFocusControlId">
576 <equals
577 value="navigation.textControlId">
578 </equals>
579 </with>
580 </activeWhen>
581 </handler>
582 <handler
583 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"
584 commandId="org.eclipse.ui.edit.copy">
585 <activeWhen>
586 <with
587 variable="activeFocusControlId">
588 <equals
589 value="navigation.textControlId">
590 </equals>
591 </with>
592 </activeWhen>
593 </handler>
594 <handler
595 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:paste"
596 commandId="org.eclipse.ui.edit.paste">
597 <activeWhen>
598 <with
599 variable="activeFocusControlId">
600 <equals
601 value="navigation.textControlId">
602 </equals>
603 </with>
604 </activeWhen>
605 </handler>
606 </extension>
607 </plugin>