fix #5971: admin menu is visible only if connected and user has role manager
[taxeditor.git] / eu.etaxonomy.taxeditor.application / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.2"?>
3 <plugin>
4 <extension
5 id="application"
6 name="%extension.name"
7 point="org.eclipse.core.runtime.applications">
8 <application
9 cardinality="singleton-global"
10 thread="main"
11 visible="true">
12 <run
13 class="eu.etaxonomy.taxeditor.Application">
14 </run>
15 </application>
16 </extension>
17 <extension
18 point="org.eclipse.ui.perspectives">
19 <perspective
20 class="eu.etaxonomy.taxeditor.perspective.Taxonomic"
21 id="eu.etaxonomy.taxeditor.application.perspective.taxonomic"
22 name="%perspective.name">
23 </perspective>
24 <perspective
25 class="eu.etaxonomy.taxeditor.perspective.PolytomousKey"
26 id="eu.etaxonomy.taxeditor.application.perspective.polytomous"
27 name="%perspective.name.0">
28 </perspective>
29 <perspective
30 class="eu.etaxonomy.taxeditor.perspective.Uses"
31 id="eu.etaxonomy.taxeditor.application.perspective.uses"
32 name="%perspective.name.1">
33 </perspective>
34 <perspective
35 class="eu.etaxonomy.taxeditor.perspective.DerivatePerspective"
36 icon="icons/specimen_derivate-16x16-32.png"
37 id="eu.etaxonomy.taxeditor.application.perspective.derivates"
38 name="%perspective.name.2">
39 </perspective>
40 <perspective
41 class="eu.etaxonomy.taxeditor.perspective.ChecklistPerspective"
42 icon="icons/check.png"
43 id="eu.etaxonomy.taxeditor.perspective.checklistperspective"
44 name="%perspective.name.3">
45 </perspective>
46
47 </extension>
48 <!--extension
49 point="org.eclipse.ui.views">
50 <view
51 class="eu.etaxonomy.taxeditor.navigation.taxonomictree.TaxonomicTreeView"
52 id="eu.etaxonomy.taxeditor.navigation.taxonomictree.treeView"
53 name="Taxonomic Tree">
54 </view>
55 <view
56 allowMultiple="true"
57 class="eu.etaxonomy.taxeditor.navigation.search.SearchResultView"
58 id="eu.etaxonomy.taxeditor.navigation.search.searchResultView"
59 name="Search Result"
60 restorable="true">
61 </view>
62 </extension-->
63 <extension
64 point="org.eclipse.ui.menus">
65 <menuContribution
66 locationURI="menu:org.eclipse.ui.main.menu">
67 <menu
68 id="org.eclipse.ui.main.menu.file"
69 label="%menu.label">
70 </menu>
71 <menu
72 id="org.eclipse.ui.main.menu.edit"
73 label="%menu.label.0">
74 </menu>
75 <menu
76 id="org.eclipse.ui.main.menu.window"
77 label="%menu.label.1">
78 </menu>
79 <menu
80 id="org.eclipse.ui.main.menu.help"
81 label="%menu.label.2">
82 </menu>
83 <menu
84 id="org.eclipse.ui.main.menu.admin"
85 label="%menu.label.4">
86 </menu>
87 </menuContribution>
88 <menuContribution
89 locationURI="menu:org.eclipse.ui.main.menu.file">
90 <menu
91 id="eu.etaxonomy.navigation.menu.new"
92 label="%menu.label.3">
93 </menu>
94 <separator
95 name="eu.etaxonomy.taxeditor.application.filemenu.new"
96 visible="true">
97 </separator>
98 <command
99 commandId="org.eclipse.ui.file.close"
100 label="%command.label"
101 style="push">
102 </command>
103 <command
104 commandId="org.eclipse.ui.file.closeAll"
105 label="%command.label.0"
106 style="push">
107 </command>
108 <separator
109 name="eu.etaxonomy.taxeditor.application.filemenu.close"
110 visible="true">
111 </separator>
112 <command
113 commandId="org.eclipse.ui.file.save"
114 label="%command.label.1"
115 style="push">
116 </command>
117 <command
118 commandId="org.eclipse.ui.file.saveAll"
119 label="%command.label.2"
120 style="push">
121 </command>
122 <separator
123 name="eu.etaxonomy.taxeditor.application.filemenu.save"
124 visible="true">
125 </separator>
126 <command
127 commandId="org.eclipse.ui.file.import"
128 label="%command.label.3"
129 style="push">
130 <visibleWhen
131 checkEnabled="true">
132 <reference
133 definitionId="isCdmStoreConnected">
134 </reference>
135 </visibleWhen>
136 </command>
137 <command
138 commandId="org.eclipse.ui.file.export"
139 label="%command.label.4"
140 style="push">
141 <visibleWhen
142 checkEnabled="true">
143 <reference
144 definitionId="isCdmStoreConnected">
145 </reference>
146 </visibleWhen>
147 </command>
148 <separator
149 name="eu.etaxonomy.taxeditor.application.filemenu.io"
150 visible="true">
151 </separator>
152 <command
153 commandId="org.eclipse.ui.file.exit"
154 id="eu.etaxonomy.taxeditor.application.menu.exit"
155 label="%command.label.5"
156 style="push">
157 </command>
158 </menuContribution>
159 <menuContribution
160 locationURI="menu:org.eclipse.ui.main.menu.edit">
161 <command
162 commandId="org.eclipse.ui.edit.undo"
163 label="%command.label.6">
164 </command>
165 <command
166 commandId="org.eclipse.ui.edit.redo"
167 label="%command.label.7"
168 style="push">
169 </command>
170 <separator
171 name="eu.etaxonomy.taxeditor.ui.edit.separator1"
172 visible="true">
173 </separator>
174 <command
175 commandId="org.eclipse.ui.edit.cut"
176 label="%command.label.8"
177 style="push">
178 </command>
179 <command
180 commandId="org.eclipse.ui.edit.copy"
181 label="%command.label.9"
182 style="push">
183 </command>
184 <command
185 commandId="org.eclipse.ui.edit.paste"
186 label="%command.label.10"
187 style="push">
188 </command>
189 <separator
190 name="eu.etaxonomy.taxeditor.ui.edit.separator2"
191 visible="true">
192 </separator>
193 <command
194 commandId="org.eclipse.ui.edit.delete"
195 label="%command.label.11"
196 style="push">
197 </command>
198 </menuContribution>
199 <menuContribution
200 locationURI="menu:org.eclipse.ui.main.menu.window">
201 <separator
202 name="eu.etaxonomy.taxeditor.application.windowMenu.last"
203 visible="true">
204 </separator>
205 <command
206 commandId="org.eclipse.ui.window.preferences"
207 label="%command.label.12"
208 style="push">
209 </command>
210 </menuContribution>
211 <menuContribution
212 locationURI="menu:org.eclipse.ui.main.menu.help">
213 <command
214 commandId="org.eclipse.ui.help.helpContents"
215 label="%command.label.13"
216 style="push">
217 </command>
218 <command
219 commandId="org.eclipse.ui.help.helpSearch"
220 label="%command.label.14"
221 style="push">
222 </command>
223 <separator
224 name="eu.etaxonomy.taxeditor.ui.help.separator0"
225 visible="true">
226 </separator>
227 <command
228 commandId="org.eclipse.ui.help.dynamicHelp"
229 label="%command.label.15"
230 style="push">
231 </command>
232 <command
233 commandId="eu.etaxonomy.taxeditor.application.help.parser"
234 label="%command.label.16"
235 style="push">
236 </command>
237 <separator
238 name="eu.etaxonomy.taxeditor.ui.help.separator1"
239 visible="true">
240 </separator>
241 <!--command
242 commandId="eu.etaxonomy.taxeditor.install"
243 label="%command.label.18"
244 style="push"/-->
245 <command
246 commandId="eu.etaxonomy.taxeditor.update"
247 label="%command.label.17"
248 style="push"/>
249 <separator
250 name="eu.etaxonomy.taxeditor.ui.help.separator2"
251 visible="true">
252 </separator>
253 <command
254 commandId="org.eclipse.ui.help.aboutAction"
255 label="%command.label.19">
256 </command>
257 <command
258 commandId="eu.etaxonomy.taxeditor.application.help.aboutPlatform"
259 label="%command.label.20"
260 style="push">
261 </command>
262 </menuContribution>
263 <menuContribution
264 locationURI="toolbar:org.eclipse.ui.main.toolbar">
265 <toolbar
266 id="eu.etaxonomy.taxeditor.editor.main">
267 <command
268 commandId="org.eclipse.ui.newWizard"
269 label="%command.label.21"
270 style="push">
271 </command>
272 <command
273 commandId="org.eclipse.ui.file.save"
274 label="%command.label.22"
275 style="push">
276 </command>
277 </toolbar>
278 </menuContribution>
279 <menuContribution
280 allPopups="false"
281 locationURI="menu:org.eclipse.ui.main.menu.admin">
282 <command
283 commandId="eu.etaxonomy.taxeditor.application.DatabaseSettings"
284 label="%command.label.23"
285 style="push">
286 <visibleWhen
287 checkEnabled="true">
288 <and>
289 <reference
290 definitionId="hasROLE_PROJECT_MANAGER">
291 </reference>
292 <reference
293 definitionId="isCdmStoreConnected">
294 </reference>
295 </and>
296 </visibleWhen>
297 </command>
298 </menuContribution>
299 </extension>
300 <extension
301 id="product"
302 point="org.eclipse.core.runtime.products">
303 <product
304 application="eu.etaxonomy.taxeditor.application.application"
305 name="%product.name">
306 <property
307 name="windowImages"
308 value="icons/256color_16x16.gif,icons/256color_32x32.gif,icons/256color_48x48.gif">
309 </property>
310 <property
311 name="aboutText"
312 value="%productBlurb">
313 </property>
314 <!--property
315 name="startupForegroundColor"
316 value="#C8D5EA"-->
317 <property
318 name="startupForegroundColor"
319 value="000000">
320 </property>
321 <property
322 name="startupProgressRect"
323 value="5,447,366,15">
324 </property>
325 <property
326 name="startupMessageRect"
327 value="7,432,360,20">
328 </property>
329 <property
330 name="appName"
331 value="EDIT Taxonomic Editor">
332 </property>
333 <property
334 name="preferenceCustomization"
335 value="plugin_customization.ini">
336 </property>
337 <property
338 name="aboutImage"
339 value="icons/256color_48x48.gif">
340 </property>
341 </product>
342 </extension>
343 <extension
344 point="org.eclipse.ui.commands">
345 <command
346 defaultHandler="eu.etaxonomy.taxeditor.OpenExternalParserHelpHandler"
347 id="eu.etaxonomy.taxeditor.application.help.parser"
348 name="%command.name">
349 </command>
350 <command
351 defaultHandler="eu.etaxonomy.taxeditor.OpenExternalAboutPlatformHandler"
352 id="eu.etaxonomy.taxeditor.application.help.aboutPlatform"
353 name="%command.name.0">
354 </command>
355 <command
356 defaultHandler="eu.etaxonomy.taxeditor.update.UpdateHandler"
357 id="eu.etaxonomy.taxeditor.update"
358 name="%command.label.17">
359 </command>
360 <command
361 defaultHandler="eu.etaxonomy.taxeditor.update.InstallNewSoftwareHandler"
362 id="eu.etaxonomy.taxeditor.install"
363 name="%command.label.18">
364 </command>
365 </extension>
366
367
368 <extension
369 point="org.eclipse.ui.activities">
370 <activity
371 description="%activity.description"
372 id="eu.etaxonomy.taxeditor.disable"
373 name="%activity.name">
374 </activity>
375 <activityPatternBinding
376 activityId="eu.etaxonomy.taxeditor.disable"
377 pattern="org\.eclipse\.ui\.ide/org\.eclipse\.ui\.wizards\.new\.project">
378 </activityPatternBinding>
379 <activityPatternBinding
380 activityId="eu.etaxonomy.taxeditor.disable"
381 pattern="org\.eclipse\.ui\.ide/org\.eclipse\.ui\.wizards\.new\.file">
382 </activityPatternBinding>
383 <activityPatternBinding
384 activityId="eu.etaxonomy.taxeditor.disable"
385 pattern="org\.eclipse\.ui\.ide/org\.eclipse\.ui\.wizards\.new\.folder">
386 </activityPatternBinding>
387 <activityPatternBinding
388 activityId="eu.etaxonomy.taxeditor.disable"
389 pattern="org\.eclipse\.ui\.editors/org\.eclipse\.ui\.editors\.wizards\.UntitledTextFileWizard">
390 </activityPatternBinding>
391 <activityPatternBinding
392 activityId="eu.etaxonomy.taxeditor.disable"
393 pattern="org\.eclipse\..*externaltools.*">
394 </activityPatternBinding>
395 <activityPatternBinding
396 activityId="eu.etaxonomy.taxeditor.disable"
397 pattern="org\.eclipse\.debug.*">
398 </activityPatternBinding>
399 <activityPatternBinding
400 activityId="eu.etaxonomy.taxeditor.disable"
401 pattern="org\.eclipse\.team.*">
402 </activityPatternBinding>
403 <activityPatternBinding
404 activityId="eu.etaxonomy.taxeditor.disable"
405 pattern="org\.eclipse\.ant.*">
406 </activityPatternBinding>
407 <activityPatternBinding
408 activityId="eu.etaxonomy.taxeditor.disable"
409 pattern="org\.eclipse\.pde.*">
410 </activityPatternBinding>
411 <activityPatternBinding
412 activityId="eu.etaxonomy.taxeditor.disable"
413 pattern="org\.eclipse\.jdt.*">
414 </activityPatternBinding>
415 <activityPatternBinding
416 activityId="eu.etaxonomy.taxeditor.disable"
417 pattern="org\.eclipse\.search.*">
418 </activityPatternBinding>
419 </extension>
420 <extension
421 id="eu_etaxonomy_taxeditor_product"
422 point="org.eclipse.core.runtime.products">
423 <product
424 application="eu.etaxonomy.taxeditor.application.application"
425 name="EDIT Taxonomic Editor">
426 <property
427 name="appName"
428 value="EDIT Taxonomic Editor">
429 </property>
430 <property
431 name="aboutImage"
432 value="icons/256color_48x48.gif">
433 </property>
434 <property
435 name="aboutText"
436 value="%productBlurb">
437 </property>
438 <property
439 name="windowImages"
440 value="icons/256color_16x16.gif,icons/256color_32x32.gif,icons/256color_48x48.gif">
441 </property>
442 <property
443 name="startupForegroundColor"
444 value="000000">
445 </property>
446 <property
447 name="startupMessageRect"
448 value="7,432,360,20">
449 </property>
450 <property
451 name="startupProgressRect"
452 value="5,447,366,15">
453 </property>
454 <property
455 name="preferenceCustomization"
456 value="plugin_customization.ini">
457 </property>
458 </product>
459 </extension>
460
461 </plugin>