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