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