Re-implemented taxonomic tree using Common Navigator Framework.
[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.taxonomictree.TaxonomicTreeView"
31 icon="icons/edit_16x16.gif"
32 id="eu.etaxonomy.taxeditor.navigation.taxonomictree.treeView"
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.DeleteTaxonHandler"
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.NavigatorTaxonContentProvider"
284 id="eu.etaxonomy.taxeditor.navigation.taxoncontent"
285 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.NavigatorTaxonLabelProvider"
286 name="Taxon">
287 <triggerPoints>
288 <instanceof value="eu.etaxonomy.taxeditor.navigation.navigator.NavigatorRoot"/>
289 </triggerPoints>
290 <dropAssistant
291 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonDropAdapterAssistant"
292 id="eu.etaxonomy.taxeditor.navigation.navigator.dropassistant">
293 <possibleDropTargets>
294 <instanceof
295 value="eu.etaxonomy.cdm.model.taxon.Taxon">
296 </instanceof>
297 </possibleDropTargets>
298 </dropAssistant>
299 <possibleChildren>
300 <instanceof
301 value="eu.etaxonomy.cdm.model.taxon.Taxon">
302 </instanceof>
303 </possibleChildren>
304 <actionProvider
305 class="eu.etaxonomy.taxeditor.navigation.navigator.OpenTaxonActionProvider"
306 id="eu.etaxonomy.taxeditor.navigation.action.open"
307 overrides="org.eclipse.ui.navigator.resources.OpenActions">
308 <enablement>
309 <instanceof
310 value="eu.etaxonomy.cdm.model.taxon.Taxon">
311 </instanceof>
312 </enablement>
313 </actionProvider>
314 </navigatorContent>
315 <navigatorContent
316 contentProvider="eu.etaxonomy.taxeditor.navigation.navigator.NavigatorSynonymContentProvider"
317 id="eu.etaxonomy.taxeditor.navigation.synonymcontent"
318 labelProvider="eu.etaxonomy.taxeditor.navigation.navigator.NavigatorSynonymLabelProvider"
319 name="Synonyms"
320 priority="highest">
321 <triggerPoints>
322 <instanceof
323 value="eu.etaxonomy.cdm.model.taxon.Taxon">
324 </instanceof>
325 </triggerPoints>
326 <possibleChildren>
327 <instanceof
328 value="eu.etaxonomy.cdm.model.taxon.Synonym">
329 </instanceof>
330 </possibleChildren>
331 </navigatorContent>
332 </extension>
333 <extension
334 point="org.eclipse.ui.navigator.viewer">
335 <viewer
336 viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
337 <popupMenu
338 id="eu.etaxonomy.taxeditor.navigation.navigatorpopup">
339 </popupMenu>
340 </viewer>
341 <viewerContentBinding viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
342 <includes>
343 <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxoncontent"/>
344 <contentExtension pattern="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper"/>
345 </includes>
346 </viewerContentBinding>
347 <viewerContentBinding
348 viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
349 <includes>
350 <contentExtension
351 pattern="eu.etaxonomy.taxeditor.navigation.synonymcontent">
352 </contentExtension>
353 </includes>
354 </viewerContentBinding>
355 <!--viewer
356 popupMenuId="eu.etaxonomy.taxeditor.navigation.navigator#PopupMenu"
357 viewerId="eu.etaxonomy.taxeditor.navigation.navigator">
358 <options>
359 <property
360 name="org.eclipse.ui.navigator.hideAvailableExtensionsTab"
361 value="true">
362 </property>
363 </options>
364 </viewer-->
365 </extension>
366 <extension
367 point="org.eclipse.ui.navigator.linkHelper">
368 <linkHelper
369 class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonLinkHelper"
370 id="eu.etaxonomy.taxeditor.navigation.taxonlinkhelper">
371 <selectionEnablement>
372 <instanceof value="eu.etaxonomy.cdm.model.taxon.Taxon"/>
373 </selectionEnablement>
374 <editorInputEnablement>
375 <instanceof value="eu.etaxonomy.taxeditor.editor.TaxonEditorInput"/>
376 </editorInputEnablement>
377 </linkHelper>
378 </extension>
379 <extension
380 point="org.eclipse.core.runtime.adapters">
381 <factory
382 adaptableType="org.eclipse.core.internal.resources.Workspace"
383 class="eu.etaxonomy.taxeditor.navigation.WorkbenchUndoContextAdapterFactory">
384 <adapter
385 type="org.eclipse.core.commands.operations.IUndoContext">
386 </adapter>
387 </factory>
388 </extension>
389
390
391
392 </plugin>