adding site content
[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/system-search.png"
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/preferences-system-windows.png"
27 id="eu.etaxonomy.taxeditor.navigation.navigator"
28 name="Taxon Navigator"
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="Taxon Navigator"
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"
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.newClassification"
77 id="eu.etaxonomy.taxeditor.navigation.newClassificationHandler"
78 label="Classification"
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.editSelection"
88 label="Edit"
89 style="push">
90 <visibleWhen
91 checkEnabled="true">
92 <or>
93 <reference
94 definitionId="isTaxonNode">
95 </reference>
96 <reference
97 definitionId="isTaxonomicTree">
98 </reference>
99 </or>
100 </visibleWhen>
101 </command>
102 <command
103 commandId="eu.etaxonomy.taxeditor.navigation.command.moveTaxon"
104 label="Move Taxon (with child taxa)"
105 style="push">
106 <visibleWhen
107 checkEnabled="true">
108 <reference
109 definitionId="isTaxonNode">
110 </reference>
111 </visibleWhen>
112 </command>
113 <separator
114 name="taxeditor-navigation.separator2"
115 visible="true">
116 </separator>
117 <!--command
118 commandId="eu.etaxonomy.taxeditor.navigation.command.createChildTaxon"
119 label="New Child"
120 style="push">
121 </command>
122 <command
123 commandId="eu.etaxonomy.taxeditor.navigation.command.quickCreateChildTaxon"
124 label="Quick Add Child "
125 style="push">
126 </command-->
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 <visibleWhen>
146 <not>
147 <reference
148 definitionId="isSynonymNode">
149 </reference>
150 </not>
151 </visibleWhen>
152 </command>
153 <separator
154 name="taxeditor-navigation.separator5"
155 visible="true">
156 </separator>
157 <command
158 commandId="org.eclipse.ui.file.refresh"
159 label="Refresh"
160 style="push">
161 </command>
162 </menuContribution>
163 <menuContribution
164 locationURI="toolbar:org.eclipse.ui.main.toolbar">
165 <toolbar
166 id="eu.etaxonomy.taxeditor.navigation.search.toolbar">
167 <control
168 class="eu.etaxonomy.taxeditor.navigation.search.SearchBar">
169 </control>
170 </toolbar>
171 </menuContribution>
172 <menuContribution
173 locationURI="menu:eu.etaxonomy.navigation.menu.new">
174 <command
175 commandId="eu.etaxonomy.taxeditor.navigation.newTaxonNode"
176 label="Taxon"
177 style="push">
178 </command>
179 <separator
180 name="eu.etaxonomy.navigation.menu.new.separator1"
181 visible="true">
182 </separator>
183 <command
184 commandId="eu.etaxonomy.taxeditor.navigation.newClassification"
185 id="eu.etaxonomy.taxeditor.navigation.newClassificationHandler"
186 label="Classification"
187 style="push">
188 </command>
189 </menuContribution>
190 </extension>
191 <extension
192 point="org.eclipse.ui.commands">
193 <command
194 defaultHandler="eu.etaxonomy.taxeditor.navigation.handler.NewTaxonNodeHandler"
195 id="eu.etaxonomy.taxeditor.navigation.newTaxonNode"
196 name="New Taxon Node">
197 </command>
198 <command
199 defaultHandler="eu.etaxonomy.taxeditor.navigation.handler.NewClassificationHandler"
200 id="eu.etaxonomy.taxeditor.navigation.newClassification"
201 name="New Classification">
202 </command>
203 </extension>
204 <extension
205 point="org.eclipse.ui.commands">
206 <command
207 defaultHandler="eu.etaxonomy.taxeditor.navigation.handler.EditHandler"
208 id="eu.etaxonomy.taxeditor.navigation.command.editSelection"
209 name="Edit">
210 </command>
211 <command
212 defaultHandler="eu.etaxonomy.taxeditor.navigation.handler.MoveTaxonHandler"
213 id="eu.etaxonomy.taxeditor.navigation.command.moveTaxon"
214 name="Move Taxon">
215 </command>
216 <command
217 defaultHandler="eu.etaxonomy.taxeditor.navigation.handler.RefreshTreeHandler"
218 id="org.eclipse.ui.file.refresh"
219 name="Refresh">
220 </command>
221 </extension>
222 <extension
223 point="org.eclipse.ui.handlers">
224 <handler
225 class="eu.etaxonomy.taxeditor.navigation.handler.DeleteTreeNodeHandler"
226 commandId="org.eclipse.ui.edit.delete">
227 <enabledWhen>
228 <with
229 variable="activePartId">
230 <equals
231 value="eu.etaxonomy.taxeditor.navigation.navigator">
232 </equals>
233 </with>
234 </enabledWhen>
235 </handler>
236 </extension>
237 <extension
238 point="org.eclipse.ui.commands">
239 <command
240 defaultHandler="eu.etaxonomy.taxeditor.navigation.handler.ShowTaxonomicTreeViewHandler"
241 id="eu.etaxonomy.taxeditor.navigation.command.showTaxonomicTreeView"
242 name="Show Taxon Navigator View">
243 </command>
244 </extension>
245
246
247 <!--extension
248 point="org.eclipse.ui.navigator.viewer">
249 <viewer
250 viewerId="org.eclipse.ui.examples.navigator.view">
251 </viewer>
252 <viewerContentBinding
253 viewerId="org.eclipse.ui.examples.navigator.view">
254 <includes>
255 <contentExtension
256 pattern="org.eclipse.ui.navigator.resourceContent" />
257 <contentExtension
258 pattern="org.eclipse.ui.navigator.resources.filters.*" />
259 </includes>
260 </viewerContentBinding>
261 <viewerActionBinding
262 viewerId="org.eclipse.ui.examples.navigator.view">
263 <includes>
264 <actionExtension
265 pattern="org.eclipse.ui.navigator.resources.*">
266 </actionExtension>
267 </includes>
268 </viewerActionBinding>
269 </extension>
270 <extension
271 point="org.eclipse.ui.navigator.navigatorContent">
272 <commonFilter
273 id="org.eclipse.ui.examples.navigator.filters.hideNonJavaProjects"
274 name="Hide non-Java projects">
275 <filterExpression>
276 <not>
277 <adapt
278 type="org.eclipse.core.resources.IProject">
279 <test
280 property="org.eclipse.core.resources.projectNature"
281 value="org.eclipse.jdt.core.javanature">
282 </test>
283 </adapt>
284 </not>
285 </filterExpression>
286 </commonFilter>
287 </extension-->
288
289
290
291
292
293
294 <extension
295 point="org.eclipse.ui.views">
296 <view
297 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator"
298 icon="icons/edit_16x16.gif"
299 id="eu.etaxonomy.taxeditor.navigation.navigator"
300 name="Taxonomic Tree"/>
301 </extension>
302 <extension
303 point="org.eclipse.ui.navigator.navigatorContent">
304 <navigatorContent
305 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationContentProvider"
306 id="eu.etaxonomy.taxeditor.navigation.taxonomictreecontent"
307 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.ClassificationLabelProvider"
308 name="Taxonomic Tree">
309 <triggerPoints>
310 <instanceof
311 value="eu.etaxonomy.taxeditor.navigation.navigator.Root">
312 </instanceof>
313 </triggerPoints>
314 <possibleChildren>
315 <instanceof
316 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
317 </instanceof>
318 </possibleChildren>
319 </navigatorContent>
320 <navigatorContent
321 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeContentProvider"
322 id="eu.etaxonomy.taxeditor.navigation.taxoncontent"
323 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeLabelProvider"
324 name="Taxon">
325 <triggerPoints>
326 <or>
327 <instanceof
328 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
329 </instanceof>
330 <and>
331 <instanceof
332 value="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
333 </instanceof>
334 <test
335 forcePluginActivation="true"
336 property="eu.etaxonomy.taxeditor.propertytests.hasTaxa">
337 </test>
338 </and>
339 </or>
340 </triggerPoints>
341 <dropAssistant
342 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodeDropAdapterAssistant"
343 id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
344 <possibleDropTargets>
345 <or>
346 <instanceof
347 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
348 </instanceof>
349 <instanceof
350 value="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
351 </instanceof>
352 </or>
353 </possibleDropTargets>
354 </dropAssistant>
355 <possibleChildren>
356 <instanceof
357 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
358 </instanceof>
359 </possibleChildren>
360 </navigatorContent>
361 <navigatorContent
362 activeByDefault="false"
363 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymContentProvider"
364 id="eu.etaxonomy.taxeditor.navigation.synonymcontent"
365 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.SynonymLabelProvider"
366 name="Synonyms (experimental)"
367 priority="highest">
368 <triggerPoints>
369 <and>
370 <instanceof
371 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
372 </instanceof>
373 <test
374 forcePluginActivation="true"
375 property="eu.etaxonomy.taxeditor.propertytests.hasSynonyms">
376 </test>
377 </and>
378 </triggerPoints>
379 <possibleChildren>
380 <instanceof
381 value="eu.etaxonomy.cdm.model.taxon.Synonym">
382 </instanceof>
383 </possibleChildren>
384 </navigatorContent>
385 </extension>
386 <extension
387 point="org.eclipse.ui.navigator.viewer">
388 <viewer
389 viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
390 <popupMenu
391 id="eu.etaxonomy.taxeditor.navigation.navigatorpopup">
392 </popupMenu>
393 </viewer>
394 <viewerContentBinding viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
395 <includes>
396 <contentExtension
397 pattern="eu.etaxonomy.taxeditor.navigation.taxonomictreecontent">
398 </contentExtension>
399 <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxoncontent"/>
400 <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper"/>
401 <contentExtension
402 pattern="eu.etaxonomy.taxeditor.navigation.synonymcontent">
403 </contentExtension>
404 </includes>
405 </viewerContentBinding>
406 <!--viewer
407 popupMenuId="eu.etaxonomy.taxeditor.navigation.navigator#PopupMenu"
408 viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
409 <options>
410 <property
411 name="org.eclipse.ui.navigator.hideAvailableExtensionsTab"
412 value="true">
413 </property>
414 </options>
415 </viewer-->
416 </extension>
417 <extension
418 point="org.eclipse.ui.navigator.linkHelper">
419 <linkHelper
420 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonLinkHelper"
421 id="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper">
422 <selectionEnablement>
423 <instanceof value="eu.etaxonomy.cdm.model.taxon.TaxonNode"/>
424 </selectionEnablement>
425 <editorInputEnablement>
426 <instanceof value="eu.etaxonomy.taxeditor.editor.TaxonEditorInput"/>
427 </editorInputEnablement>
428 </linkHelper>
429 </extension>
430 <extension
431 point="org.eclipse.core.runtime.adapters">
432 <factory
433 adaptableType="org.eclipse.core.internal.resources.Workspace"
434 class="eu.etaxonomy.taxeditor.navigation.WorkbenchUndoContextAdapterFactory">
435 <adapter
436 type="org.eclipse.core.commands.operations.IUndoContext">
437 </adapter>
438 </factory>
439 </extension>
440 <extension
441 point="org.eclipse.core.expressions.propertyTesters">
442 <propertyTester
443 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
444 id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
445 namespace="eu.etaxonomy.taxeditor.propertytests"
446 properties="hasSynonyms"
447 type="eu.etaxonomy.cdm.model.taxon.TaxonNode">
448 </propertyTester>
449 <propertyTester
450 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
451 id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
452 namespace="eu.etaxonomy.taxeditor.propertytests"
453 properties="hasTaxa"
454 type="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
455 </propertyTester>
456 </extension>
457 <extension
458 point="org.eclipse.ui.newWizards">
459 <category
460 id="eu.etaxonomy.taxeditor.new.category.cdm"
461 name="CDM">
462 </category>
463 <!--primaryWizard
464 id="taxeditor-navigation.wizard1">
465 </primaryWizard-->
466 <wizard
467 category="eu.etaxonomy.taxeditor.new.category.cdm"
468 class="eu.etaxonomy.taxeditor.wizard.ClassificationWizard"
469 hasPages="true"
470 icon="icons/tree_icon_small.jpg"
471 id="eu.etaxonomy.taxeditor.new.classification"
472 name="Classification">
473 </wizard>
474 <wizard
475 category="eu.etaxonomy.taxeditor.new.category.cdm"
476 class="eu.etaxonomy.taxeditor.wizard.NewTaxonNodeWizard"
477 hasPages="true"
478 id="eu.etaxonomy.taxeditor.new.taxonNode"
479 name="Taxon">
480 </wizard>
481 </extension>
482 <extension
483 point="org.eclipse.core.expressions.definitions">
484 <definition
485 id="isTaxonNode">
486 <with
487 variable="activeMenuSelection">
488 <iterate>
489 <instanceof
490 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
491 </instanceof>
492 </iterate>
493 </with>
494 </definition>
495 <definition
496 id="isTaxonomicTree">
497 <with
498 variable="activeMenuSelection">
499 <iterate>
500 <instanceof
501 value="eu.etaxonomy.cdm.model.taxon.TaxonomicTree">
502 </instanceof>
503 </iterate>
504 </with>
505 </definition>
506 <definition
507 id="isSynonymNode">
508 <with
509 variable="activeMenuSelection">
510 <iterate>
511 <instanceof
512 value="eu.etaxonomy.cdm.model.taxon.Synonym">
513 </instanceof>
514 </iterate>
515 </with>
516 </definition>
517 </extension>
518 </plugin>