b5c47ed07bb87e196d9ad66fa2ff80ab61fe1351
[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 </command>
113 <command
114 commandId="eu.etaxonomy.taxeditor.navigation.command.moveTaxon"
115 label="Move Taxon"
116 style="push">
117 </command>
118 <separator
119 name="taxeditor-navigation.separator1">
120 </separator>
121 <command
122 commandId="eu.etaxonomy.taxeditor.navigation.command.createChildTaxon"
123 label="New Child"
124 style="push">
125 </command>
126 <command
127 commandId="eu.etaxonomy.taxeditor.navigation.command.quickCreateChildTaxon"
128 label="Quick Add Child "
129 style="push">
130 </command>
131 <separator
132 name="separator1"
133 visible="true">
134 </separator>
135 <command
136 commandId="eu.etaxonomy.taxeditor.navigation.command.deleteTaxon"
137 label="Delete"
138 style="push">
139 </command>
140 </menuContribution>
141 </extension>
142 <extension
143 point="org.eclipse.ui.commands">
144 <command
145 defaultHandler="eu.etaxonomy.taxeditor.navigation.handler.EditTaxonHandler"
146 id="eu.etaxonomy.taxeditor.navigation.command.editTaxon"
147 name="Edit Taxon">
148 </command>
149 <command
150 defaultHandler="eu.etaxonomy.taxeditor.navigation.handler.MoveTaxonHandler"
151 id="eu.etaxonomy.taxeditor.navigation.command.moveTaxon"
152 name="Move Taxon">
153 </command>
154 <command
155 defaultHandler="eu.etaxonomy.taxeditor.navigation.handler.CreateChildTaxonHandler"
156 id="eu.etaxonomy.taxeditor.navigation.command.createChildTaxon"
157 name="Create Child Taxon">
158 </command>
159 <command
160 defaultHandler="eu.etaxonomy.taxeditor.navigation.handler.DeleteTaxonNodeHandler"
161 id="eu.etaxonomy.taxeditor.navigation.command.deleteTaxon"
162 name="Delete Taxon ">
163 </command>
164 <command
165 defaultHandler="eu.etaxonomy.taxeditor.navigation.handler.QuickCreateChildTaxonHandler"
166 id="eu.etaxonomy.taxeditor.navigation.command.quickCreateChildTaxon"
167 name="Quick Create Child Taxon">
168 </command>
169 </extension>
170 <extension
171 point="org.eclipse.ui.commands">
172 <command
173 defaultHandler="eu.etaxonomy.taxeditor.navigation.handler.ShowTaxonomicTreeViewHandler"
174 id="eu.etaxonomy.taxeditor.navigation.command.showTaxonomicTreeView"
175 name="Show Taxonomic Tree View">
176 </command>
177 </extension>
178
179 <extension
180 point="org.eclipse.ui.themes">
181 <themeElementCategory
182 id="eu.etaxonomy.taxeditor.preferences.searchResult"
183 label="Search Result">
184 <description>
185 Colors and fonts used to display the search result.
186 </description>
187 </themeElementCategory>
188 <fontDefinition
189 categoryId="eu.etaxonomy.taxeditor.preferences.searchResult"
190 id="eu.etaxonomy.taxeditor.preferences.searchResult.fontSynonym"
191 isEditable="true"
192 label="Synonym font">
193 <fontValue
194 value="Lucida Sans-italic-11">
195 </fontValue>
196 <description>
197 The font that is used for synonyms in the search result list.
198 </description>
199 </fontDefinition>
200 <fontDefinition
201 categoryId="eu.etaxonomy.taxeditor.preferences.searchResult"
202 id="eu.etaxonomy.taxeditor.preferences.searchResult.fontAccepted"
203 isEditable="true"
204 label="Accepted font">
205 <description>
206 The font that is used for accepted taxa in the search result list.
207 </description>
208 <fontValue
209 value="Lucida Sans-bold-11">
210 </fontValue>
211 </fontDefinition>
212 <fontDefinition
213 categoryId="eu.etaxonomy.taxeditor.preferences.searchResult"
214 id="eu.etaxonomy.taxeditor.preferences.searchResult.fontDefault"
215 isEditable="true"
216 label="Other font">
217 <description>
218 The font used by default in the search result list.
219 </description>
220 <fontValue
221 value="Lucida Grande-11">
222 </fontValue>
223 </fontDefinition>
224 </extension>
225 <!--extension
226 point="org.eclipse.ui.navigator.viewer">
227 <viewer
228 viewerId="org.eclipse.ui.examples.navigator.view">
229 </viewer>
230 <viewerContentBinding
231 viewerId="org.eclipse.ui.examples.navigator.view">
232 <includes>
233 <contentExtension
234 pattern="org.eclipse.ui.navigator.resourceContent" />
235 <contentExtension
236 pattern="org.eclipse.ui.navigator.resources.filters.*" />
237 </includes>
238 </viewerContentBinding>
239 <viewerActionBinding
240 viewerId="org.eclipse.ui.examples.navigator.view">
241 <includes>
242 <actionExtension
243 pattern="org.eclipse.ui.navigator.resources.*">
244 </actionExtension>
245 </includes>
246 </viewerActionBinding>
247 </extension>
248 <extension
249 point="org.eclipse.ui.navigator.navigatorContent">
250 <commonFilter
251 id="org.eclipse.ui.examples.navigator.filters.hideNonJavaProjects"
252 name="Hide non-Java projects">
253 <filterExpression>
254 <not>
255 <adapt
256 type="org.eclipse.core.resources.IProject">
257 <test
258 property="org.eclipse.core.resources.projectNature"
259 value="org.eclipse.jdt.core.javanature">
260 </test>
261 </adapt>
262 </not>
263 </filterExpression>
264 </commonFilter>
265 </extension-->
266
267
268
269
270
271
272 <extension
273 point="org.eclipse.ui.views">
274 <view
275 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator"
276 icon="icons/edit_16x16.gif"
277 id="eu.etaxonomy.taxeditor.navigation.navigator"
278 name="Taxonomic Tree"/>
279 </extension>
280 <extension
281 point="org.eclipse.ui.navigator.navigatorContent">
282 <navigatorContent
283 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.NavigatorTaxonomicTreeContentProvider"
284 id="eu.etaxonomy.taxeditor.navigation.taxonomictreecontent"
285 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.NavigatorTaxonomicTreeLabelProvider"
286 name="Taxonomic Tree">
287 <triggerPoints>
288 <instanceof
289 value="eu.etaxonomy.taxeditor.navigation.navigator.NavigatorRoot">
290 </instanceof>
291 </triggerPoints>
292 <possibleChildren>
293 <instanceof
294 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
295 </instanceof>
296 </possibleChildren>
297 </navigatorContent>
298 <navigatorContent
299 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.NavigatorTaxonContentProvider"
300 id="eu.etaxonomy.taxeditor.navigation.taxoncontent"
301 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.NavigatorTaxonLabelProvider"
302 name="Taxon Node">
303 <triggerPoints>
304 <instanceof value="eu.etaxonomy.cdm.model.taxon.TaxonNode"/>
305 </triggerPoints>
306 <dropAssistant
307 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonDropAdapterAssistant"
308 id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
309 <possibleDropTargets>
310 <instanceof
311 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
312 </instanceof>
313 </possibleDropTargets>
314 </dropAssistant>
315 <possibleChildren>
316 <instanceof
317 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
318 </instanceof>
319 </possibleChildren>
320 <actionProvider
321 class="eu.etaxonomy.taxeditor.navigation.navigator.OpenTaxonActionProvider"
322 id="eu.etaxonomy.taxeditor.navigation.action.open"
323 overrides="org.eclipse.ui.navigator.resources.OpenActions">
324 <enablement>
325 <instanceof
326 value="eu.etaxonomy.cdm.model.taxon.TaxonNode">
327 </instanceof>
328 </enablement>
329 </actionProvider>
330 </navigatorContent>
331 <navigatorContent
332 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.NavigatorSynonymContentProvider"
333 id="eu.etaxonomy.taxeditor.navigation.synonymcontent"
334 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.NavigatorSynonymLabelProvider"
335 name="Synonyms"
336 priority="highest">
337 <triggerPoints>
338 <and>
339 <instanceof
340 value="eu.etaxonomy.cdm.model.taxon.Taxon">
341 </instanceof>
342 <test
343 forcePluginActivation="true"
344 property="eu.etaxonomy.taxeditor.propertytests.hasSynonyms">
345 </test>
346 </and>
347 </triggerPoints>
348 <possibleChildren>
349 <instanceof
350 value="eu.etaxonomy.cdm.model.taxon.Synonym">
351 </instanceof>
352 </possibleChildren>
353 </navigatorContent>
354 </extension>
355 <extension
356 point="org.eclipse.ui.navigator.viewer">
357 <viewer
358 viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
359 <popupMenu
360 id="eu.etaxonomy.taxeditor.navigation.navigatorpopup">
361 </popupMenu>
362 </viewer>
363 <viewerContentBinding viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
364 <includes>
365 <contentExtension
366 pattern="eu.etaxonomy.taxeditor.navigation.taxonomictreecontent">
367 </contentExtension>
368 <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxoncontent"/>
369 <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper"/>
370 <contentExtension
371 pattern="eu.etaxonomy.taxeditor.navigation.synonymcontent">
372 </contentExtension>
373 </includes>
374 </viewerContentBinding>
375 <!--viewer
376 popupMenuId="eu.etaxonomy.taxeditor.navigation.navigator#PopupMenu"
377 viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
378 <options>
379 <property
380 name="org.eclipse.ui.navigator.hideAvailableExtensionsTab"
381 value="true">
382 </property>
383 </options>
384 </viewer-->
385 </extension>
386 <extension
387 point="org.eclipse.ui.navigator.linkHelper">
388 <linkHelper
389 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonLinkHelper"
390 id="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper">
391 <selectionEnablement>
392 <instanceof value="eu.etaxonomy.cdm.model.taxon.TaxonNode"/>
393 </selectionEnablement>
394 <editorInputEnablement>
395 <instanceof value="eu.etaxonomy.taxeditor.editor.TaxonEditorInput"/>
396 </editorInputEnablement>
397 </linkHelper>
398 </extension>
399 <extension
400 point="org.eclipse.core.runtime.adapters">
401 <factory
402 adaptableType="org.eclipse.core.internal.resources.Workspace"
403 class="eu.etaxonomy.taxeditor.navigation.WorkbenchUndoContextAdapterFactory">
404 <adapter
405 type="org.eclipse.core.commands.operations.IUndoContext">
406 </adapter>
407 </factory>
408 </extension>
409 <extension
410 point="org.eclipse.core.expressions.propertyTesters">
411 <propertyTester
412 class="eu.etaxonomy.taxeditor.navigation.navigator.NavigatorPropertyTester"
413 id="eu.etaxonomy.taxeditor.propertytests.navigatorPropertyTester"
414 namespace="eu.etaxonomy.taxeditor.propertytests"
415 properties="hasSynonyms"
416 type="eu.etaxonomy.cdm.model.taxon.Taxon">
417 </propertyTester>
418 </extension>
419
420
421
422 </plugin>