Disable Termeditor menu if CdmStore is disconnected
[taxeditor.git] / eu.etaxonomy.taxeditor.store / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.2"?>
3 <plugin>
4 <extension-point id="eu.etaxonomy.taxeditor.store.cdmViewer" name="%extension-point.name" schema="schema/eu.etaxonomy.taxeditor.store.cdmViewer.exsd"/>
5 <extension
6 point="org.eclipse.ui.preferencePages">
7 <page
8 class="eu.etaxonomy.taxeditor.preference.TaxonomicEditorGeneralPreferences"
9 id="eu.etaxonomy.taxeditor.preferences.general"
10 name="%page.name">
11 </page>
12 <page
13 category="eu.etaxonomy.taxeditor.preferences.general"
14 class="eu.etaxonomy.taxeditor.preference.DescriptionPreferences"
15 id="eu.etaxonomy.taxeditor.preferences.description"
16 name="%page.name.0">
17 </page>
18 <page
19 category="eu.etaxonomy.taxeditor.preferences.description"
20 class="eu.etaxonomy.taxeditor.preference.menu.FeatureMenuPreferences"
21 id="eu.etaxonomy.taxeditor.preferences.feature"
22 name="%page.name.1">
23 </page>
24 <page
25 category="eu.etaxonomy.taxeditor.preferences.description"
26 class="eu.etaxonomy.taxeditor.preference.menu.PresenceAbsenceMenuPreferences"
27 id="eu.etaxonomy.taxeditor.preferences.distributionStatus"
28 name="%page.name.2">
29 </page>
30 <page
31 category="eu.etaxonomy.taxeditor.preferences.general"
32 class="eu.etaxonomy.taxeditor.preference.TaxonomicPreferences"
33 id="eu.etaxonomy.taxeditor.preferences.taxonomic"
34 name="%page.name.3">
35 </page>
36 <page
37 category="eu.etaxonomy.taxeditor.preferences.taxonomic"
38 class="eu.etaxonomy.taxeditor.preference.NomenclaturalCodePreferences"
39 id="eu.etaxonomy.taxeditor.preferences.nomenclatural"
40 name="%page.name.4">
41 </page>
42 <!--page
43 class="eu.etaxonomy.taxeditor.store.preference.CdmPreferences"
44 id="eu.etaxonomy.taxeditor.preferences.cdm"
45 name="CDM Datastore">
46 </page>
47 <page
48 category="eu.etaxonomy.taxeditor.preferences.cdm"
49 class="eu.etaxonomy.taxeditor.store.preference.InitializeDbPreferences"
50 id="eu.etaxonomy.taxeditor.preferences.initdb"
51 name="Initialize Datastore">
52 </page-->
53 <page
54 category="eu.etaxonomy.taxeditor.preferences.taxonomic"
55 class="eu.etaxonomy.taxeditor.preference.menu.RankMenuPreferences"
56 id="eu.etaxonomy.taxeditor.preferences.ranks"
57 name="%page.name.5">
58 </page>
59 <page
60 category="eu.etaxonomy.taxeditor.preferences.taxonomic"
61 class="eu.etaxonomy.taxeditor.preference.menu.NomenclaturalStatusTypeMenuPreferences"
62 id="eu.etaxonomy.taxeditor.preferences.nomenclaturalStatusType"
63 name="%page.name.6">
64 </page>
65 <page
66 category="eu.etaxonomy.taxeditor.preferences.taxonomic"
67 class="eu.etaxonomy.taxeditor.preference.menu.NameRelationshipTypeMenuPreferences"
68 id="eu.etaxonomy.taxeditor.preferences.nameRelationshipType"
69 name="%page.name.7">
70 </page>
71 <page
72 category="eu.etaxonomy.taxeditor.preferences.taxonomic"
73 class="eu.etaxonomy.taxeditor.preference.menu.TaxonRelationshipTypeMenuPreferences"
74 id="taxeditor-store.page1"
75 name="%page.name.8">
76 </page>
77 <page
78 category="eu.etaxonomy.taxeditor.preferences.taxonomic"
79 class="eu.etaxonomy.taxeditor.preference.menu.SpecimenTypeDesignationStatusMenuPreferences"
80 id="eu.etaxonomy.taxeditor.preferences.specimenTypeDesignationStatus"
81 name="%page.name.9">
82 </page>
83 <page
84 category="eu.etaxonomy.taxeditor.preferences.taxonomic"
85 class="eu.etaxonomy.taxeditor.preference.menu.NameTypeDesignationStatusMenuPreferences"
86 id="eu.etaxonomy.taxeditor.preferences.nameTypeDesignationStatus"
87 name="%page.name.13">
88 </page>
89 <page
90 category="eu.etaxonomy.taxeditor.preferences.language"
91 class="eu.etaxonomy.taxeditor.preference.menu.LanguageMenuPreferences"
92 id="eu.etaxonomy.taxeditor.preferences.languages"
93 name="%page.name.10">
94 </page>
95 <page
96 category="eu.etaxonomy.taxeditor.preferences.general"
97 class="eu.etaxonomy.taxeditor.preference.menu.MarkerTypeMenuPreferences"
98 id="eu.etaxonomy.taxeditor.preferences.markerTypes"
99 name="%page.name.11">
100 </page>
101 <page
102 category="eu.etaxonomy.taxeditor.preferences.general"
103 class="eu.etaxonomy.taxeditor.preference.menu.ExtensionTypeMenuPreferences"
104 id="eu.etaxonomy.taxeditor.preferences.extensionTypes"
105 name="%page.name.12">
106 </page>
107 <page
108 category="eu.etaxonomy.taxeditor.preferences.description"
109 class="eu.etaxonomy.taxeditor.preference.menu.NamedAreaTypeMenuPreferences"
110 id="eu.etaxonomy.taxeditor.preferences.namedAreaType"
111 name="%page.name.14">
112 </page>
113 <page
114 category="eu.etaxonomy.taxeditor.preferences.general"
115 class="eu.etaxonomy.taxeditor.preference.MatchingPreferences"
116 id="eu.etaxonomy.taxeditor.preferences.matching"
117 name="%page.name.15">
118 </page>
119 <page
120 category="eu.etaxonomy.taxeditor.preferences.matching"
121 class="eu.etaxonomy.taxeditor.preference.matching.NonViralNameMatchingPreference"
122 id="eu.etaxonomy.taxeditor.preferences.matching.nonViralName"
123 name="%page.name.16">
124 </page>
125 <page
126 category="eu.etaxonomy.taxeditor.preferences.matching"
127 class="eu.etaxonomy.taxeditor.preference.matching.ReferenceMatchingPreference"
128 id="eu.etaxonomy.taxeditor.preferences.matching"
129 name="%page.name.17">
130 </page>
131 <page
132 category="eu.etaxonomy.taxeditor.preferences.matching"
133 class="eu.etaxonomy.taxeditor.preference.matching.TeamOrPersonMatchingPreference"
134 id="eu.etaxonomy.taxeditor.preferences.matching"
135 name="%page.name.18">
136 </page>
137 <page
138 category="eu.etaxonomy.taxeditor.preferences.description"
139 class="eu.etaxonomy.taxeditor.preference.menu.StageMenuPreferences"
140 id="eu.etaxonomy.taxeditor.preferences.stage"
141 name="%page.name.19">
142 </page>
143 <page
144 category="eu.etaxonomy.taxeditor.preferences.description"
145 class="eu.etaxonomy.taxeditor.preference.menu.PreservationMethodMenuPreferences"
146 id="eu.etaxonomy.taxeditor.preferences.preservationMethod"
147 name="%page.name.20">
148 </page>
149 <page
150 category="eu.etaxonomy.taxeditor.preferences.feature"
151 class="eu.etaxonomy.taxeditor.preference.FeatureTreePreferences"
152 id="eu.etaxonomy.taxeditor.preferences.featureTree"
153 name="%page.name.21">
154 </page>
155 <page
156 category="eu.etaxonomy.taxeditor.preferences.feature"
157 class="eu.etaxonomy.taxeditor.preference.DefaultFeatureTreePreferenecs"
158 id="eu.etaxonomy.taxeditor.preferences.defaultFeatureTreePreferenecs"
159 name="%page.name.22">
160 </page>
161 <page
162 category="eu.etaxonomy.taxeditor.preference.defaultlanguagepditorpreferencePage"
163 class="eu.etaxonomy.taxeditor.preference.LanguageRepresentationPreferencePage"
164 id="eu.etaxonomy.taxeditor.preferences.language"
165 name="%page.name.23">
166 </page>
167 <page
168 category="eu.etaxonomy.taxeditor.preferences.general"
169 class="eu.etaxonomy.taxeditor.preference.MobotOpenUrlPreferences"
170 id="eu.etaxonomy.taxeditor.preferences.mobotOpenUrl"
171 name="%page.name.24">
172 </page>
173 <page
174 category="eu.etaxonomy.taxeditor.preferences.general"
175 class="eu.etaxonomy.taxeditor.preference.TypeDesignationPreferences"
176 id="eu.etaxonomy.taxeditor.preferences.typeDesignation"
177 name="%page.name.25">
178 </page>
179 <page
180 category="eu.etaxonomy.taxeditor.preferences.general"
181 class="eu.etaxonomy.taxeditor.preference.SpecimenOrObservationPreferences"
182 id="eu.etaxonomy.taxeditor.preference.SpecimenOrObservationPreferences"
183 name="%page.name.26">
184 </page>
185 <page
186 category="eu.etaxonomy.taxeditor.preferences.general"
187 class="eu.etaxonomy.taxeditor.preference.MediaPreferences"
188 id="eu.etaxonomy.taxeditor.preference.MediaPreferences"
189 name="%page.name.27">
190 </page>
191 <page
192 category="eu.etaxonomy.taxeditor.preferences.general"
193 class="eu.etaxonomy.taxeditor.preference.ChecklistEditorGeneralPreference"
194 id="eu.etaxonomy.taxeditor.preference.ChecklistEditorGeneralPreferencePage"
195 name="%page.name.28">
196 </page>
197 <page
198 category="eu.etaxonomy.taxeditor.preferences.general"
199 class="eu.etaxonomy.taxeditor.preference.TemplatePreferencePage"
200 id="eu.etaxonomy.taxeditor.preference.TemplatePreferencePage"
201 name="%page.name.29">
202 </page>
203 <page
204 category="eu.etaxonomy.taxeditor.preferences.general"
205 class="eu.etaxonomy.taxeditor.preference.LanguageEditorPreferencePage"
206 id="eu.etaxonomy.taxeditor.preference.defaultlanguagepditorpreferencePage"
207 name="%page.name.30">
208 </page>
209 <page
210 category="eu.etaxonomy.taxeditor.preferences.general"
211 class="eu.etaxonomy.taxeditor.preference.OrderPreferences"
212 id="eu.etaxonomy.taxeditor.preference.OrderPreferencesPage"
213 name="%page.name.31">
214 </page>
215 </extension>
216 <extension
217 point="org.eclipse.ui.views">
218 <view
219 class="eu.etaxonomy.taxeditor.view.datasource.CdmDataSourceViewPart"
220 icon="icons/system-file-manager.png"
221 id="eu.etaxonomy.taxeditor.view.datasource"
222 name="%view.name"
223 restorable="true">
224 </view>
225 <view
226 name="%view.name.0"
227 category="org.eclipse.ui"
228 class="org.eclipse.ui.ExtensionFactory:progressView"
229 id="org.eclipse.ui.views.ProgressView">
230 </view>
231 <view
232 name="%view.name.1"
233 icon="icons/console.gif"
234 category="org.eclipse.ui"
235 class="org.eclipse.ui.ExtensionFactory:logView"
236 id="org.eclipse.ui.views.LogView">
237 </view>
238 <view
239 class="eu.etaxonomy.taxeditor.view.reporting.ReportingViewPart"
240 id="eu.etaxonomy.taxeditor.reporting.viewPart"
241 name="%view.name.2"
242 restorable="true">
243 </view>
244 <view
245 allowMultiple="false"
246 class="eu.etaxonomy.taxeditor.view.supplementaldata.SupplementalDataViewPart"
247 icon="icons/applications-office.png"
248 id="eu.etaxonomy.taxeditor.view.supplementalData"
249 name="%view.name.3"
250 restorable="true">
251 </view>
252 <view
253 allowMultiple="false"
254 class="eu.etaxonomy.taxeditor.view.detail.DetailsViewPart"
255 icon="icons/accessories-text-editor.png"
256 id="eu.etaxonomy.taxeditor.view.detail"
257 name="%view.name.4"
258 restorable="true">
259 </view>
260 <view
261 class="eu.etaxonomy.taxeditor.view.userecords.UseRecordsViewPart"
262 icon="icons/leaf_detail.png"
263 id="eu.etaxonomy.taxeditor.view.userecords"
264 name="%view.name.5"
265 restorable="true">
266 </view>
267 <view
268 class="eu.etaxonomy.taxeditor.view.derivateSearch.DerivateSearchView"
269 icon="icons/derivate_search_view-16x16-32.png"
270 id="eu.etaxonomy.taxeditor.view.derivateSearch.DerivateSearchView"
271 name="%view.name.6"
272 restorable="true">
273 </view>
274 </extension>
275 <extension
276 point="org.eclipse.ui.editors">
277 <editor
278 class="eu.etaxonomy.taxeditor.editor.definedterm.DefinedTermEditor"
279 default="false"
280 id="eu.etaxonomy.taxeditor.editor.definedTerm"
281 name="%editor.name">
282 </editor>
283 </extension>
284 <extension
285 point="org.eclipse.ui.menus">
286 <menuContribution
287 locationURI="menu:org.eclipse.ui.main.menu.window?before=eu.etaxonomy.taxeditor.application.windowMenu.last">
288 <menu
289 id="eu.etaxonomy.taxeditor.menu.showView"
290 label="%menu.label">
291 <command
292 commandId="org.eclipse.ui.views.showView"
293 label="%command.label"
294 style="push">
295 <parameter
296 name="org.eclipse.ui.views.showView.viewId"
297 value="eu.etaxonomy.taxeditor.view.derivateSearch.DerivateSearchView">
298 </parameter>
299 <visibleWhen
300 checkEnabled="true">
301 <reference
302 definitionId="isCdmStoreConnected">
303 </reference>
304 </visibleWhen>
305 </command>
306 <separator
307 name="eu.etaxonomy.taxeditor.store.showViewMenu.details"
308 visible="true">
309 </separator>
310 <command
311 commandId="org.eclipse.ui.views.showView"
312 label="%command.label.0"
313 style="push">
314 <parameter
315 name="org.eclipse.ui.views.showView.viewId"
316 value="eu.etaxonomy.taxeditor.view.detail">
317 </parameter>
318 <visibleWhen
319 checkEnabled="true">
320 <reference
321 definitionId="isCdmStoreConnected">
322 </reference>
323 </visibleWhen>
324 </command>
325 <command
326 commandId="org.eclipse.ui.views.showView"
327 id="org.eclipse.ui.views.showView.supplemental"
328 label="%command.label.1"
329 style="push">
330 <parameter
331 name="org.eclipse.ui.views.showView.viewId"
332 value="eu.etaxonomy.taxeditor.view.supplementalData">
333 </parameter>
334 <visibleWhen
335 checkEnabled="true">
336 <reference
337 definitionId="isCdmStoreConnected">
338 </reference>
339 </visibleWhen>
340 </command>
341 <!-- Originally used by validation framework, currently not in use -->
342 <!-- <command
343 id="org.eclipse.ui.views.showView.problems"
344 commandId="org.eclipse.ui.views.showView"
345 label="Problems"
346 style="push">
347 <parameter
348 name="org.eclipse.ui.views.showView.viewId"
349 value="org.eclipse.ui.views.ProblemView">
350 </parameter>
351 </command> -->
352 <separator
353 name="eu.etaxonomy.taxeditor.store.showViewMenu.internal"
354 visible="true">
355 </separator>
356 <command
357 commandId="org.eclipse.ui.views.showView"
358 label="%command.label.2"
359 style="push">
360 <parameter
361 name="org.eclipse.ui.views.showView.viewId"
362 value="eu.etaxonomy.taxeditor.view.datasource">
363 </parameter>
364 </command>
365 <command
366 commandId="org.eclipse.ui.views.showView"
367 label="%command.label.3"
368 style="push">
369 <parameter
370 name="org.eclipse.ui.views.showView.viewId"
371 value="org.eclipse.pde.runtime.LogView">
372 </parameter>
373 </command>
374 <command
375 commandId="org.eclipse.ui.views.showView"
376 label="%command.label.4"
377 style="push">
378 <parameter
379 name="org.eclipse.ui.views.showView.viewId"
380 value="eu.etaxonomy.taxeditor.reporting.viewPart">
381 </parameter>
382 <visibleWhen
383 checkEnabled="true">
384 <and>
385 <reference
386 definitionId="isShowExperimentalFeatures">
387 </reference>
388 <reference
389 definitionId="isCdmStoreConnected">
390 </reference>
391 </and>
392 </visibleWhen>
393 </command>
394 </menu>
395 </menuContribution>
396 <menuContribution
397 locationURI="menu:org.eclipse.ui.main.menu.file?after=eu.etaxonomy.taxeditor.application.filemenu.io">
398 <command
399 commandId="eu.etaxonomy.taxeditor.store.operations.showLoginWindow"
400 label="%command.label.5"
401 style="push">
402 <visibleWhen
403 checkEnabled="true">
404 <reference
405 definitionId="isCdmStoreConnected">
406 </reference>
407 </visibleWhen>
408 </command>
409 <separator
410 name="eu.etaxonomy.taxeditor.application.filemenu.login"
411 visible="true">
412 </separator>
413 </menuContribution>
414 <menuContribution
415 locationURI="popup:eu.etaxonomy.taxeditor.view.datasource">
416 <command
417 commandId="eu.etaxonomy.taxeditor.store.datasource.change"
418 label="%command.label.6"
419 style="push">
420 <visibleWhen>
421 <with
422 variable="selection">
423 <not>
424 <test
425 property="eu.etaxonomy.taxeditor.datasource.propertyTester.test">
426 </test>
427 </not>
428 </with>
429 </visibleWhen>
430 </command>
431 <command
432 commandId="eu.etaxonomy.taxeditor.store.datasource.create"
433 label="%command.label.7"
434 style="push">
435 </command>
436 <command
437 commandId="eu.etaxonomy.taxeditor.store.datasource.edit"
438 label="%command.label.8"
439 style="push">
440 <visibleWhen>
441 <with
442 variable="selection">
443 <not>
444 <test
445 property="eu.etaxonomy.taxeditor.datasource.propertyTester.test">
446 </test>
447 </not>
448 </with>
449 </visibleWhen>
450 </command>
451 <command
452 commandId="eu.etaxonomy.taxeditor.store.datasource.clone"
453 label="%command.label.clone"
454 style="push">
455 <visibleWhen>
456 <with
457 variable="selection">
458 <not>
459 <test
460 property="eu.etaxonomy.taxeditor.datasource.propertyTester.test">
461 </test>
462 </not>
463 </with>
464 </visibleWhen>
465 </command>
466 <separator
467 name="eu.etaxonomy.taxeditor.store.datasource.separator"
468 visible="true">
469 </separator>
470 <command
471 commandId="eu.etaxonomy.taxeditor.view.datasource.delete"
472 label="%command.label.9"
473 style="push">
474 <visibleWhen>
475 <with
476 variable="selection">
477 <not>
478 <test
479 property="eu.etaxonomy.taxeditor.datasource.propertyTester.test">
480 </test>
481 </not>
482 </with>
483 </visibleWhen>
484 </command>
485 <separator
486 name="eu.etaxonomy.taxeditor.store.datasource.separator2"
487 visible="true">
488 </separator>
489 <command
490 commandId="eu.etaxonomy.taxeditor.store.datasource.close"
491 label="%command.label.10"
492 style="push">
493 <visibleWhen>
494 <with
495 variable="selection">
496 <not>
497 <test
498 property="eu.etaxonomy.taxeditor.datasource.propertyTester.test">
499 </test>
500 </not>
501 </with>
502 </visibleWhen>
503 </command>
504 <command
505 commandId="eu.etaxonomy.taxeditor.store.datasource.update"
506 label="%command.label.11"
507 style="push">
508 <visibleWhen
509 checkEnabled="true">
510 <not>
511 <reference
512 definitionId="isCompatible">
513 </reference>
514 </not>
515 </visibleWhen>
516
517 </command>
518 </menuContribution>
519 <menuContribution
520 locationURI="toolbar:org.eclipse.ui.trim.status">
521 <toolbar
522 id="eu.etaxonomy.taxeditor.store.authentication.trim.toolbar">
523 <control
524 class="eu.etaxonomy.taxeditor.ui.bar.AuthenticatedUserBar">
525 </control>
526 </toolbar>
527 </menuContribution>
528 <menuContribution
529 locationURI="popup:eu.etaxonomy.taxeditor.editor.definedTerm">
530 <menu
531 label="%menu.label.0">
532 <command
533 commandId="eu.etaxonomy.taxeditor.editor.definedTerms.newTermVocabulary"
534 label="%command.label.12"
535 style="push">
536 </command>
537 <command
538 commandId="eu.etaxonomy.taxeditor.editor.definedTerms.newDefinedTerm"
539 label="%command.label.13"
540 style="push">
541 <visibleWhen
542 checkEnabled="true">
543 <reference
544 definitionId="isModifiable">
545 </reference>
546 </visibleWhen>
547 </command>
548 </menu>
549 <command
550 commandId="eu.etaxonomy.taxeditor.editor.definedTerms.delete"
551 label="%command.label.14"
552 style="push">
553 <visibleWhen
554 checkEnabled="true">
555 <reference
556 definitionId="isModifiable">
557 </reference>
558 </visibleWhen>
559 </command>
560 </menuContribution>
561 <menuContribution
562 allPopups="false"
563 locationURI="popup:eu.etaxonomy.taxeditor.view.derivateSearch.DerivateSearchView">
564 <command
565 commandId="eu.etaxonomy.taxeditor.editor.handler.openDerivateView"
566 label="%command.label.openInSpecimenEditor"
567 style="push">
568 <visibleWhen
569 checkEnabled="true">
570 <with
571 variable="selection">
572 <count
573 value="+">
574 </count>
575 </with>
576 </visibleWhen>
577 </command>
578 </menuContribution>
579 <menuContribution
580 allPopups="false"
581 locationURI="menu:org.eclipse.ui.main.menu.window?before=eu.etaxonomy.taxeditor.application.windowMenu.last">
582 <dynamic
583 class="eu.etaxonomy.taxeditor.editor.definedterm.DefinedTermMenu"
584 id="eu.etaxonomy.taxeditor.editor.definedterm.DefinedTermMenu">
585 <visibleWhen
586 checkEnabled="true">
587 <reference
588 definitionId="isCdmStoreConnected">
589 </reference>
590 </visibleWhen>
591 </dynamic>
592 </menuContribution>
593 </extension>
594 <extension
595 point="org.eclipse.ui.handlers">
596 <handler
597 class="eu.etaxonomy.taxeditor.view.datasource.handler.DeleteDataSourceHandler"
598 commandId="eu.etaxonomy.taxeditor.view.datasource.delete">
599 <activeWhen>
600 <with
601 variable="activePartId">
602 <equals
603 value="eu.etaxonomy.taxeditor.view.datasource">
604 </equals>
605 </with>
606 </activeWhen>
607 </handler>
608 <handler
609 class="eu.etaxonomy.taxeditor.editor.definedterm.handler.DeleteTermBaseHandler"
610 commandId="eu.etaxonomy.taxeditor.editor.definedTerms.delete">
611 <activeWhen>
612 <with
613 variable="activePartId">
614 <equals
615 value="eu.etaxonomy.taxeditor.editor.definedTerm">
616 </equals>
617 </with>
618 </activeWhen>
619 </handler>
620 <handler
621 class="eu.etaxonomy.taxeditor.featuretree.OpenFeatureTreeEditorWizardHandler"
622 commandId="eu.etaxonomy.taxeditor.store.open.FeatureTreeEditorWizard">
623 <activeWhen>
624 <reference
625 definitionId="hasROLE_PROJECT_MANAGER">
626 </reference>
627 </activeWhen>
628 </handler>
629 <handler
630 class="eu.etaxonomy.taxeditor.handler.ShowLoginWindowHandler"
631 commandId="eu.etaxonomy.taxeditor.store.operations.showLoginWindow">
632 <enabledWhen>
633 <reference
634 definitionId="isUserLoggedIn">
635 </reference></enabledWhen>
636 </handler>
637 <handler
638 class="eu.etaxonomy.taxeditor.handler.OpenPasswordWizzardHandler"
639 commandId="eu.etaxonomy.taxeditor.store.openPasswordWizzard">
640 <enabledWhen>
641 <reference
642 definitionId="isUserLoggedIn">
643 </reference></enabledWhen>
644 </handler>
645 <handler
646 class="eu.etaxonomy.taxeditor.handler.OpenDistributionEditorWizardHandler"
647 commandId="eu.etaxonomy.taxeditor.store.open.OpenDistributionEditorWizardHandler">
648 <activeWhen>
649 <reference
650 definitionId="hasROLE_PROJECT_MANAGER">
651 </reference>
652 </activeWhen>
653 </handler>
654 </extension>
655 <extension
656 name="%extension.name.0"
657 point="org.eclipse.ui.commands">
658 <command
659 defaultHandler="eu.etaxonomy.taxeditor.view.datasource.handler.ChangeConnectionHandler"
660 id="eu.etaxonomy.taxeditor.store.datasource.change"
661 name="%command.name">
662 </command>
663 <command
664 defaultHandler="eu.etaxonomy.taxeditor.view.datasource.handler.EditDataSourceHandler"
665 id="eu.etaxonomy.taxeditor.store.datasource.edit"
666 name="%command.name.0">
667 </command>
668 <command
669 defaultHandler="eu.etaxonomy.taxeditor.view.datasource.handler.CloneDataSourceHandler"
670 id="eu.etaxonomy.taxeditor.store.datasource.clone"
671 name="%command.name.8">
672 </command>
673 <command
674 defaultHandler="eu.etaxonomy.taxeditor.view.datasource.handler.CreateDataSourceHandler"
675 id="eu.etaxonomy.taxeditor.store.datasource.create"
676 name="%command.name.1">
677 </command>
678 <command
679 defaultHandler="eu.etaxonomy.taxeditor.view.datasource.handler.CloseConnectionHandler"
680 id="eu.etaxonomy.taxeditor.store.datasource.close"
681 name="%command.name.2">
682 </command>
683 <command
684 defaultHandler="eu.etaxonomy.taxeditor.view.datasource.handler.DeleteDataSourceHandler"
685 id="eu.etaxonomy.taxeditor.view.datasource.delete"
686 name="%command.name.13">
687 </command>
688 <command
689 defaultHandler="eu.etaxonomy.taxeditor.view.datasource.handler.UpdateDataSourceHandler"
690 id="eu.etaxonomy.taxeditor.store.datasource.update"
691 name="%command.name.3">
692 </command>
693 <command
694 id="eu.etaxonomy.taxeditor.store.operations.showLoginWindow"
695 name="%command.name.4">
696 </command>
697 <command
698 defaultHandler="eu.etaxonomy.taxeditor.editor.definedterm.handler.OpenDefinedTermEditorHandler"
699 id="eu.etaxonomy.taxeditor.store.openDefinedTermEditor"
700 name="%command.name.5">
701 <commandParameter
702 id="eu.etaxonomy.taxeditor.store.openDefinedTermEditor.termTypeUuid"
703 name="%commandParameter.name.0"
704 optional="true">
705 </commandParameter>
706 </command>
707 <command
708 defaultHandler="eu.etaxonomy.taxeditor.editor.definedterm.handler.CreateDefinedTermHandler"
709 id="eu.etaxonomy.taxeditor.editor.definedTerms.newDefinedTerm"
710 name="%command.name.6">
711 </command>
712 <command
713 defaultHandler="eu.etaxonomy.taxeditor.editor.definedterm.handler.CreateTermVocabularyHandler"
714 id="eu.etaxonomy.taxeditor.editor.definedTerms.newTermVocabulary"
715 name="%command.name.7">
716 </command>
717 <command
718 id="eu.etaxonomy.taxeditor.store.open.FeatureTreeEditorWizard"
719 name="%command.name.9">
720 </command>
721 <command
722 id="eu.etaxonomy.taxeditor.store.openPasswordWizzard"
723 name="%command.name.10">
724 </command>
725 <command
726 id="eu.etaxonomy.taxeditor.store.open.OpenDistributionEditorWizardHandler"
727 name="%command.name.11">
728 </command>
729 <command
730 defaultHandler="eu.etaxonomy.taxeditor.view.datasource.handler.ChangeConnectionHandler"
731 id="eu.etaxonomy.taxeditor.datasource.connect"
732 name="%command.name.12">
733 </command>
734 <command
735 defaultHandler="eu.etaxonomy.taxeditor.editor.definedterm.handler.DeleteTermBaseHandler"
736 id="eu.etaxonomy.taxeditor.editor.definedTerms.delete"
737 name="%command.name.14">
738 </command>
739 <command
740 defaultHandler="eu.etaxonomy.taxeditor.handler.OpenHandler"
741 id="eu.etaxonomy.taxeditor.store.open"
742 name="Open">
743 </command>
744 </extension>
745 <extension
746 point="org.eclipse.ui.importWizards">
747 <category
748 id="eu.etaxonomy.taxeditor.import.category.cdm"
749 name="%category.name">
750 </category>
751 <wizard
752 category="eu.etaxonomy.taxeditor.import.category.cdm"
753 class="eu.etaxonomy.taxeditor.io.wizard.TcsImportWizard"
754 id="eu.etaxonomy.taxeditor.io.import.tcs"
755 name="%wizard.name">
756 </wizard>
757 <!-- <wizard
758 category="eu.etaxonomy.taxeditor.import.category.cdm"
759 class="eu.etaxonomy.taxeditor.io.wizard.JaxbImportWizard"
760 id="eu.etaxonomy.taxeditor.io.import.jaxb"
761 name="JAXB">
762 </wizard> -->
763 <!-- <wizard
764 category="eu.etaxonomy.taxeditor.import.category.cdm"
765 class="eu.etaxonomy.taxeditor.io.wizard.BerlinModelImportWizard"
766 id="eu.etaxonomy.taxeditor.io.import.berlinModel"
767 name="%wizard.name.0">
768 </wizard>
769 <wizard
770 category="eu.etaxonomy.taxeditor.import.category.cdm"
771 class="eu.etaxonomy.taxeditor.io.wizard.EndnoteImportWizard"
772 id="eu.etaxonomy.taxeditor.io.import.endnote"
773 name="%wizard.name.1">
774 </wizard>-->
775 <wizard
776 category="eu.etaxonomy.taxeditor.import.category.cdm"
777 class="eu.etaxonomy.taxeditor.io.wizard.ExcelNormalExplicitTaxaImportWizard"
778 id="eu.etaxonomy.taxeditor.io.import.excel.taxa"
779 name="%wizard.name.2">
780 </wizard>
781 <wizard
782 category="eu.etaxonomy.taxeditor.import.category.cdm"
783 class="eu.etaxonomy.taxeditor.io.wizard.AbcdImportWizard"
784 id="eu.etaxonomy.taxeditor.io.import.abcd"
785 name="%wizard.name.3">
786 </wizard>
787 <wizard
788 category="eu.etaxonomy.taxeditor.import.category.cdm"
789 class="eu.etaxonomy.taxeditor.io.wizard.SddImportWizard"
790 id="eu.etaxonomy.taxeditor.io.import.sdd"
791 name="%wizard.name.4">
792 </wizard>
793 <wizard
794 category="eu.etaxonomy.taxeditor.import.category.cdm"
795 class="eu.etaxonomy.taxeditor.io.wizard.SpecimenCdmExcelImportWizard"
796 id="eu.etaxonomy.taxeditor.io.import.specimenCdmExcel"
797 name="%wizard.name.5">
798 </wizard>
799 </extension>
800 <extension
801 point="org.eclipse.ui.exportWizards">
802 <category
803 id="eu.etaxonomy.taxeditor.export.category.cdm"
804 name="%category.name.0">
805 </category>
806 <wizard
807 category="eu.etaxonomy.taxeditor.export.category.cdm"
808 class="eu.etaxonomy.taxeditor.io.wizard.JaxbExportWizard"
809 id="eu.etaxonomy.taxeditor.io.export.jaxb"
810 name="%wizard.name.6">
811 </wizard>
812 <!--<wizard
813 category="eu.etaxonomy.taxeditor.export.category.cdm"
814 class="eu.etaxonomy.taxeditor.io.wizard.BerlinModelExportWizard"
815 id="eu.etaxonomy.taxeditor.io.export.berlinModel"
816 name="%wizard.name.7">
817 </wizard>-->
818 <category
819 id="eu.etaxonomy.taxeditor.export.category.excel"
820 name="%category.name.1">
821 </category>
822 <wizard
823 category="eu.etaxonomy.taxeditor.export.category.cdm"
824 class="eu.etaxonomy.taxeditor.io.wizard.SddExportWizard"
825 id="eu.etaxonomy.taxeditor.io.export.sdd"
826 name="%wizard.name.8">
827 </wizard>
828 <wizard
829 category="eu.etaxonomy.taxeditor.export.category.cdm"
830 class="eu.etaxonomy.taxeditor.io.wizard.DarwinCoreArchiveExportWizard"
831 id="eu.etaxonomy.taxeditor.io.export.dwca"
832 name="%wizard.name.9">
833 </wizard>
834 <wizard
835 category="eu.etaxonomy.taxeditor.export.category.cdm"
836 class="eu.etaxonomy.taxeditor.io.wizard.CsvExportWizard"
837 id="eu.etaxonomy.taxeditor.io.export.csv"
838 name="%wizard.name.18">
839 </wizard>
840 <wizard
841 category="eu.etaxonomy.taxeditor.export.category.cdm"
842 class="eu.etaxonomy.taxeditor.io.wizard.CsvNameExportWizard"
843 id="eu.etaxonomy.taxeditor.io.export.csv_name"
844 name="%wizard.name.19">
845 </wizard>
846 <wizard
847 category="eu.etaxonomy.taxeditor.export.category.cdm"
848 class="eu.etaxonomy.taxeditor.io.wizard.CsvPrintExportWizard"
849 id="eu.etaxonomy.taxeditor.io.export.csv_print"
850 name="%wizard.name.20">
851 </wizard>
852 </extension>
853 <extension
854 point="org.eclipse.ui.newWizards">
855 <wizard
856 category="eu.etaxonomy.taxeditor.new.category.cdm"
857 class="eu.etaxonomy.taxeditor.newWizard.NewReferenceWizard"
858 hasPages="true"
859 id="eu.etaxonomy.taxeditor.new.reference"
860 name="%wizard.name.10">
861 </wizard>
862 <wizard
863 category="eu.etaxonomy.taxeditor.new.category.cdm"
864 class="eu.etaxonomy.taxeditor.newWizard.NewNonViralNameWizard"
865 hasPages="true"
866 id="eu.etaxonomy.taxeditor.new.nonViralName"
867 name="%wizard.name.11">
868 </wizard>
869 <wizard
870 category="eu.etaxonomy.taxeditor.new.category.cdm"
871 class="eu.etaxonomy.taxeditor.newWizard.NewTeamWizard"
872 hasPages="true"
873 id="eu.etaxonomy.taxeditor.new.team"
874 name="%wizard.name.12">
875 </wizard>
876 <wizard
877 category="eu.etaxonomy.taxeditor.new.category.cdm"
878 class="eu.etaxonomy.taxeditor.newWizard.NewPersonWizard"
879 hasPages="true"
880 id="eu.etaxonomy.taxeditor.new.person"
881 name="%wizard.name.13">
882 </wizard>
883 <wizard
884 category="eu.etaxonomy.taxeditor.new.category.cdm"
885 class="eu.etaxonomy.taxeditor.newWizard.NewDerivedUnitBaseWizard"
886 hasPages="true"
887 id="eu.etaxonomy.taxeditor.new.specimen"
888 name="%wizard.name.14">
889 </wizard>
890 <wizard
891 category="eu.etaxonomy.taxeditor.new.category.cdm"
892 class="eu.etaxonomy.taxeditor.newWizard.NewPolytomousKeyWizard"
893 hasPages="true"
894 id="eu.etaxonomy.taxeditor.new.key.polytomous"
895 name="%wizard.name.15">
896 </wizard>
897 <category
898 id="eu.etaxonomy.taxeditor.new.category.cdm"
899 name="%category.name.2">
900 </category>
901 <wizard
902 category="eu.etaxonomy.taxeditor.new.category.cdm"
903 class="eu.etaxonomy.taxeditor.newWizard.NewTaxonNodeWizard"
904 hasPages="true"
905 id="eu.etaxonomy.taxeditor.new.taxonNode"
906 name="%wizard.name.16">
907 </wizard>
908 <wizard
909 category="eu.etaxonomy.taxeditor.new.category.cdm"
910 class="eu.etaxonomy.taxeditor.newWizard.NewClassificationWizard"
911 hasPages="true"
912 icon="icons/tree_icon_small.jpg"
913 id="eu.etaxonomy.taxeditor.new.classification"
914 name="%wizard.name.17">
915 </wizard>
916 </extension>
917 <extension
918 point="org.eclipse.ui.themes">
919 <themeElementCategory
920 id="eu.etaxonomy.taxeditor.preferences.themeElementCategory"
921 label="%themeElementCategory.label">
922 <description>
923 %themeElementCategory.description
924 </description>
925 </themeElementCategory>
926 <colorDefinition
927 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory"
928 id="eu.etaxonomy.taxeditor.preferences.colorDefinition.listBackground"
929 label="%colorDefinition.label"
930 value="150,150,150">
931 </colorDefinition>
932 <colorDefinition
933 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory"
934 id="eu.etaxonomy.taxeditor.preferences.colorDefinition.textDefault"
935 label="%colorDefinition.label.0"
936 value="0,0,0">
937 </colorDefinition>
938 <colorDefinition
939 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory"
940 id="eu.etaxonomy.taxeditor.preferences.colorDefinition.colorCompositeBackground"
941 label="%colorDefinition.label.1"
942 value="255,255,255">
943 </colorDefinition>
944 <colorDefinition
945 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory"
946 id="eu.etaxonomy.taxeditor.preferences.colorDefinition.colorCompositeIrrelevant"
947 label="%colorDefinition.label.2"
948 value="241,139,18">
949 </colorDefinition>
950 <colorDefinition
951 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory"
952 id="eu.etaxonomy.taxeditor.preferences.colorDefinition.textDisabled"
953 label="%colorDefinition.label.3"
954 value="150,150,150">
955 </colorDefinition>
956 <colorDefinition
957 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory"
958 id="eu.etaxonomy.taxeditor.preferences.colorDefinition.textBackgroundDisabled"
959 label="%colorDefinition.label.4"
960 value="230,230,230">
961 </colorDefinition>
962 <themeElementCategory
963 id="eu.etaxonomy.taxeditor.preferences.themeElementCategory.detailsView"
964 label="%themeElementCategory.label.0"
965 parentId="eu.etaxonomy.taxeditor.preferences.themeElementCategory">
966 <description>
967 %themeElementCategory.description.0
968 </description>
969 </themeElementCategory>
970 <colorDefinition
971 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory.detailsView"
972 id="eu.etaxonomy.taxeditor.preferences.colorDefinition.listBackgroundOdd"
973 label="%colorDefinition.label.5"
974 value="230,230,230">
975 </colorDefinition>
976 <colorDefinition
977 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory.detailsView"
978 id="eu.etaxonomy.taxeditor.preferences.colorDefinition.listBackgroundEven"
979 label="%colorDefinition.label.6"
980 value="255,255,255">
981 </colorDefinition>
982 <themeElementCategory
983 id="eu.etaxonomy.taxeditor.preferences.themeElementCategory.nameEditor"
984 label="%themeElementCategory.label.1"
985 parentId="eu.etaxonomy.taxeditor.preferences.themeElementCategory">
986 <description>
987 %themeElementCategory.description.1
988 </description>
989 </themeElementCategory>
990 <colorDefinition
991 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory.nameEditor"
992 id="eu.etaxonomy.taxeditor.preferences.colorDefinition.nameEditor.colorContainerBackground"
993 label="%colorDefinition.label.7"
994 value="220, 220, 220">
995 </colorDefinition>
996 <colorDefinition
997 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory.nameEditor"
998 id="eu.etaxonomy.taxeditor.preferences.colorDefinition.nameEditor.colorContainerSelectedFocus"
999 label="%colorDefinition.label.8"
1000 value="232,242,254">
1001 </colorDefinition>
1002 <colorDefinition
1003 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory.nameEditor"
1004 id="eu.etaxonomy.taxeditor.preferences.colorDefinition.nameEditor.colorContainerSelected"
1005 label="%colorDefinition.label.9"
1006 value="210, 210, 210">
1007 </colorDefinition>
1008 <colorDefinition
1009 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory.nameEditor"
1010 id="eu.etaxonomy.taxeditor.preferences.colorDefinition.nameEditor.colorContainerDragEnter"
1011 label="%colorDefinition.label.10"
1012 value="185,255,133">
1013 </colorDefinition>
1014 <fontDefinition
1015 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory.nameEditor"
1016 id="eu.etaxonomy.taxeditor.preferences.fontDefinition.nameEditor.accepted"
1017 label="%fontDefinition.label"
1018 value="Georgia-regular-12">
1019 </fontDefinition>
1020 <fontDefinition
1021 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory.nameEditor"
1022 id="eu.etaxonomy.taxeditor.preferences.fontDefinition.nameEditor.synonym"
1023 label="%fontDefinition.label.0"
1024 value="Georgia-regular-10">
1025 </fontDefinition>
1026 <fontDefinition
1027 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory.nameEditor"
1028 id="eu.etaxonomy.taxeditor.preferences.fontDefinition.nameEditor.misapplication"
1029 label="%fontDefinition.label.1"
1030 value="Georgia-regular-10">
1031 </fontDefinition>
1032 <fontDefinition
1033 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory.nameEditor"
1034 id="eu.etaxonomy.taxeditor.preferences.fontDefinition.nameEditor.concept"
1035 label="%fontDefinition.label.2"
1036 value="Georgia-regular-10">
1037 </fontDefinition>
1038 <fontDefinition
1039 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory.nameEditor"
1040 id="eu.etaxonomy.taxeditor.preferences.fontDefinition.nameEditor.default"
1041 label="%fontDefinition.label.3"
1042 value="Georgia-regular-10">
1043 </fontDefinition>
1044 <themeElementCategory
1045 id="eu.etaxonomy.taxeditor.preferences.themeElementCategory.searchView"
1046 label="%themeElementCategory.label.2"
1047 parentId="eu.etaxonomy.taxeditor.preferences.themeElementCategory">
1048 <description>
1049 %themeElementCategory.description.2
1050 </description>
1051 </themeElementCategory>
1052 <colorDefinition
1053 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory.searchView"
1054 id="eu.etaxonomy.taxeditor.preferences.colorDefinition.searchView.foreground"
1055 label="%colorDefinition.label.11"
1056 value="192, 192, 192">
1057 </colorDefinition>
1058 <colorDefinition
1059 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory.searchView"
1060 id="eu.etaxonomy.taxeditor.preferences.colorDefinition.searchView.focus"
1061 label="%colorDefinition.label.12"
1062 value="0, 0, 0">
1063 </colorDefinition>
1064 <fontDefinition
1065 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory.searchView"
1066 id="eu.etaxonomy.taxeditor.preferences.fontDefinition.searchView.accepted"
1067 isEditable="true"
1068 label="%fontDefinition.label.4"
1069 value="Arial-regular-10">
1070 <description>
1071 %fontDefinition.description
1072 </description>
1073 </fontDefinition>
1074 <fontDefinition
1075 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory.searchView"
1076 id="eu.etaxonomy.taxeditor.preferences.fontDefinition.searchView.synonym"
1077 isEditable="true"
1078 label="%fontDefinition.label.5"
1079 value="Arial-italic-10">
1080 <description>
1081 %fontDefinition.description.0
1082 </description>
1083 </fontDefinition>
1084 <fontDefinition
1085 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory.searchView"
1086 id="eu.etaxonomy.taxeditor.preferences.fontDefinition.searchView.other"
1087 isEditable="true"
1088 label="%fontDefinition.label.6"
1089 value="Lucida Grande-regular-11">
1090 <description>
1091 %fontDefinition.description.1
1092 </description>
1093 </fontDefinition>
1094 <colorDefinition
1095 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory.detailsView"
1096 id="eu.etaxonomy.taxeditor.preferences.colorDefinition.parseError"
1097 label="%colorDefinition.label.13"
1098 value="255,0,0">
1099 </colorDefinition>
1100 <colorDefinition
1101 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory.nameEditor"
1102 id="eu.etaxonomy.taxeditor.preferences.colorDefinition.disabledEditor"
1103 label="%colorDefinition.label.14"
1104 value="105,114,124">
1105 </colorDefinition>
1106 <colorDefinition
1107 categoryId="eu.etaxonomy.taxeditor.preferences.themeElementCategory"
1108 id="eu.etaxonomy.taxeditor.preferences.colorDefinition.editorError"
1109 label="%colorDefinition.label.15"
1110 value="255,0,0">
1111 </colorDefinition>
1112 </extension>
1113 <extension
1114 point="org.eclipse.core.expressions.propertyTesters">
1115 <propertyTester
1116 class="eu.etaxonomy.taxeditor.view.datasource.handler.DataSourceMenuPropertyTester"
1117 id="eu.etaxonomy.taxeditor.datasource.propertyTester"
1118 namespace="eu.etaxonomy.taxeditor.datasource.propertyTester"
1119 properties="isCompatible"
1120 type="org.eclipse.jface.viewers.IStructuredSelection">
1121 </propertyTester>
1122 <propertyTester
1123 class="eu.etaxonomy.taxeditor.view.datasource.handler.DataSourceMenuPropertyTester"
1124 id="eu.etaxonomy.taxeditor.datasource.propertyTester"
1125 namespace="eu.etaxonomy.taxeditor.datasource.propertyTester"
1126 properties="test"
1127 type="org.eclipse.jface.viewers.IStructuredSelection">
1128 </propertyTester>
1129 <propertyTester
1130 class="eu.etaxonomy.taxeditor.preference.PreferencePropertyTester"
1131 id="eu.etaxonomy.taxeditor.preferences.propertyTester"
1132 namespace="eu.etaxonomy.taxeditor.preferences.propertyTester"
1133 properties="isShowExperimentalFeatures"
1134 type="org.eclipse.jface.viewers.IStructuredSelection">
1135 </propertyTester>
1136 <propertyTester
1137 class="eu.etaxonomy.taxeditor.editor.definedterm.TermBasePropertyTester"
1138 id="eu.etaxonomy.taxeditor.store.termEditor.propertyTester"
1139 namespace="eu.etaxonomy.taxeditor.store.termEditor.propertyTester"
1140 properties="isModifiable"
1141 type="org.eclipse.jface.viewers.IStructuredSelection">
1142 </propertyTester>
1143 <propertyTester
1144 class="eu.etaxonomy.taxeditor.security.PermissionPropertyTester"
1145 id="eu.etaxonomy.taxeditor.security.permissionTester"
1146 namespace="eu.etaxonomy.taxeditor.security.permissionTester"
1147 properties="hasPermissions, hasRoles"
1148 type="org.eclipse.jface.viewers.IStructuredSelection">
1149 </propertyTester>
1150 </extension>
1151 <extension
1152 point="org.eclipse.core.expressions.definitions">
1153 <definition
1154 id="isCompatible">
1155 <with
1156 variable="selection">
1157 <test
1158 property="eu.etaxonomy.taxeditor.datasource.propertyTester.isCompatible">
1159 </test>
1160 </with>
1161 </definition>
1162 <definition
1163 id="isShowExperimentalFeatures">
1164 <with
1165 variable="selection">
1166 <test
1167 property="eu.etaxonomy.taxeditor.preferences.propertyTester.isShowExperimentalFeatures">
1168 </test>
1169 </with>
1170 </definition>
1171 <definition
1172 id="isModifiable">
1173 <with
1174 variable="selection">
1175 <test
1176 property="eu.etaxonomy.taxeditor.store.termEditor.propertyTester.isModifiable">
1177 </test>
1178 </with>
1179 </definition>
1180 <definition
1181 id="canUPDATE">
1182 <with
1183 variable="selection">
1184 <test
1185 args="UPDATE"
1186 property="eu.etaxonomy.taxeditor.security.permissionTester.hasPermissions">
1187 </test>
1188 </with>
1189 </definition>
1190 <definition
1191 id="canDELETE">
1192 <with
1193 variable="selection">
1194 <test
1195 args="DELETE"
1196 property="eu.etaxonomy.taxeditor.security.permissionTester.hasPermissions">
1197 </test>
1198 </with>
1199 </definition>
1200 <definition
1201 id="canCREATE">
1202 <with
1203 variable="selection">
1204 <test
1205 args="CREATE"
1206 property="eu.etaxonomy.taxeditor.security.permissionTester.hasPermissions">
1207 </test>
1208 </with>
1209 </definition>
1210 <definition
1211 id="isUserLoggedIn">
1212 <with
1213 variable="eu.etaxonomy.taxeditor.security.user">
1214 <instanceof
1215 value="eu.etaxonomy.cdm.model.common.User">
1216 </instanceof>
1217 </with>
1218 </definition>
1219 <definition
1220 id="hasROLE_USER_MANAGER">
1221 <with
1222 variable="eu.etaxonomy.taxeditor.security.userRoles">
1223 <iterate
1224 ifEmpty="false"
1225 operator="or">
1226 <or>
1227 <equals
1228 value="ROLE_ADMIN">
1229 </equals>
1230 <equals
1231 value="ROLE_USER_MANAGER">
1232 </equals>
1233 </or>
1234 </iterate>
1235 </with>
1236 </definition>
1237 <definition
1238 id="hasROLE_PROJECT_MANAGER">
1239 <with
1240 variable="eu.etaxonomy.taxeditor.security.userRoles">
1241 <iterate
1242 ifEmpty="false"
1243 operator="or">
1244 <or>
1245 <equals
1246 value="ROLE_ADMIN">
1247 </equals>
1248 <equals
1249 value="ROLE_PROJECT_MANAGER">
1250 </equals>
1251 </or>
1252 </iterate>
1253 </with>
1254 </definition>
1255 </extension>
1256 <extension
1257 point="org.eclipse.ui.activities">
1258 <activity
1259 description="%activity.description"
1260 id="eu.etaxonomy.taxeditor.store.activityDelete"
1261 name="%activity.name">
1262 <enabledWhen>
1263 <reference
1264 definitionId="canDELETE">
1265 </reference>
1266 </enabledWhen>
1267 </activity>
1268 <activityPatternBinding
1269 activityId="eu.etaxonomy.taxeditor.store.activityDelete"
1270 pattern="eu\.etaxonomy\.taxeditor\..*/.*.delete">
1271 </activityPatternBinding>
1272 <activity
1273 description="%activity.description.0"
1274 id="eu.etaxonomy.taxeditor.store.activityUpdate"
1275 name="%activity.name.0">
1276 <enabledWhen>
1277 <reference
1278 definitionId="canUPDATE">
1279 </reference>
1280 </enabledWhen>
1281 </activity>
1282 <activityPatternBinding
1283 activityId="eu.etaxonomy.taxeditor.store.activityUpdate"
1284 pattern="eu\.etaxonomy\.taxeditor\..*/.*.command\.update\..*">
1285 </activityPatternBinding>
1286 <activity
1287 description="%activity.description.1"
1288 id="eu.etaxonomy.taxeditor.store.activityCreate"
1289 name="%activity.name.1">
1290 <enabledWhen>
1291 <reference
1292 definitionId="canDELETE">
1293 </reference>
1294 </enabledWhen>
1295 </activity>
1296 <activityPatternBinding
1297 activityId="eu.etaxonomy.taxeditor.store.activityCreate"
1298 pattern="eu\.etaxonomy\.taxeditor\..*/.*.command\.create\..*">
1299 </activityPatternBinding>
1300 <activity
1301 description="%activity.description.2"
1302 id="eu.etaxonomy.taxeditor.store.activityUserManagement"
1303 name="%activity.name.2">
1304 <enabledWhen>
1305 <reference
1306 definitionId="hasROLE_USER_MANAGER">
1307 </reference>
1308 </enabledWhen>
1309 </activity>
1310 <activityPatternBinding
1311 activityId="eu.etaxonomy.taxeditor.store.activityUserManagement"
1312 pattern="eu\.etaxonomy\.taxeditor\..*/.*.UserManagement">
1313 </activityPatternBinding>
1314 <activityPatternBinding
1315 activityId="eu.etaxonomy.taxeditor.store.activityUserManagement"
1316 pattern="eu\.etaxonomy\.taxeditor\..*/bulkeditor\.input\.group">
1317 </activityPatternBinding>
1318 <activity
1319 description="%activity.description.3"
1320 id="eu.etaxonomy.taxeditor.store.activityProjectManagement"
1321 name="%activity.name.3">
1322 <enabledWhen>
1323 <reference
1324 definitionId="hasROLE_PROJECT_MANAGER">
1325 </reference>
1326 </enabledWhen>
1327 </activity>
1328 <activityPatternBinding
1329 activityId="eu.etaxonomy.taxeditor.store.activityProjectManagement"
1330 pattern="eu\.etaxonomy\.taxeditor\..*/eu\.etaxonomy\.taxeditor\..*\.definedTerm.*">
1331 </activityPatternBinding>
1332 <activityPatternBinding
1333 activityId="eu.etaxonomy.taxeditor.store.activityProjectManagement"
1334 pattern="eu.etaxonomy.taxeditor.bulkeditor/bulkeditor.menus.openmenu"
1335 isEqualityPattern="true">
1336 </activityPatternBinding>
1337 <activityPatternBinding
1338 activityId="eu.etaxonomy.taxeditor.store.activityProjectManagement"
1339 pattern="eu.etaxonomy.taxeditor.bulkeditor/eu.etaxonomy.taxeditor.editor.definedTerm"
1340 isEqualityPattern="true">
1341 </activityPatternBinding>
1342 </extension>
1343 <extension
1344 point="org.eclipse.ui.services">
1345 <sourceProvider
1346 provider="eu.etaxonomy.taxeditor.security.AuthenticationSourceProvider">
1347 <variable
1348 name="eu.etaxonomy.taxeditor.security.userRoles"
1349 priorityLevel="workbench">
1350 </variable>
1351 </sourceProvider>
1352 </extension>
1353 </plugin>