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