merge-update from trunk
[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.bulkeditor.BulkEditor"
18 default="false"
19 id="bulkeditor.editor"
20 name="%editor.name">
21 </editor>
22 <editor
23 class="eu.etaxonomy.taxeditor.nameditor.TaxonNameEditor"
24 default="false"
25 id="nameeditor.editor"
26 name="%editor.name.0">
27 </editor>
28 <editor
29 class="eu.etaxonomy.taxeditor.dataimport.DataImportEditor"
30 default="false"
31 id="eu.etaxonomy.taxeditor.dataimport.DataImportEditor"
32 name="%editor.name.1">
33 </editor>
34 </extension>
35 <extension
36 point="org.eclipse.ui.menus">
37 <menuContribution
38 locationURI="menu:org.eclipse.ui.main.menu.window?before=eu.etaxonomy.taxeditor.application.windowMenu.last">
39 <menu
40 id="bulkeditor.menus.openmenu"
41 label="%menu.label">
42 </menu>
43 <menu
44 label="%menu.label.0">
45 </menu>
46 </menuContribution>
47 <menuContribution
48 locationURI="menu:bulkeditor.menus.openmenu">
49 <dynamic
50 class="eu.etaxonomy.taxeditor.bulkeditor.command.OpenBulkEditorContributionItem"
51 id="taxeditor-bulkeditor.dynamicopenmenu">
52 </dynamic>
53 <!--command
54 commandId="taxeditor-nameeditor.commands.open"
55 label="Open Name Editor"
56 style="push">
57 <visibleWhen
58 checkEnabled="false">
59 <reference
60 definitionId="pigsFly">
61 </reference>
62 </visibleWhen>
63 </command-->
64 </menuContribution>
65 <menuContribution
66 locationURI="popup:#BulkEditorContext">
67 <menu
68 label="%menu.label.1">
69 <dynamic
70 class="eu.etaxonomy.taxeditor.bulkeditor.command.DynamicNewObjectMenu"
71 id="eu.etaxonomy.taxeditor.bulkeditor.dynamicNewMenu">
72 </dynamic>
73 </menu>
74 <separator
75 name="taxeditor-bulkeditor.separator1"
76 visible="true">
77 </separator>
78 <command
79 commandId="bulkeditor.commands.setmergetarget"
80 label="Set Current Line as Target for Duplicate Removal"
81 style="push">
82 <visibleWhen>
83 <reference
84 definitionId="isMergeEnabled">
85 </reference>
86 </visibleWhen>
87 </command>
88 <command
89 commandId="bulkeditor.commands.setmergecandidate"
90 label="Set as Candidate(s) for Duplicate Removal"
91 style="push">
92 <visibleWhen>
93 <reference
94 definitionId="isMergeEnabled">
95 </reference>
96 </visibleWhen>
97 </command>
98 <command
99 commandId="bulkeditor.commands.removemergecandidate"
100 label="Remove as Candidate(s) for Duplicate Removal"
101 style="push">
102 <visibleWhen>
103 <reference
104 definitionId="isMergeEnabled">
105 </reference>
106 </visibleWhen>
107 </command>
108 <!--menuContribution
109 locationURI="popup:org.eclipse.ui.popup.any"-->
110 <command
111 commandId="bulkeditor.commands.mergegroup"
112 label="De-Duplicate Group"
113 style="push">
114 <visibleWhen>
115 <reference
116 definitionId="isMergeEnabled">
117 </reference>
118 </visibleWhen>
119 </command>
120 <separator
121 name="taxeditor-bulkeditor.separator2"
122 visible="true">
123 </separator>
124 <menu
125 label="%menu.label.2">
126 <dynamic
127 class="eu.etaxonomy.taxeditor.bulkeditor.command.DynamicMarkerTypeEditingMenu"
128 id="eu.etaxonomy.taxeditor.bulkeditor.dynamicMarkerTypeEditingMenu">
129 </dynamic>
130 </menu>
131 <separator
132 name="taxeditor-bulkeditor.separator3"
133 visible="true">
134 </separator>
135 <command
136 commandId="org.eclipse.ui.edit.delete"
137 label="Delete"
138 style="push">
139 </command>
140 </menuContribution>
141 <menuContribution
142 allPopups="false"
143 locationURI="popup:#DataImportEditorContext">
144 <command
145 commandId="eu.etaxonomy.taxeditor.bulkeditor.saveSpecimen"
146 label="Save Specimen"
147 style="push">
148 </command>
149 </menuContribution>
150 </extension>
151 <extension
152 point="org.eclipse.ui.commands">
153 <command
154 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.MergeGroupHandler"
155 id="bulkeditor.commands.mergegroup"
156 name="Merge Group">
157 </command>
158 <command
159 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeTargetHandler"
160 id="bulkeditor.commands.setmergetarget"
161 name="Set as Target for Group Merge">
162 </command>
163 <command
164 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.OpenBulkEditorHandler"
165 id="taxeditor-bulkeditor.dynamicopenmenu"
166 name="Dynamic Open Bulk Editor">
167 <commandParameter
168 id="taxeditor-bulkeditor.commandParameter.inputType"
169 name="Bulk Editor Class"
170 values="eu.etaxonomy.taxeditor.bulkeditor.input.BulkEditorInputTypeValues">
171 </commandParameter>
172 </command>
173 <command
174 defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.NewObjectHandler"
175 id="taxeditor-bulkeditor.dynamicnewobjectcommand"
176 name="Dynamic New Object">
177 </command>
178 <command
179 defaultHandler="eu.etaxonomy.taxeditor.annotatedlineeditor.handler.DeleteObjectHandler"
180 id="taxeditor-bulkeditor.dynamicdeleteobjectcommand"
181 name="Dynamic Delete Object">
182 </command>
183 <command
184 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMergeCandidateHandler"
185 id="bulkeditor.commands.setmergecandidate"
186 name="Set as Candidate for Group Merge">
187 </command>
188 <command
189 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.RemoveMergeCandidateHandler"
190 id="bulkeditor.commands.removemergecandidate"
191 name="Remove as Candidate for Group Merge">
192 </command>
193 <command
194 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.SetMarkerFlagHandler"
195 id="taxeditor-bulkeditor.command.setMarkerFlag"
196 name="Set Marker Flag">
197 </command>
198 <!--command
199 defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.NewEntityHandler"
200 id="eu.etaxonomy.taxeditor.bulkeditor.command.new"
201 name="New Entity">
202 </command-->
203 </extension>
204 <extension
205 point="org.eclipse.ui.editors.markerAnnotationSpecification">
206 <specification
207 annotationType="merge_candidate_annotation"
208 colorPreferenceKey="merge_candidate_annotation_color"
209 colorPreferenceValue="220,220,255"
210 highlightPreferenceValue="true"
211 icon="icons/merge_candidate.gif"
212 includeOnPreferencePage="true"
213 label="Merge Candidate Annotation"
214 overviewRulerPreferenceKey="merge_candidate_annotation_overview"
215 overviewRulerPreferenceValue="true"
216 presentationLayer="0"
217 symbolicIcon="task"
218 textPreferenceKey="merge_candidate_annotation_text"
219 textPreferenceValue="false"
220 textStylePreferenceValue="BOX"
221 verticalRulerPreferenceKey="merge_candidate_annotation_vertical"
222 verticalRulerPreferenceValue="true">
223 </specification>
224 <specification
225 annotationType="merge_target_annotation"
226 colorPreferenceKey="merge_target_annotation_color"
227 colorPreferenceValue="220,220,255"
228 highlightPreferenceValue="true"
229 icon="icons/merge_target.gif"
230 includeOnPreferencePage="true"
231 label="Merge Target Annotation"
232 overviewRulerPreferenceKey="merge_target_annotation_overview"
233 overviewRulerPreferenceValue="true"
234 presentationLayer="1"
235 symbolicIcon="task"
236 textPreferenceKey="merge_target_annotation_text"
237 textPreferenceValue="false"
238 textStylePreferenceValue="BOX"
239 verticalRulerPreferenceKey="merge_target_annotation_vertical"
240 verticalRulerPreferenceValue="true">
241 </specification>
242 </extension>
243 <extension
244 point="org.eclipse.ui.editors.annotationTypes">
245 <type
246 name="merge_candidate_annotation">
247 </type>
248 <type
249 name="merge_target_annotation">
250 </type>
251 </extension>
252 <extension
253 point="org.eclipse.ui.views">
254 <view
255 class="eu.etaxonomy.taxeditor.bulkeditor.referencingobjects.ReferencingObjectsView"
256 id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"
257 name="%view.name"
258 restorable="false">
259 </view>
260 </extension>
261 <extension
262 point="org.eclipse.core.expressions.definitions">
263 <definition
264 id="isMergeEnabled">
265 <with
266 variable="activeEditor">
267 <test
268 property="taxeditor-bulkeditor.propertyTester.isMergingEnabled">
269 </test>
270 </with>
271 </definition>
272 </extension>
273 <extension
274 point="org.eclipse.core.expressions.propertyTesters">
275 <propertyTester
276 class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"
277 id="taxeditor-bulkeditor.PropertyTester"
278 namespace="taxeditor-bulkeditor.propertyTester"
279 properties="isMergingEnabled"
280 type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
281 </propertyTester>
282 <propertyTester
283 class="eu.etaxonomy.taxeditor.bulkeditor.PropertyTester"
284 id="eu.etaxonomy.taxeditor.bulkeditor.propertyTester"
285 namespace="eu.etaxonomy.taxeditor.bulkeditor.propertyTester"
286 properties="isDerivedUnitEditor"
287 type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
288 </propertyTester>
289 </extension>
290 <extension
291 point="org.eclipse.ui.handlers">
292 <handler
293 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut"
294 commandId="org.eclipse.ui.edit.cut">
295 <activeWhen>
296 <with
297 variable="activeFocusControlId">
298 <equals
299 value="bulkeditor.textControlId">
300 </equals>
301 </with>
302 </activeWhen>
303 </handler>
304 <handler
305 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"
306 commandId="org.eclipse.ui.edit.copy">
307 <activeWhen>
308 <with
309 variable="activeFocusControlId">
310 <equals
311 value="bulkeditor.textControlId">
312 </equals>
313 </with>
314 </activeWhen>
315 </handler>
316 <handler
317 class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:paste"
318 commandId="org.eclipse.ui.edit.paste">
319 <activeWhen>
320 <with
321 variable="activeFocusControlId">
322 <equals
323 value="bulkeditor.textControlId">
324 </equals>
325 </with>
326 </activeWhen>
327 </handler>
328 <handler
329 class="eu.etaxonomy.taxeditor.bulkeditor.handler.DeleteHandler"
330 commandId="org.eclipse.ui.edit.delete">
331 <activeWhen>
332 <with
333 variable="selection">
334 <instanceof
335 value="eu.etaxonomy.taxeditor.model.LineSelection">
336 </instanceof>
337 </with>
338 </activeWhen>
339 </handler>
340 </extension>
341 <extension
342 point="org.eclipse.ui.preferencePages">
343 <page
344 category="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
345 class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorMarkerPreferencePage"
346 id="eu.etaxonomy.taxeditor.preferences.bulkeditor.markerTypes"
347 name="%page.name">
348 </page>
349 <page
350 category="eu.etaxonomy.taxeditor.preferences.general"
351 class="eu.etaxonomy.taxeditor.bulkeditor.preference.BulkEditorGeneralPreferencePage"
352 id="eu.etaxonomy.taxeditor.preferences.bulkeditor.general"
353 name="%page.name.0">
354 </page>
355 </extension>
356 <extension
357 point="org.eclipse.ui.perspectiveExtensions">
358 <perspectiveExtension
359 targetID="*">
360 <showInPart
361 id="eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"></showInPart>
362 <showInPart
363 id="eu.etaxonomy.taxeditor.view.detail">
364 </showInPart>
365 </perspectiveExtension>
366 </extension>
367 <!-- start set marker -->
368
369 </plugin>