ref #6913 remove E3 commands and handlers
[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="isMisapplication">
226 <with
227 variable="selection">
228 <test
229 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isMisapplication">
230 </test>
231 </with>
232 </definition>
233 <definition
234 id="isNotMisapplication">
235 <with
236 variable="selection">
237 <test
238 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isNotMisapplication">
239 </test>
240 </with>
241 </definition>
242 <definition
243 id="isTaxonBase">
244 <with
245 variable="selection">
246 <test
247 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isTaxonBase">
248 </test>
249 </with>
250 </definition>
251 <definition
252 id="hasEmptyNames">
253 <with
254 variable="selection">
255 <test
256 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.hasEmptyNames">
257 </test>
258 </with>
259 </definition>
260 <definition
261 id="isDeletable">
262 <with
263 variable="selection">
264 <test
265 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDeletable">
266 </test>
267 </with>
268 </definition>
269 <definition
270 id="isMedia">
271 <with
272 variable="selection">
273 <test
274 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isMedia">
275 </test>
276 </with>
277 </definition>
278 <definition
279 id="isTaxonEditor">
280 <with
281 variable="selection">
282 <test
283 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isTaxonEditor">
284 </test>
285 </with>
286 </definition>
287 <definition
288 id="isBulkEditor">
289 <with
290 variable="selection">
291 <test
292 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isBulkEditor">
293 </test>
294 </with>
295 </definition>
296 <definition
297 id="isDerivateEditor">
298 <with
299 variable="selection">
300 <test
301 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDerivateEditor">
302 </test>
303 </with>
304 </definition>
305 <definition
306 id="isDescription">
307 <with
308 variable="selection">
309 <test
310 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDescription">
311 </test>
312 </with>
313 </definition>
314 <definition
315 id="isDescriptionElement">
316 <with
317 variable="selection">
318 <test
319 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDescriptionElement">
320 </test>
321 </with>
322 </definition>
323 <definition
324 id="isFeatureNodeContainer">
325 <with
326 variable="selection">
327 <test
328 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isFeatureNodeContainer">
329 </test>
330 </with>
331 </definition>
332 <definition
333 id="isImageGallery">
334 <with
335 variable="selection">
336 <test
337 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isImageGallery">
338 </test>
339 </with>
340 </definition>
341 <definition
342 id="isAcceptedAndHasNoHomotypicSynonyms">
343 <with
344 variable="selection">
345 <test
346 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isAcceptedAndHasNoHomotypicSynonyms">
347 </test>
348 </with>
349 </definition>
350 <definition
351 id="isIndividualsAssociation">
352 <with
353 variable="selection">
354 <test
355 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isIndividualsAssociation">
356 </test>
357 </with>
358 </definition>
359 <definition
360 id="isRemoting">
361 <test
362 property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isRemoting">
363 </test>
364 </definition>
365 <definition
366 id="isKeyNode">
367 <with
368 variable="selection">
369 <test
370 property="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyPropertyTester.isKeyNode">
371 </test>
372 </with>
373 </definition>
374 <definition
375 id="isSequence">
376 <with
377 variable="selection">
378 <test
379 property="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester.isSequence">
380 </test>
381 </with>
382 </definition>
383 <definition
384 id="isSingleRead">
385 <with
386 variable="selection">
387 <test
388 property="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester.isSingleRead">
389 </test>
390 </with>
391 </definition>
392 <definition
393 id="isSpecimenOrObservationBase">
394 <with
395 variable="selection">
396 <test
397 property="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester.isSpecimenOrObservationBase">
398 </test>
399 </with>
400 </definition>
401 <definition
402 id="isDerivativeEditorLinkedToTaxonSelection">
403 <with
404 variable="activeEditor">
405 <test
406 property="eu.etaxonomy.taxeditor.editor.view.derivate.DerivativeEditorPropertyTester.isLinkedWithTaxonSelection">
407 </test>
408 </with>
409 </definition>
410 <definition
411 id="isOrphanedTaxon">
412 <with
413 variable="selection">
414 <test
415 forcePluginActivation="true"
416 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isOrphaned">
417 </test>
418 </with>
419 </definition>
420 <definition
421 id="isAddDerivateAllowed">
422 <with
423 variable="selection">
424 <test
425 property="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester.isAddDerivateAllowed">
426 </test>
427 </with>
428 </definition>
429 <definition
430 id="isAddMediaAllowed">
431 <with
432 variable="selection">
433 <test
434 property="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester.isAddMediaAllowed">
435 </test>
436 </with>
437 </definition>
438 </extension>
439 <extension
440 point="org.eclipse.core.expressions.propertyTesters">
441 <propertyTester
442 class="eu.etaxonomy.taxeditor.editor.name.handler.NameEditorMenuPropertyTester"
443 id="eu.etaxonomy.taxeditor.editor.name.propertyTester"
444 namespace="eu.etaxonomy.taxeditor.editor.name.propertyTester"
445 properties="isAcceptedTaxon,isSynonym,isMisapplication,isNotMisapplication,isTaxonBase,hasEmptyNames,isAcceptedAndHasNoHomotypicSynonyms,isNotHomotypicSynonymOfAcceptedTaxon,isNotAcceptedTaxon,isSynonymInHomotypicalGroupWithMoreSynonyms,isOrphaned"
446 type="java.lang.Object">
447 </propertyTester>
448 <propertyTester
449 class="eu.etaxonomy.taxeditor.editor.view.descriptive.e4.handler.DescriptionsMenuPropertyTesterE4"
450 id="eu.etaxonomy.taxeditor.descriptions.propertyTester"
451 namespace="eu.etaxonomy.taxeditor.descriptions.propertyTester"
452 properties="isMedia,isDescription,isDescriptionElement,isDeletable,isFeatureNodeContainer,isImageGallery,isTaxonEditor,isBulkEditor,isDerivateEditor, isIndividualsAssociation"
453 type="java.lang.Object">
454 </propertyTester>
455 <propertyTester
456 class="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester"
457 id="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester"
458 namespace="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester"
459 properties="isSequence,isSingleRead,isSpecimenOrObservationBase,isAddDerivateAllowed,isAddMediaAllowed"
460 type="org.eclipse.jface.viewers.IStructuredSelection">
461 </propertyTester>
462 <propertyTester
463 class="eu.etaxonomy.taxeditor.editor.view.derivate.DerivativeEditorPropertyTester"
464 id="eu.etaxonomy.taxeditor.editor.view.derivate.DerivativeEditorPropertyTester"
465 namespace="eu.etaxonomy.taxeditor.editor.view.derivate.DerivativeEditorPropertyTester"
466 properties="isLinkedWithTaxonSelection"
467 type="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView">
468 </propertyTester>
469 <propertyTester
470 class="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyPropertyTester"
471 id="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyPropertyTester"
472 namespace="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyPropertyTester"
473 properties="isKeyNode"
474 type="org.eclipse.jface.viewers.IStructuredSelection">
475 </propertyTester>
476 </extension>
477 <extension
478 point="org.eclipse.ui.bindings">
479 <scheme
480 description="%scheme.description"
481 id="eu.etaxonomy.taxeditor.bindings.scheme.default"
482 name="%scheme.name">
483 </scheme>
484 </extension>
485 <!--extension
486 point="org.eclipse.ui.importWizards">
487 <wizard
488 category="eu.etaxonomy.taxeditor.import.category.cdm"
489 class="eu.etaxonomy.taxeditor.editor.view.dataimport.SpecimenSearchWizard"
490 id="eu.etaxonomy.taxeditor.editor.view.dataimport.SpecimenSearchWizard"
491 name="%wizard.name">
492 <description>
493 %wizard.description
494 </description>
495 </wizard>
496 </extension-->
497 <extension
498 point="eu.etaxonomy.taxeditor.store.cdmViewer">
499 <viewCommandMapping
500 commandId="eu.etaxonomy.taxeditor.editor.openTaxonEditorForTaxonNode"
501 selection="eu.etaxonomy.cdm.model.taxon.TaxonNode"
502 viewerName="%viewCommandMapping.viewerName.NAME_EDITOR">
503 </viewCommandMapping>
504 <viewCommandMapping
505 commandId="eu.etaxonomy.taxeditor.editor.openTaxonEditorForTaxon"
506 selection="eu.etaxonomy.cdm.model.taxon.TaxonBase"
507 viewerName="%viewCommandMapping.viewerName.NAME_EDITOR">
508 </viewCommandMapping>
509 <viewCommandMapping
510 commandId="eu.etaxonomy.taxeditor.editor.openSpecimenEditor"
511 selection="eu.etaxonomy.cdm.model.description.IndividualsAssociation"
512 viewerName="%viewCommandMapping.viewerName.SPECIMEN_EDITOR">
513 </viewCommandMapping>
514 <viewCommandMapping
515 commandId="eu.etaxonomy.taxeditor.editor.openSpecimenEditor"
516 selection="eu.etaxonomy.cdm.model.taxon.TaxonNode"
517 viewerName="%viewCommandMapping.viewerName.SPECIMEN_EDITOR">
518 </viewCommandMapping>
519 <viewCommandMapping
520 commandId="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistViewHandler"
521 selection="eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode"
522 viewerName="%viewCommandMapping.viewerName.CHECKLIST_EDITOR">
523 </viewCommandMapping>
524 <viewCommandMapping
525 commandId="eu.etaxonomy.taxeditor.openSpecimenEditorForTypeSpecimen"
526 selection="eu.etaxonomy.cdm.model.name.SpecimenTypeDesignation"
527 viewerName="%viewCommandMapping.viewerName.SPECIMEN_EDITOR">
528 </viewCommandMapping>
529 <viewCommandMapping
530 commandId="eu.etaxonomy.taxeditor.editor.view.concept.command.open"
531 selection="eu.etaxonomy.cdm.model.taxon.TaxonRelationship"
532 viewerName="Name Editor">
533 </viewCommandMapping>
534 <viewCommandMapping
535 commandId="eu.etaxonomy.taxeditor.editor.openBulkEditorForTaxonRelationship"
536 selection="eu.etaxonomy.cdm.model.taxon.TaxonRelationship"
537 viewerName="Bulk Editor">
538 </viewCommandMapping>
539 <viewCommandMapping
540 commandId="eu.etaxonomy.taxeditor.editor.openSpecimenEditor"
541 selection="eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase"
542 viewerName="Specimen Editor (tree)">
543 </viewCommandMapping>
544 <viewCommandMapping
545 commandId="eu.etaxonomy.taxeditor.editor.command.workingSet.openWorkingSetEditor"
546 selection="eu.etaxonomy.cdm.model.description.WorkingSet"
547 viewerName="Working Set Editor">
548 </viewCommandMapping>
549 <viewCommandMapping
550 commandId="eu.etaxonomy.taxeditor.editor.command.workingSet.openCharacterMatrix"
551 selection="eu.etaxonomy.cdm.model.description.WorkingSet"
552 viewerName="Character Matrix">
553 </viewCommandMapping>
554 <viewCommandMapping
555 commandId="eu.etaxonomy.taxeditor.editor.command.workingSet.openWorkingSetEditor"
556 selection="eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache"
557 viewerName="Working Set Editor">
558 </viewCommandMapping>
559 <viewCommandMapping
560 commandId="eu.etaxonomy.taxeditor.openSpecimenEditorForGatheringEvent"
561 selection="eu.etaxonomy.cdm.model.occurrence.GatheringEvent"
562 viewerName="%viewCommandMapping.viewerName.SPECIMEN_EDITOR">
563 </viewCommandMapping>
564 </extension>
565 <extension
566 id="eu.etaxonomy.taxeditor.editor.workbench.model"
567 name="Editor Workbench Model"
568 point="org.eclipse.e4.workbench.model">
569 <fragment
570 apply="always"
571 uri="fragment.e4xmi">
572 </fragment>
573 </extension>
574 </plugin>