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