Merge branch 'develop' into bulkEditorE4
[taxeditor.git] / eu.etaxonomy.taxeditor.bulkeditor / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.4"?>
3 <plugin>
4
5 <extension
6 id="application"
7 point="org.eclipse.core.runtime.applications">
8 <application>
9 <run
10 class="eu.etaxonomy.taxeditor.bulkeditor.Application">
11 </run>
12 </application>
13 </extension>
14 <extension
15 point="org.eclipse.ui.editors">
16 <editor
17 class="eu.etaxonomy.taxeditor.dataimport.DataImportEditor"
18 default="false"
19 id="eu.etaxonomy.taxeditor.dataimport.DataImportEditor"
20 name="%editor.name.1">
21 </editor>
22 </extension>
23 <extension
24 point="org.eclipse.ui.menus">
25 <menuContribution
26 locationURI="popup:bulkeditor.editor">
27 <menu
28 label="%menu.label.1">
29 <dynamic
30 class="eu.etaxonomy.taxeditor.bulkeditor.command.DynamicNewObjectMenu"
31 id="eu.etaxonomy.taxeditor.bulkeditor.dynamicNewMenu">
32 <visibleWhen
33 checkEnabled="false">
34 <reference
35 definitionId="isCdmStoreConnected">
36 </reference>
37 </visibleWhen>
38 </dynamic>
39 <visibleWhen
40 checkEnabled="true">
41 <reference
42 definitionId="isCdmStoreConnected">
43 </reference>
44 </visibleWhen>
45 </menu>
46 <separator
47 name="taxeditor-bulkeditor.separator4"
48 visible="true">
49 </separator>
50 <command
51 commandId="bulkeditor.commands.setmergetarget"
52 label="%command.label.0"
53 style="push">
54 <visibleWhen>
55 <reference
56 definitionId="isMergeEnabled">
57 </reference>
58 </visibleWhen>
59 </command>
60
61 <command
62 commandId="bulkeditor.commands.setmergecandidate"
63 label="%command.label.1"
64 style="push">
65 <visibleWhen>
66 <reference
67 definitionId="isMergeEnabled">
68 </reference>
69 </visibleWhen>
70 </command>
71 <command
72 commandId="bulkeditor.commands.removemergecandidate"
73 label="%command.label.2"
74 style="push">
75 <visibleWhen>
76 <reference
77 definitionId="isMergeEnabled">
78 </reference>
79 </visibleWhen>
80 </command>
81 <command
82 commandId="bulkeditor.commands.mergegroup"
83 label="%command.label.3"
84 style="push">
85 <visibleWhen>
86 <reference
87 definitionId="isMergeEnabled">
88 </reference>
89 </visibleWhen>
90 </command>
91 <separator
92 name="eu.etaxonomy.taxeditor.bulkeditor.separator1"
93 visible="true">
94 </separator>
95 <command
96 commandId="eu.etaxonomy.taxeditor.bulkeditor.convertTeam2Person"
97 label="%command.label.5"
98 style="push">
99 <visibleWhen
100 checkEnabled="true">
101 <and>
102 <reference
103 definitionId="isConvertEnabled">
104 </reference>
105 <reference
106 definitionId="isTeam">
107 </reference>
108 </and>
109 </visibleWhen>
110 </command>
111 <command
112 commandId="eu.etaxonomy.taxeditor.bulkeditor.convertPerson2Team"
113 label="%command.label.6"
114 style="push">
115 <visibleWhen
116 checkEnabled="true">>
117 <and>
118 <reference
119 definitionId="isConvertEnabled">
120 </reference>
121 <reference
122 definitionId="isPerson">
123 </reference>
124 </and>
125 </visibleWhen>
126 </command>
127 <separator
128 name="taxeditor-bulkeditor.separator2"
129 visible="true">
130 </separator>
131 <menu
132 label="%menu.label.2">
133 <dynamic
134 class="eu.etaxonomy.taxeditor.bulkeditor.command.DynamicMarkerTypeEditingMenu"
135 id="eu.etaxonomy.taxeditor.bulkeditor.dynamicMarkerTypeEditingMenu">
136 </dynamic>
137 <visibleWhen
138 checkEnabled="true">
139 <reference
140 definitionId="isCdmStoreConnected">
141 </reference>
142 </visibleWhen>
143 </menu>
144 <separator
145 name="taxeditor-bulkeditor.separator3"
146 visible="true">
147 </separator>
148 <command
149 commandId="eu.etaxonomy.taxeditor.bulkeditor.delete"
150 label="%command.label.4"
151 style="push">
152 <visibleWhen
153 checkEnabled="true">
154 <reference
155 definitionId="isCdmStoreConnected">
156 </reference>
157 </visibleWhen>
158 </command>
159 <dynamic
160 class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu"
161 id="eu.etaxonomy.taxeditor.bulkeditor.cdmViewerContextMenu">
162 </dynamic>
163 <!--menuContribution
164 locationURI="popup:org.eclipse.ui.popup.any"-->
165 </menuContribution>
166 </extension>
167 <extension
168 point="org.eclipse.ui.commands">
169 <command
170 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMarkerFlagHandler"
171 id="taxeditor-bulkeditor.command.setMarkerFlag"
172 name="%command.name.6">
173 </command>
174 <command
175 id="eu.etaxonomy.taxeditor.openReferencingObjectsView"
176 name="%command.name.OPEN_REFERENCING_OBJECTS_VIEW">
177 </command>
178 <command
179 id="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity"
180 name="Open bulk editor for identifiable entity">
181 <commandParameter
182 id="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity.uuid"
183 name="Identifiable Entity UUID"
184 optional="true"
185 typeId="eu.etaxonomy.taxeditor.uuidParameterType">
186 </commandParameter>
187 </command>
188 <command
189 defaultHandler="eu.etaxonomy.taxeditor.handler.defaultHandler.OpenReferencingObjectsView"
190 id="eu.etaxonomy.taxeditor.openReferencingObjectsViewFromMenu"
191 name="%command.name.OPEN_REFERENCING_OBJECTS_VIEW">
192 </command>
193 <!--command
194 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.NewEntityHandler"
195 id="eu.etaxonomy.taxeditor.bulkeditor.command.new"
196 name="New Entity">
197 </command-->
198 </extension>
199 <extension
200 point="org.eclipse.ui.editors.markerAnnotationSpecification">
201 <specification
202 annotationType="merge_candidate_annotation"
203 colorPreferenceKey="merge_candidate_annotation_color"
204 colorPreferenceValue="220,220,255"
205 highlightPreferenceValue="true"
206 icon="icons/merge_candidate.gif"
207 includeOnPreferencePage="true"
208 label="%specification.label"
209 overviewRulerPreferenceKey="merge_candidate_annotation_overview"
210 overviewRulerPreferenceValue="true"
211 presentationLayer="0"
212 symbolicIcon="task"
213 textPreferenceKey="merge_candidate_annotation_text"
214 textPreferenceValue="false"
215 textStylePreferenceValue="BOX"
216 verticalRulerPreferenceKey="merge_candidate_annotation_vertical"
217 verticalRulerPreferenceValue="true">
218 </specification>
219 <specification
220 annotationType="merge_target_annotation"
221 colorPreferenceKey="merge_target_annotation_color"
222 colorPreferenceValue="220,220,255"
223 highlightPreferenceValue="true"
224 icon="icons/merge_target.gif"
225 includeOnPreferencePage="true"
226 label="%specification.label.0"
227 overviewRulerPreferenceKey="merge_target_annotation_overview"
228 overviewRulerPreferenceValue="true"
229 presentationLayer="1"
230 symbolicIcon="task"
231 textPreferenceKey="merge_target_annotation_text"
232 textPreferenceValue="false"
233 textStylePreferenceValue="BOX"
234 verticalRulerPreferenceKey="merge_target_annotation_vertical"
235 verticalRulerPreferenceValue="true">
236 </specification>
237 </extension>
238 <extension
239 point="org.eclipse.ui.editors.annotationTypes">
240 <type
241 name="merge_candidate_annotation">
242 </type>
243 <type
244 name="merge_target_annotation">
245 </type>
246 </extension>
247 <extension
248 point="org.eclipse.core.expressions.definitions">
249 <definition
250 id="isMergeEnabled">
251 <with
252 variable="activeEditor">
253 <test
254 property="taxeditor-bulkeditor.propertyTester.isMergingEnabled">
255 </test>
256 </with>
257 </definition>
258 <definition
259 id="isConvertEnabled">
260 <with
261 variable="activeEditor">
262 <test
263 property="taxeditor-bulkeditor.propertyTester.isConvertingEnabled">
264 </test>
265 </with>
266 </definition>
267 <definition
268 id="isTaxonBulkEditorInput">
269 <with
270 variable="activeEditor">
271 <test
272 property="taxeditor-bulkeditor.propertyTester.isTaxonEditor">
273 </test>
274 </with>
275 </definition>
276 <definition
277 id="isTeam">
278 <with
279 variable="selection">
280 <test
281 property="eu.etaxonomy.taxeditor.bulkeditor.command.isTeam">
282 </test>
283 </with>
284 </definition>
285 <definition
286 id="isPerson">
287 <with
288 variable="selection">
289 <test
290 property="eu.etaxonomy.taxeditor.bulkeditor.command.isPerson">
291 </test>
292 </with>
293 </definition>
294 <definition
295 id="isBulkEditorSupported">
296 <with
297 variable="selection">
298 <test
299 property="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester.isBulkEditorSupported">
300 </test>
301 </with>
302 </definition>
303 <definition
304 id="isGroupEditor">
305 <with
306 variable="activeEditor">
307 <test
308 property="taxeditor-bulkeditor.propertyTester.isGroupEditor">
309 </test>
310 </with>
311 </definition>
312 </extension>
313 <extension
314 point="org.eclipse.core.expressions.propertyTesters">
315 <propertyTester
316 class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"
317 id="taxeditor-bulkeditor.PropertyTester"
318 namespace="taxeditor-bulkeditor.propertyTester"
319 properties="isMergingEnabled, isDerivedUnitEditor, isTaxonEditor, isGroupEditor, isConvertingEnabled"
320 type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
321 </propertyTester>
322 <propertyTester
323 class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
324 id="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorMenuPropertyTester"
325 namespace="eu.etaxonomy.taxeditor.bulkeditor.command"
326 properties="isTeam, isPerson"
327 type="java.lang.Object">
328 </propertyTester>
329 <propertyTester
330 class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester"
331 id="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester"
332 namespace="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorSelectionPropertyTester"
333 properties="isBulkEditorSupported"
334 type="org.eclipse.jface.viewers.IStructuredSelection">
335 </propertyTester>
336 </extension>
337 <extension
338 point="org.eclipse.ui.handlers">
339 <handler
340 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut"
341 commandId="org.eclipse.ui.edit.cut">
342 <activeWhen>
343 <with
344 variable="activeFocusControlId">
345 <equals
346 value="bulkeditor.textControlId">
347 </equals>
348 </with>
349 </activeWhen>
350 </handler>
351 <handler
352 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"
353 commandId="org.eclipse.ui.edit.copy">
354 <activeWhen>
355 <with
356 variable="activeFocusControlId">
357 <equals
358 value="bulkeditor.textControlId">
359 </equals>
360 </with>
361 </activeWhen>
362 </handler>
363 <handler
364 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:paste"
365 commandId="org.eclipse.ui.edit.paste">
366 <activeWhen>
367 <with
368 variable="activeFocusControlId">
369 <equals
370 value="bulkeditor.textControlId">
371 </equals>
372 </with>
373 </activeWhen>
374 </handler>
375
376 </extension>
377 <extension
378 point="org.eclipse.ui.preferencePages">
379 <page
380 category="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
381 class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorMarkerPreferencePage"
382 id="eu.etaxonomy.taxeditor.preferences.bulkeditor.markerTypes"
383 name="%page.name">
384 </page>
385 <page
386 category="eu.etaxonomy.taxeditor.preferences.general"
387 class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorGeneralPreferencePage"
388 id="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
389 name="%page.name.0">
390 </page>
391 </extension>
392 <extension
393 point="eu.etaxonomy.taxeditor.store.cdmViewer">
394 <viewCommandMapping
395 commandId="eu.etaxonomy.taxeditor.openReferencingObjectsView"
396 selection="java.lang.Object"
397 viewerName="%viewCommandMapping.viewerName.REFERENCING_OBJECTS_VIEW">
398 </viewCommandMapping>
399 <viewCommandMapping
400 commandId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForTaxonNode"
401 selection="eu.etaxonomy.cdm.model.taxon.TaxonNode"
402 viewerName="%viewCommandMapping.viewerName.BULK_EDITOR">
403 </viewCommandMapping>
404 <viewCommandMapping
405 commandId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForIdentifiableEntity"
406 selection="eu.etaxonomy.cdm.model.common.IdentifiableEntity"
407 viewerName="%viewCommandMapping.viewerName.BULK_EDITOR">
408 </viewCommandMapping>
409 </extension>
410 <extension
411 id="eu.etaxonomy.taxeditor.bulkeditor.workbench.model"
412 name="Bulk Editor Workbench Model"
413 point="org.eclipse.e4.workbench.model">
414 <fragment
415 apply="always"
416 uri="fragment.e4xmi">
417 </fragment>
418 </extension>
419 <!-- start set marker -->
420
421 </plugin>