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