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