Merge branch 'release/5.31.0'
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / 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.editor.Application">
10 </run>
11 </application>
12 </extension>
13 <extension
14 point="org.eclipse.core.runtime.adapters">
15 <factory
16 adaptableType="eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor"
17 class="eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditorAdapterFactory">
18 <adapter
19 type="eu.etaxonomy.taxeditor.editor.DuplicateArbitrator">
20 </adapter>
21 </factory>
22 </extension>
23 <extension
24 point="org.eclipse.ui.views">
25 <view
26 allowMultiple="false"
27 category="eu.etaxonomy.taxeditor.editor.category"
28 class="eu.etaxonomy.taxeditor.editor.view.validation.ValidationProblemsView"
29 icon="icons/edit_16x16.gif"
30 id="eu.etaxonomy.taxeditor.editor.view.validation.problems"
31 name="%view.name.6">
32 </view>
33 </extension>
34
35 <!-- VALIDATION RELATED STUFF -->
36 <extension point="org.eclipse.core.resources.markers" name="%extension.name.0" id="eu.etaxonomy.taxeditor.markers.validationerror">
37 <super type="org.eclipse.core.resources.problemmarker"/>
38 <attribute name="databaseId"/>
39 <attribute name="userFriendlyTypeName"/>
40 <attribute name="userFriendlyDescription"/>
41 <attribute name="userFriendlyFieldName"/>
42 <attribute name="validatorMessage"/>
43 <attribute name="invalidValue"/>
44 <attribute name="validatorClass"/>
45 <attribute name="entityClass"/>
46 <attribute name="entityId"/>
47 <persistent value="false"/>
48 </extension>
49
50 <extension point="org.eclipse.ui.ide.markerSupport">
51 <markerContentGenerator
52 id="eu.etaxonomy.taxeditor.editor.validation.ValidationProblemsMarkerGenerator"
53 name="%markerContentGenerator.name">
54 <markerTypeReference id="eu.etaxonomy.taxeditor.markers.validationerror" />
55
56 <markerFieldReference id="eu.etaxonomy.taxeditor.markers.validation.userFriendlyTypeName" visible="true" />
57 <markerFieldReference id="eu.etaxonomy.taxeditor.markers.validation.userFriendlyDescription" visible="true" />
58 <markerFieldReference id="eu.etaxonomy.taxeditor.markers.validation.userFriendlyFieldName" visible="true" />
59 <markerFieldReference id="eu.etaxonomy.taxeditor.markers.validation.validatorMessage" visible="true" />
60 <markerFieldReference id="eu.etaxonomy.taxeditor.markers.validation.invalidValue" visible="true" />
61 <markerFieldReference id="eu.etaxonomy.taxeditor.markers.validation.validatorClass" visible="false" />
62 <markerFieldReference id="eu.etaxonomy.taxeditor.markers.validation.entityClass" visible="false" />
63 <markerFieldReference id="eu.etaxonomy.taxeditor.markers.validation.entityId" visible="false" />
64 </markerContentGenerator>
65
66 <markerField
67 class="eu.etaxonomy.taxeditor.editor.view.validation.UserFriendlyTypeNameMarkerField"
68 id="eu.etaxonomy.taxeditor.markers.validation.userFriendlyTypeName"
69 name="%marker.field.0">
70 </markerField>
71 <markerField
72 class="eu.etaxonomy.taxeditor.editor.view.validation.UserFriendlyDescriptionMarkerField"
73 id="eu.etaxonomy.taxeditor.markers.validation.userFriendlyDescription"
74 name="%marker.field.1">
75 </markerField>
76 <markerField
77 class="eu.etaxonomy.taxeditor.editor.view.validation.UserFriendlyFieldNameMarkerField"
78 id="eu.etaxonomy.taxeditor.markers.validation.userFriendlyFieldName"
79 name="%marker.field.2 = Attribute">
80 </markerField>
81 <markerField
82 class="eu.etaxonomy.taxeditor.editor.view.validation.InvalidValueMarkerField"
83 id="eu.etaxonomy.taxeditor.markers.validation.invalidValue"
84 name="%marker.field.3 = Problematic Value">
85 </markerField>
86 <markerField
87 class="eu.etaxonomy.taxeditor.editor.view.validation.ValidatorMessageMarkerField"
88 id="eu.etaxonomy.taxeditor.markers.validation.validatorMessage"
89 name="%marker.field.4 = Problem description">
90 </markerField>
91 <markerField
92 class="eu.etaxonomy.taxeditor.editor.view.validation.ValidatorClassMarkerField"
93 id="eu.etaxonomy.taxeditor.markers.validation.validatorClass"
94 name="%marker.field.5">
95 </markerField>
96 <markerField
97 class="eu.etaxonomy.taxeditor.editor.view.validation.EntityClassMarkerField"
98 id="eu.etaxonomy.taxeditor.markers.validation.entityClass"
99 name="%marker.field.6">
100 </markerField>
101 <markerField
102 class="eu.etaxonomy.taxeditor.editor.view.validation.EntityIdMarkerField"
103 id="eu.etaxonomy.taxeditor.markers.validation.entityId"
104 name="%marker.field.7">
105 </markerField>
106 </extension>
107
108 <extension
109 point="org.eclipse.ui.elementFactories">
110 <factory
111 class="eu.etaxonomy.taxeditor.editor.TaxonEditorInputFactory"
112 id="eu.etaxonomy.taxeditor.editor.name.taxonEditorInputFactory">
113 </factory>
114 </extension>
115 <extension
116 point="org.eclipse.ui.menus">
117 <menuContribution
118 locationURI="menu:eu.etaxonomy.taxeditor.menu.showView?before=eu.etaxonomy.taxeditor.store.showViewMenu.internal">
119 <separator
120 name="eu.etaxonomy.taxeditor.store.showViewMenu.validation.separator"
121 visible="true">
122 </separator>
123 <command
124 commandId="org.eclipse.ui.views.showView"
125 label="%command.name.40"
126 style="push">
127 <parameter
128 name="org.eclipse.ui.views.showView.viewId"
129 value="eu.etaxonomy.taxeditor.editor.view.validation.problems">
130 </parameter>
131 <visibleWhen
132 checkEnabled="true">
133 <reference
134 definitionId="isCdmStoreConnected">
135 </reference>
136 </visibleWhen>
137 </command>
138 </menuContribution>
139
140
141
142
143
144
145 <menuContribution
146 allPopups="false"
147 locationURI="toolbar:org.eclipse.ui.main.toolbar?after=eu.etaxonomy.taxeditor.navigation.search.toolbar">
148 <toolbar
149 id="eu.etaxonomy.taxeditor.editor.derivativeViewToolbar">
150 <command
151 commandId="eu.etaxonomy.taxeditor.editor.derivative.listenToSelectionChange"
152 icon="icons/synced.gif"
153 label="%command.label.LINK_WITH_TAXON_SELECTIO"
154 style="toggle">
155 <visibleWhen
156 checkEnabled="true">
157 <with
158 variable="activePartId">
159 <equals
160 value="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView">
161 </equals>
162 </with>
163 </visibleWhen>
164 </command>
165 </toolbar>
166 </menuContribution>
167 </extension>
168 <extension
169 point="org.eclipse.core.expressions.definitions">
170 <definition
171 id="nameEditorActive">
172 <with
173 variable="activeEditorId">
174 <equals
175 value="eu.etaxonomy.taxeditor.editor.multipagetaxonview">
176 </equals>
177 </with>
178 </definition>
179 <definition
180 id="isAcceptedTaxon">
181 <with
182 variable="selection">
183 <test
184 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isAcceptedTaxon">
185 </test>
186 </with>
187 </definition>
188 <definition
189 id="isNotHomotypicSynonymOfAcceptedTaxon">
190 <with
191 variable="selection">
192 <test
193 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isNotHomotypicSynonymOfAcceptedTaxon">
194 </test>
195 </with>
196 </definition>
197 <definition
198 id="isNotAcceptedTaxon">
199 <with
200 variable="selection">
201 <test
202 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isNotAcceptedTaxon">
203 </test>
204 </with>
205 </definition>
206 <definition
207 id="isSynonymInHomotypicalGroupWithMoreSynonyms">
208 <with
209 variable="selection">
210 <test
211 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isSynonymInHomotypicalGroupWithMoreSynonyms">
212 </test>
213 </with>
214 </definition>
215 <definition
216 id="isSynonym">
217 <with
218 variable="selection">
219 <test
220 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isSynonym">
221 </test>
222 </with>
223 </definition>
224 <definition
225 id="isNotSynonym">
226 <with
227 variable="selection">
228 <test
229 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isNotSynonym">
230 </test>
231 </with>
232 </definition>
233 <definition
234 id="isMisapplication">
235 <with
236 variable="selection">
237 <test
238 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isMisapplication">
239 </test>
240 </with>
241 </definition>
242 <definition
243 id="isProparteSynonym">
244 <with
245 variable="selection">
246 <test
247 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isProparteSynonym">
248 </test>
249 </with>
250 </definition>
251 <definition
252 id="isNotProparteSynonym">
253 <with
254 variable="selection">
255 <test
256 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isNotProparteSynonym">
257 </test>
258 </with>
259 </definition>
260 <definition
261 id="isNotMisapplication">
262 <with
263 variable="selection">
264 <test
265 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isNotMisapplication">
266 </test>
267 </with>
268 </definition>
269 <definition
270 id="isTaxonBase">
271 <with
272 variable="selection">
273 <test
274 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isTaxonBase">
275 </test>
276 </with>
277 </definition>
278 <definition
279 id="hasEmptyNames">
280 <with
281 variable="selection">
282 <test
283 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.hasEmptyNames">
284 </test>
285 </with>
286 </definition>
287 <definition
288 id="isDeletable">
289 <with
290 variable="selection">
291 <test
292 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDeletable">
293 </test>
294 </with>
295 </definition>
296 <definition
297 id="isMedia">
298 <with
299 variable="selection">
300 <test
301 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isMedia">
302 </test>
303 </with>
304 </definition>
305 <definition
306 id="isTaxonEditor">
307 <with
308 variable="selection">
309 <test
310 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isTaxonEditor">
311 </test>
312 </with>
313 </definition>
314 <definition
315 id="isBulkEditor">
316 <with
317 variable="selection">
318 <test
319 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isBulkEditor">
320 </test>
321 </with>
322 </definition>
323 <definition
324 id="isDerivateEditor">
325 <with
326 variable="selection">
327 <test
328 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDerivateEditor">
329 </test>
330 </with>
331 </definition>
332 <definition
333 id="isDescription">
334 <with
335 variable="selection">
336 <test
337 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDescription">
338 </test>
339 </with>
340 </definition>
341 <definition
342 id="isDescriptionElement">
343 <with
344 variable="selection">
345 <test
346 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDescriptionElement">
347 </test>
348 </with>
349 </definition>
350 <definition
351 id="isFeatureNodeContainer">
352 <with
353 variable="selection">
354 <test
355 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isFeatureNodeContainer">
356 </test>
357 </with>
358 </definition>
359 <definition
360 id="isImageGallery">
361 <with
362 variable="selection">
363 <test
364 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isImageGallery">
365 </test>
366 </with>
367 </definition>
368 <definition
369 id="isAcceptedAndHasNoHomotypicSynonyms">
370 <with
371 variable="selection">
372 <test
373 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isAcceptedAndHasNoHomotypicSynonyms">
374 </test>
375 </with>
376 </definition>
377 <definition
378 id="isIndividualsAssociation">
379 <with
380 variable="selection">
381 <test
382 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isIndividualsAssociation">
383 </test>
384 </with>
385 </definition>
386 <definition
387 id="isRemoting">
388 <test
389 property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isRemoting">
390 </test>
391 </definition>
392 <definition
393 id="isKeyNode">
394 <with
395 variable="selection">
396 <test
397 property="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyPropertyTester.isKeyNode">
398 </test>
399 </with>
400 </definition>
401 <definition
402 id="isSequence">
403 <with
404 variable="selection">
405 <test
406 property="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester.isSequence">
407 </test>
408 </with>
409 </definition>
410 <definition
411 id="isSingleRead">
412 <with
413 variable="selection">
414 <test
415 property="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester.isSingleRead">
416 </test>
417 </with>
418 </definition>
419 <definition
420 id="isSpecimenOrObservationBase">
421 <with
422 variable="selection">
423 <test
424 property="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester.isSpecimenOrObservationBase">
425 </test>
426 </with>
427 </definition>
428 <definition
429 id="isDerivativeEditorLinkedToTaxonSelection">
430 <with
431 variable="activeEditor">
432 <test
433 property="eu.etaxonomy.taxeditor.editor.view.derivate.DerivativeEditorPropertyTester.isLinkedWithTaxonSelection">
434 </test>
435 </with>
436 </definition>
437 <definition
438 id="isOrphanedTaxon">
439 <with
440 variable="selection">
441 <test
442 forcePluginActivation="true"
443 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isOrphaned">
444 </test>
445 </with>
446 </definition>
447 <definition
448 id="isAddDerivateAllowed">
449 <with
450 variable="selection">
451 <test
452 property="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester.isAddDerivateAllowed">
453 </test>
454 </with>
455 </definition>
456 <definition
457 id="isAddMediaAllowed">
458 <with
459 variable="selection">
460 <test
461 property="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester.isAddMediaAllowed">
462 </test>
463 </with>
464 </definition>
465 </extension>
466 <extension
467 point="org.eclipse.core.expressions.propertyTesters">
468 <propertyTester
469 class="eu.etaxonomy.taxeditor.editor.name.handler.NameEditorMenuPropertyTester"
470 id="eu.etaxonomy.taxeditor.editor.name.propertyTester"
471 namespace="eu.etaxonomy.taxeditor.editor.name.propertyTester"
472 properties="isAcceptedTaxon,isSynonym,isNotSynonym,isMisapplication,isProparteSynonym,isNotProparteSynonym,isNotMisapplication,isTaxonBase,hasEmptyNames,isAcceptedAndHasNoHomotypicSynonyms,isNotHomotypicSynonymOfAcceptedTaxon,isNotAcceptedTaxon,isSynonymInHomotypicalGroupWithMoreSynonyms,isOrphaned"
473 type="java.lang.Object">
474 </propertyTester>
475 <propertyTester
476 class="eu.etaxonomy.taxeditor.editor.view.descriptive.e4.handler.DescriptionsMenuPropertyTesterE4"
477 id="eu.etaxonomy.taxeditor.descriptions.propertyTester"
478 namespace="eu.etaxonomy.taxeditor.descriptions.propertyTester"
479 properties="isMedia,isDescription,isDescriptionElement,isDeletable,isFeatureNodeContainer,isImageGallery,isTaxonEditor,isBulkEditor,isDerivateEditor, isIndividualsAssociation"
480 type="java.lang.Object">
481 </propertyTester>
482 <propertyTester
483 class="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester"
484 id="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester"
485 namespace="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester"
486 properties="isSequence,isSingleRead,isSpecimenOrObservationBase,isAddDerivateAllowed,isAddMediaAllowed"
487 type="org.eclipse.jface.viewers.IStructuredSelection">
488 </propertyTester>
489 <propertyTester
490 class="eu.etaxonomy.taxeditor.editor.view.derivate.DerivativeEditorPropertyTester"
491 id="eu.etaxonomy.taxeditor.editor.view.derivate.DerivativeEditorPropertyTester"
492 namespace="eu.etaxonomy.taxeditor.editor.view.derivate.DerivativeEditorPropertyTester"
493 properties="isLinkedWithTaxonSelection"
494 type="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView">
495 </propertyTester>
496 <propertyTester
497 class="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyPropertyTester"
498 id="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyPropertyTester"
499 namespace="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyPropertyTester"
500 properties="isKeyNode"
501 type="org.eclipse.jface.viewers.IStructuredSelection">
502 </propertyTester>
503 </extension>
504 <extension
505 point="org.eclipse.ui.bindings">
506 <scheme
507 description="%scheme.description"
508 id="eu.etaxonomy.taxeditor.bindings.scheme.default"
509 name="%scheme.name">
510 </scheme>
511 </extension>
512 <!--extension
513 point="org.eclipse.ui.importWizards">
514 <wizard
515 category="eu.etaxonomy.taxeditor.import.category.cdm"
516 class="eu.etaxonomy.taxeditor.editor.view.dataimport.SpecimenSearchWizard"
517 id="eu.etaxonomy.taxeditor.editor.view.dataimport.SpecimenSearchWizard"
518 name="%wizard.name">
519 <description>
520 %wizard.description
521 </description>
522 </wizard>
523 </extension-->
524 <extension
525 point="eu.etaxonomy.taxeditor.store.cdmViewer">
526 <viewCommandMapping
527 commandId="eu.etaxonomy.taxeditor.editor.openTaxonEditorForTaxonNode"
528 selection="eu.etaxonomy.cdm.model.taxon.TaxonNode"
529 viewerName="%viewCommandMapping.viewerName.NAME_EDITOR">
530 </viewCommandMapping>
531 <viewCommandMapping
532 commandId="eu.etaxonomy.taxeditor.editor.openTaxonEditorForTaxon"
533 selection="eu.etaxonomy.cdm.model.taxon.TaxonBase"
534 viewerName="%viewCommandMapping.viewerName.NAME_EDITOR">
535 </viewCommandMapping>
536 <viewCommandMapping
537 commandId="eu.etaxonomy.taxeditor.editor.openSpecimenEditorForIndividualsAssociation"
538 selection="eu.etaxonomy.cdm.model.description.IndividualsAssociation"
539 viewerName="%viewCommandMapping.viewerName.SPECIMEN_EDITOR">
540 </viewCommandMapping>
541 <viewCommandMapping
542 commandId="eu.etaxonomy.taxeditor.editor.openSpecimenEditorForTaxonNode"
543 selection="eu.etaxonomy.cdm.model.taxon.TaxonNode"
544 viewerName="%viewCommandMapping.viewerName.SPECIMEN_EDITOR">
545 </viewCommandMapping>
546 <viewCommandMapping
547 commandId="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistViewHandler"
548 selection="eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode"
549 viewerName="%viewCommandMapping.viewerName.CHECKLIST_EDITOR">
550 </viewCommandMapping>
551 <viewCommandMapping
552 commandId="eu.etaxonomy.taxeditor.openSpecimenEditorForTypeSpecimen"
553 selection="eu.etaxonomy.cdm.model.name.SpecimenTypeDesignation"
554 viewerName="%viewCommandMapping.viewerName.SPECIMEN_EDITOR">
555 </viewCommandMapping>
556 <viewCommandMapping
557 commandId="eu.etaxonomy.taxeditor.editor.view.concept.command.open"
558 selection="eu.etaxonomy.cdm.model.taxon.TaxonRelationship"
559 viewerName="Taxon Editor">
560 </viewCommandMapping>
561 <viewCommandMapping
562 commandId="eu.etaxonomy.taxeditor.editor.openBulkEditorForTaxonRelationship"
563 selection="eu.etaxonomy.cdm.model.taxon.TaxonRelationship"
564 viewerName="Bulk Editor">
565 </viewCommandMapping>
566 <viewCommandMapping
567 commandId="eu.etaxonomy.taxeditor.editor.openSpecimenEditorForSpecimenOrObservation"
568 selection="eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase"
569 viewerName="Specimen Editor (tree)">
570 </viewCommandMapping>
571 <viewCommandMapping
572 commandId="eu.etaxonomy.taxeditor.editor.command.descriptiveDataSet.openDescriptiveDataSetEditor"
573 selection="eu.etaxonomy.cdm.model.description.DescriptiveDataSet"
574 viewerName="Descriptive Dataset Editor">
575 </viewCommandMapping>
576 <viewCommandMapping
577 commandId="eu.etaxonomy.taxeditor.editor.command.descriptiveDataSet.openCharacterMatrix"
578 selection="eu.etaxonomy.cdm.model.description.DescriptiveDataSet"
579 viewerName="Character Matrix">
580 </viewCommandMapping>
581 <viewCommandMapping
582 commandId="eu.etaxonomy.taxeditor.editor.command.descriptiveDataSet.openDescriptiveDataSetEditor"
583 selection="eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache"
584 viewerName="Descriptive Dataset Editor">
585 </viewCommandMapping>
586 <viewCommandMapping
587 commandId="eu.etaxonomy.taxeditor.openSpecimenEditorForGatheringEvent"
588 selection="eu.etaxonomy.cdm.model.occurrence.GatheringEvent"
589 viewerName="%viewCommandMapping.viewerName.SPECIMEN_EDITOR">
590 </viewCommandMapping>
591 </extension>
592 <extension
593 id="eu.etaxonomy.taxeditor.editor.workbench.model"
594 name="Editor Workbench Model"
595 point="org.eclipse.e4.workbench.model">
596 <fragment
597 apply="always"
598 uri="fragment.e4xmi">
599 </fragment>
600 </extension>
601 </plugin>