ref #6622, #6598 Migrate New and connect menus
[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.ui.handlers">
170 <handler
171 class="org.eclipse.ui.internal.handlers.NewEditorHandler"
172 commandId="org.eclipse.ui.window.newEditor">
173 <activeWhen>
174 <not>
175 <instanceof
176 value="eu.etaxonomy.taxeditor.editor.name.TaxonNameEditor">
177 </instanceof>
178 </not>
179 </activeWhen>
180 <enabledWhen>
181 <count
182 value="-1">
183 </count>
184 </enabledWhen>
185 </handler>
186 </extension>
187 <extension
188 name="%extension.name"
189 point="org.eclipse.ui.commands">
190 <category
191 id="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
192 name="%category.name.0">
193 </category>
194 <!-- <command
195 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.MoveTaxonHandler"
196 id="eu.etaxonomy.taxeditor.editor.name.moveTaxon"
197 name="Move Taxon">
198 </command>-->
199 <!-- <command
200 categoryId="eu.etaxonomy.taxeditor.editor.taxon.name.command.category"
201 defaultHandler="eu.etaxonomy.taxeditor.editor.name.handler.ChangeAcceptedTaxonToSynonymHandler"
202 id="eu.etaxonomy.taxeditor.editor.name.changeAcceptedToSynonym"
203 name="Change Accepted Taxon to Synonym">
204 </command>-->
205 <category
206 id="eu.etaxonomy.taxeditor.editor.view.descriptive.command.category"
207 name="%category.name.1">
208 </category>
209 <category
210 id="eu.etaxonomy.taxeditor.editor.view.uses.command.category"
211 name="%category.name.2">
212 </category>
213 <category
214 id="eu.etaxonomy.taxeditor.editor.media.category"
215 name="%category.name.3">
216 </category>
217
218 <category
219 id="eu.etaxonomy.taxeditor.editor.new.category"
220 name="%category.name.4">
221 </category>
222 <category
223 id="eu.etaxonomy.taxeditor.editor.view.concept.category"
224 name="%category.name.6">
225 </category>
226 <category
227 id="eu.etaxonomy.taxeditor.bulkeditor.group.category"
228 name="%category.name.7">
229 </category>
230 <command
231 id="eu.etaxonomy.taxeditor.editor.handler.showOnlyIndividualAssociations"
232 name="%command.name.41">
233 </command>
234
235 <command
236 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.OpenDerivateViewHandler"
237 id="eu.etaxonomy.taxeditor.editor.openSpecimenEditor"
238 name="%command.name.OPEN_DERIVATIVE_EDITOR">
239 <commandParameter
240 id="eu.etaxonomy.taxeditor.editor.openSpecimenEditor.uuid"
241 name="Specimen Uuids"
242 optional="true"
243 typeId="eu.etaxonomy.taxeditor.uuidParameterType">
244 </commandParameter>
245 </command>
246 <command
247 defaultHandler="eu.etaxonomy.taxeditor.editor.handler.OpenDerivateViewHandler"
248 id="eu.etaxonomy.taxeditor.editor.openSpecimenEditorFromMenu"
249 name="%command.name.OPEN_DERIVATIVE_EDITOR">
250 </command>
251
252 </extension>
253 <extension
254 point="org.eclipse.core.expressions.definitions">
255 <definition
256 id="nameEditorActive">
257 <with
258 variable="activeEditorId">
259 <equals
260 value="eu.etaxonomy.taxeditor.editor.multipagetaxonview">
261 </equals>
262 </with>
263 </definition>
264 <definition
265 id="isAcceptedTaxon">
266 <with
267 variable="selection">
268 <test
269 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isAcceptedTaxon">
270 </test>
271 </with>
272 </definition>
273 <definition
274 id="isNotHomotypicSynonymOfAcceptedTaxon">
275 <with
276 variable="selection">
277 <test
278 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isNotHomotypicSynonymOfAcceptedTaxon">
279 </test>
280 </with>
281 </definition>
282 <definition
283 id="isSynonymInHomotypicalGroupWithMoreSynonyms">
284 <with
285 variable="selection">
286 <test
287 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isSynonymInHomotypicalGroupWithMoreSynonyms">
288 </test>
289 </with>
290 </definition>
291 <definition
292 id="isSynonym">
293 <with
294 variable="selection">
295 <test
296 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isSynonym">
297 </test>
298 </with>
299 </definition>
300 <definition
301 id="isMisapplication">
302 <with
303 variable="selection">
304 <test
305 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isMisapplication">
306 </test>
307 </with>
308 </definition>
309 <definition
310 id="isTaxonBase">
311 <with
312 variable="selection">
313 <test
314 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isTaxonBase">
315 </test>
316 </with>
317 </definition>
318 <definition
319 id="hasEmptyNames">
320 <with
321 variable="selection">
322 <test
323 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.hasEmptyNames">
324 </test>
325 </with>
326 </definition>
327 <definition
328 id="isDeletable">
329 <with
330 variable="selection">
331 <test
332 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDeletable">
333 </test>
334 </with>
335 </definition>
336 <definition
337 id="isMedia">
338 <with
339 variable="selection">
340 <test
341 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isMedia">
342 </test>
343 </with>
344 </definition>
345 <definition
346 id="isTaxonEditor">
347 <with
348 variable="selection">
349 <test
350 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isTaxonEditor">
351 </test>
352 </with>
353 </definition>
354 <definition
355 id="isBulkEditor">
356 <with
357 variable="selection">
358 <test
359 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isBulkEditor">
360 </test>
361 </with>
362 </definition>
363 <definition
364 id="isDerivateEditor">
365 <with
366 variable="selection">
367 <test
368 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDerivateEditor">
369 </test>
370 </with>
371 </definition>
372 <definition
373 id="isDescription">
374 <with
375 variable="selection">
376 <test
377 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDescription">
378 </test>
379 </with>
380 </definition>
381 <definition
382 id="isDescriptionElement">
383 <with
384 variable="selection">
385 <test
386 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isDescriptionElement">
387 </test>
388 </with>
389 </definition>
390 <definition
391 id="isFeatureNodeContainer">
392 <with
393 variable="selection">
394 <test
395 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isFeatureNodeContainer">
396 </test>
397 </with>
398 </definition>
399 <definition
400 id="isImageGallery">
401 <with
402 variable="selection">
403 <test
404 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isImageGallery">
405 </test>
406 </with>
407 </definition>
408 <definition
409 id="isAcceptedAndHasNoHomotypicSynonyms">
410 <with
411 variable="selection">
412 <test
413 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isAcceptedAndHasNoHomotypicSynonyms">
414 </test>
415 </with>
416 </definition>
417 <definition
418 id="isIndividualsAssociation">
419 <with
420 variable="selection">
421 <test
422 property="eu.etaxonomy.taxeditor.descriptions.propertyTester.isIndividualsAssociation">
423 </test>
424 </with>
425 </definition>
426 <definition
427 id="isRemoting">
428 <test
429 property="eu.etaxonomy.taxeditor.preference.CdmStorePropertyTester.isRemoting">
430 </test>
431 </definition>
432 <definition
433 id="isKeyNode">
434 <with
435 variable="selection">
436 <test
437 property="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyPropertyTester.isKeyNode">
438 </test>
439 </with>
440 </definition>
441 <definition
442 id="isSequence">
443 <with
444 variable="selection">
445 <test
446 property="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester.isSequence">
447 </test>
448 </with>
449 </definition>
450 <definition
451 id="isSingleRead">
452 <with
453 variable="selection">
454 <test
455 property="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester.isSingleRead">
456 </test>
457 </with>
458 </definition>
459 <definition
460 id="isSpecimenOrObservationBase">
461 <with
462 variable="selection">
463 <test
464 property="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester.isSpecimenOrObservationBase">
465 </test>
466 </with>
467 </definition>
468 <definition
469 id="isDerivativeEditorLinkedToTaxonSelection">
470 <with
471 variable="activeEditor">
472 <test
473 property="eu.etaxonomy.taxeditor.editor.view.derivate.DerivativeEditorPropertyTester.isLinkedWithTaxonSelection">
474 </test>
475 </with>
476 </definition>
477 <definition
478 id="isOrphanedTaxon">
479 <with
480 variable="selection">
481 <test
482 forcePluginActivation="true"
483 property="eu.etaxonomy.taxeditor.editor.name.propertyTester.isOrphaned">
484 </test>
485 </with>
486 </definition>
487 <definition
488 id="isAddDerivateAllowed">
489 <with
490 variable="selection">
491 <test
492 property="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester.isAddDerivateAllowed">
493 </test>
494 </with>
495 </definition>
496 <definition
497 id="isAddMediaAllowed">
498 <with
499 variable="selection">
500 <test
501 property="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester.isAddMediaAllowed">
502 </test>
503 </with>
504 </definition>
505 </extension>
506 <extension
507 point="org.eclipse.core.expressions.propertyTesters">
508 <propertyTester
509 class="eu.etaxonomy.taxeditor.editor.name.handler.NameEditorMenuPropertyTester"
510 id="eu.etaxonomy.taxeditor.editor.name.propertyTester"
511 namespace="eu.etaxonomy.taxeditor.editor.name.propertyTester"
512 properties="isAcceptedTaxon,isSynonym,isMisapplication,isTaxonBase,hasEmptyNames,isAcceptedAndHasNoHomotypicSynonyms,isNotHomotypicSynonymOfAcceptedTaxon,isSynonymInHomotypicalGroupWithMoreSynonyms,isOrphaned"
513 type="java.lang.Object">
514 </propertyTester>
515 <propertyTester
516 class="eu.etaxonomy.taxeditor.editor.view.descriptive.e4.handler.DescriptionsMenuPropertyTesterE4"
517 id="eu.etaxonomy.taxeditor.descriptions.propertyTester"
518 namespace="eu.etaxonomy.taxeditor.descriptions.propertyTester"
519 properties="isMedia,isDescription,isDescriptionElement,isDeletable,isFeatureNodeContainer,isImageGallery,isTaxonEditor,isBulkEditor,isDerivateEditor, isIndividualsAssociation"
520 type="java.lang.Object">
521 </propertyTester>
522 <propertyTester
523 class="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester"
524 id="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester"
525 namespace="eu.etaxonomy.taxeditor.editor.handler.SpecimenPropertyTester"
526 properties="isSequence,isSingleRead,isSpecimenOrObservationBase,isAddDerivateAllowed,isAddMediaAllowed"
527 type="org.eclipse.jface.viewers.IStructuredSelection">
528 </propertyTester>
529 <propertyTester
530 class="eu.etaxonomy.taxeditor.editor.view.derivate.DerivativeEditorPropertyTester"
531 id="eu.etaxonomy.taxeditor.editor.view.derivate.DerivativeEditorPropertyTester"
532 namespace="eu.etaxonomy.taxeditor.editor.view.derivate.DerivativeEditorPropertyTester"
533 properties="isLinkedWithTaxonSelection"
534 type="eu.etaxonomy.taxeditor.editor.view.derivate.DerivateView">
535 </propertyTester>
536 <propertyTester
537 class="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyPropertyTester"
538 id="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyPropertyTester"
539 namespace="eu.etaxonomy.taxeditor.editor.key.polytomous.PolytomousKeyPropertyTester"
540 properties="isKeyNode"
541 type="org.eclipse.jface.viewers.IStructuredSelection">
542 </propertyTester>
543 </extension>
544 <extension
545 point="org.eclipse.ui.bindings">
546 <scheme
547 description="%scheme.description"
548 id="eu.etaxonomy.taxeditor.bindings.scheme.default"
549 name="%scheme.name">
550 </scheme>
551 </extension>
552 <!--extension
553 point="org.eclipse.ui.importWizards">
554 <wizard
555 category="eu.etaxonomy.taxeditor.import.category.cdm"
556 class="eu.etaxonomy.taxeditor.editor.view.dataimport.SpecimenSearchWizard"
557 id="eu.etaxonomy.taxeditor.editor.view.dataimport.SpecimenSearchWizard"
558 name="%wizard.name">
559 <description>
560 %wizard.description
561 </description>
562 </wizard>
563 </extension-->
564 <extension
565 point="eu.etaxonomy.taxeditor.store.cdmViewer">
566 <viewCommandMapping
567 commandId="eu.etaxonomy.taxeditor.editor.openTaxonEditorForTaxonNode"
568 selection="eu.etaxonomy.cdm.model.taxon.TaxonNode"
569 viewerName="%viewCommandMapping.viewerName.NAME_EDITOR">
570 </viewCommandMapping>
571 <viewCommandMapping
572 commandId="eu.etaxonomy.taxeditor.editor.openTaxonEditorForTaxon"
573 selection="eu.etaxonomy.cdm.model.taxon.TaxonBase"
574 viewerName="%viewCommandMapping.viewerName.NAME_EDITOR">
575 </viewCommandMapping>
576 <viewCommandMapping
577 commandId="eu.etaxonomy.taxeditor.editor.openSpecimenEditor"
578 selection="eu.etaxonomy.cdm.model.description.IndividualsAssociation"
579 viewerName="%viewCommandMapping.viewerName.SPECIMEN_EDITOR">
580 </viewCommandMapping>
581 <viewCommandMapping
582 commandId="eu.etaxonomy.taxeditor.editor.openSpecimenEditor"
583 selection="eu.etaxonomy.cdm.model.taxon.TaxonNode"
584 viewerName="%viewCommandMapping.viewerName.SPECIMEN_EDITOR">
585 </viewCommandMapping>
586 <viewCommandMapping
587 commandId="eu.etaxonomy.taxeditor.editor.handler.OpenChecklistViewHandler"
588 selection="eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode"
589 viewerName="%viewCommandMapping.viewerName.CHECKLIST_EDITOR">
590 </viewCommandMapping>
591 <viewCommandMapping
592 commandId="eu.etaxonomy.taxeditor.openSpecimenEditorForTypeSpecimen"
593 selection="eu.etaxonomy.cdm.model.name.SpecimenTypeDesignation"
594 viewerName="%viewCommandMapping.viewerName.SPECIMEN_EDITOR">
595 </viewCommandMapping>
596 <viewCommandMapping
597 commandId="eu.etaxonomy.taxeditor.editor.view.concept.command.open"
598 selection="eu.etaxonomy.cdm.model.taxon.TaxonRelationship"
599 viewerName="Name Editor">
600 </viewCommandMapping>
601 <viewCommandMapping
602 commandId="eu.etaxonomy.taxeditor.editor.openBulkEditorForTaxonRelationship"
603 selection="eu.etaxonomy.cdm.model.taxon.TaxonRelationship"
604 viewerName="Bulk Editor">
605 </viewCommandMapping>
606 <viewCommandMapping
607 commandId="eu.etaxonomy.taxeditor.editor.openSpecimenEditor"
608 selection="eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase"
609 viewerName="Specimen Editor">
610 </viewCommandMapping>
611 </extension>
612 <extension
613 id="eu.etaxonomy.taxeditor.editor.workbench.model"
614 name="Editor Workbench Model"
615 point="org.eclipse.e4.workbench.model">
616 <fragment
617 apply="always"
618 uri="fragment.e4xmi">
619 </fragment>
620 </extension>
621 </plugin>