1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.2"?><!--
3
Copyright (c) 2009 Red Hat, Inc.
4
All rights reserved. This program and the accompanying materials
5
are made available under the terms of the Eclipse Public License v1.0
6
which accompanies this distribution, and is available at
7
http://www.eclipse.org/legal/epl-v10.html
10
Red Hat - initial API and implementation
15
<extension point="org.eclipse.ui.contexts">
18
id="org.eclipse.linuxtools.rpm.ui.specEditorScope"
19
parentId="org.eclipse.ui.textEditorScope">
24
point="org.eclipse.ui.editors">
29
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
30
class="org.eclipse.linuxtools.rpm.ui.editor.SpecfileEditor"
31
id="org.eclipse.linuxtools.rpm.ui.editor.SpecfileEditor">
37
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
38
class="org.eclipse.linuxtools.internal.rpm.ui.editor.forms.SpecfileFormEditor"
39
id="org.eclipse.linuxtools.rpm.ui.editor.forms.SpecfileFormEditor">
43
<!-- Hyperlink targets and detectors -->
45
point="org.eclipse.ui.workbench.texteditor.hyperlinkDetectorTargets">
46
<target id="org.eclipse.linuxtools.rpm.ui.editor.SpecfileEditorTarget"
47
name="RPM Editor Target">
48
<context type="org.eclipse.ui.texteditor.ITextEditor"/>
52
point="org.eclipse.ui.workbench.texteditor.hyperlinkDetectors">
54
id="org.eclipse.linuxtools.rpm.ui.editor.hyperlink.URLHyperlinkWithMacroDetector"
55
targetId="org.eclipse.linuxtools.rpm.ui.editor.SpecfileEditorTarget"
56
class="org.eclipse.linuxtools.internal.rpm.ui.editor.hyperlink.URLHyperlinkWithMacroDetector"
57
name="URLHyperlinkWithMacroDetector">
60
id="org.eclipse.linuxtools.rpm.ui.editor.hyperlink.SpecfileElementHyperlinkDetector"
61
targetId="org.eclipse.linuxtools.rpm.ui.editor.SpecfileEditorTarget"
62
class="org.eclipse.linuxtools.internal.rpm.ui.editor.hyperlink.SpecfileElementHyperlinkDetector"
63
name="SpecfileElementHyperlinkDetector">
66
id="org.eclipse.linuxtools.rpm.ui.editor.hyperlink.MailHyperlinkDetector"
67
targetId="org.eclipse.linuxtools.rpm.ui.editor.SpecfileEditorTarget"
68
class="org.eclipse.linuxtools.internal.rpm.ui.editor.hyperlink.MailHyperlinkDetector"
69
name="MailHyperlinkDetector">
72
id="org.eclipse.linuxtools.rpm.ui.editor.hyperlink.SourcesFileHyperlinkDetector"
73
targetId="org.eclipse.linuxtools.rpm.ui.editor.SpecfileEditorTarget"
74
class="org.eclipse.linuxtools.internal.rpm.ui.editor.hyperlink.SourcesFileHyperlinkDetector"
75
name="SourcesFileHyperlinkDetector">
81
point="org.eclipse.core.resources.markers"
82
name="%extension.name">
83
<super type="org.eclipse.core.resources.problemmarker"/>
84
<super type="org.eclipse.core.resources.textmarker"/>
85
<persistent value="true"/>
89
point="org.eclipse.core.resources.markers"
90
name="%extension.name.0">
91
<super type="org.eclipse.core.resources.taskmarker"/>
92
<persistent value="true"/>
95
point="org.eclipse.ui.editors.documentProviders">
98
class="org.eclipse.linuxtools.internal.rpm.ui.editor.SpecfileDocumentProvider"
99
id="org.eclipse.linuxtools.rpm.ui.editor.specfileDocumentProvider">
103
point="org.eclipse.linuxtools.changelog.core.parserContribution">
105
class="org.eclipse.linuxtools.internal.rpm.ui.editor.actions.SpecfileChangelogParser"
106
editor="SpecfileEditor"
107
name="SpecfileChangelogParser"/>
110
point="org.eclipse.linuxtools.changelog.core.formatterContribution">
112
class="org.eclipse.linuxtools.internal.rpm.ui.editor.actions.SpecfileChangelogFormatter"
113
id="org.eclipse.linuxtools.rpm.ui.editor.actions.specfilechangelogformatter"
115
name="SpecfileChangelogFormatter">
116
<filePattern pattern=".*\.spec"/>
121
point="org.eclipse.ui.editors.templates">
123
class="org.eclipse.jface.text.templates.TemplateContextType"
125
id="org.eclipse.linuxtools.rpm.ui.editor.preSection"/>
127
class="org.eclipse.jface.text.templates.TemplateContextType"
129
id="org.eclipse.linuxtools.rpm.ui.editor.buildSection"/>
131
class="org.eclipse.jface.text.templates.TemplateContextType"
132
name="preambleSection"
133
id="org.eclipse.linuxtools.rpm.ui.editor.preambleSection"/>
134
<include file="templates/templates.xml"/>
136
class="org.eclipse.jface.text.templates.TemplateContextType"
137
id="org.eclipse.linuxtools.rpm.ui.editor.installSection"
140
class="org.eclipse.jface.text.templates.TemplateContextType"
141
id="org.eclipse.linuxtools.rpm.ui.editor.changelogSection"
142
name="changelogSection"/>
143
<include file="templates/templates.xml"/>
146
point="org.eclipse.ui.preferencePages">
148
class="org.eclipse.linuxtools.internal.rpm.ui.editor.preferences.MainPreferencePage"
149
id="org.eclipse.linuxtools.rpm.ui.editor.mainpage"
152
category="org.eclipse.linuxtools.rpm.ui.editor.mainpage"
153
class="org.eclipse.linuxtools.internal.rpm.ui.editor.preferences.RpmProposalsPreferencePage"
154
id="org.eclipse.linuxtools.rpm.ui.editor.preferences.RpmProposalsPreferencePage"
155
name="%page.name.0"/>
157
category="org.eclipse.linuxtools.rpm.ui.editor.mainpage"
158
class="org.eclipse.linuxtools.internal.rpm.ui.editor.preferences.MacroProposalsPreferencePage"
159
id="org.eclipse.linuxtools.rpm.ui.editor.preferences.MacroProposalsPreferencePage"
160
name="%page.name.1"/>
162
category="org.eclipse.linuxtools.rpm.ui.editor.mainpage"
163
class="org.eclipse.linuxtools.internal.rpm.ui.editor.preferences.SpecTemplatePreferencePage"
164
id="org.eclipse.linuxtools.rpm.ui.editor.preferences.SpecTemplatePreferencePage"
165
name="%page.name.2"/>
167
category="org.eclipse.linuxtools.rpm.ui.editor.preferences.RpmProposalsPreferencePage"
168
class="org.eclipse.linuxtools.internal.rpm.ui.editor.preferences.RpmInformationsPreferencePage"
169
id="org.eclipse.linuxtools.rpm.ui.editor.preferences.RpmInformationsPreferencePage"
170
name="%page.name.3"/>
172
category="org.eclipse.linuxtools.rpm.ui.editor.mainpage"
173
class="org.eclipse.linuxtools.internal.rpm.ui.editor.preferences.TaskTagsPreferencePage"
174
id="org.eclipse.linuxtools.rpm.ui.editor.preferences.TaskTagsPreferencePage"
175
name="%page.name.4"/>
179
point="org.eclipse.core.runtime.preferences">
180
<initializer class="org.eclipse.linuxtools.internal.rpm.ui.editor.preferences.PreferenceInitializer"/>
183
point="org.eclipse.ui.editors.annotationTypes">
185
name="org.eclipse.linuxtools.rpm.ui.editor.highlightannotation"
186
super="org.eclipse.ui.workbench.texteditor.info">
187
<!--markerSeverity="0"-->
192
point="org.eclipse.ui.editors.markerAnnotationSpecification">
194
annotationType="org.eclipse.linuxtools.rpm.ui.editor.highlightannotation"
195
verticalRulerPreferenceKey="highlight.rulers.vertical"
196
textPreferenceKey="highlight.text"
197
colorPreferenceKey="highlight.color"
198
highlightPreferenceKey="highlight.background"
199
textPreferenceValue="false"
200
textStylePreferenceValue="UNDERLINE"
201
overviewRulerPreferenceKey="highlight.rulers.overview"
202
presentationLayer="4"
203
highlightPreferenceValue="true"
205
icon="icons/occurrence_obj.gif"
206
colorPreferenceValue="253,255,155"
207
verticalRulerPreferenceValue="true"
208
overviewRulerPreferenceValue="true"
209
textStylePreferenceKey="highlight.text.style">
213
point="org.eclipse.ui.newWizards">
215
id="org.eclipse.linuxtools.rpm.ui.editor"
216
name="%category.name">
219
category="org.eclipse.linuxtools.rpm.ui.editor"
220
class="org.eclipse.linuxtools.internal.rpm.ui.editor.wizards.SpecfileNewWizard"
222
id="org.eclipse.linuxtools.rpm.ui.editor.wizards.SpecfileNewWizard"
228
point="org.eclipse.ui.commands">
230
name="%category.name.0"
231
description="%category.description"
232
id="rpmEditor.category"/>
234
categoryId="rpmEditor.category"
236
id="rpmEditor.toggleComment.command"/>
238
categoryId="rpmEditor.category"
239
name="%command.name.0"
240
id="rpmEditor.organizePatches.command"/>
242
categoryId="rpmEditor.category"
243
id="rpmEditor.showOutline.command"
244
name="%command.name.1"/>
246
<extension point="org.eclipse.ui.handlers">
248
class="org.eclipse.linuxtools.internal.rpm.ui.editor.actions.SpecfileEditorToggleCommentActionDelegate"
249
commandId="rpmEditor.toggleComment.command" />
251
class="org.eclipse.linuxtools.internal.rpm.ui.editor.actions.SpecfileEditorOrganizePatchesActionDelegate"
252
commandId="rpmEditor.organizePatches.command" />
254
class="org.eclipse.linuxtools.internal.rpm.ui.editor.actions.SpecfileEditorShowOutlineActionDelegate"
255
commandId="rpmEditor.showOutline.command" />
257
<!-- Key bindings -->
259
point="org.eclipse.ui.bindings">
261
sequence="Ctrl+Shift+C"
262
commandId="rpmEditor.toggleComment.command"
263
contextId="org.eclipse.ui.textEditorScope"
264
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
266
sequence="Ctrl+Shift+O"
267
commandId="rpmEditor.organizePatches.command"
268
contextId="org.eclipse.linuxtools.rpm.ui.specEditorScope"
269
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
272
commandId="rpmEditor.showOutline.command"
273
contextId="org.eclipse.linuxtools.rpm.ui.specEditorScope"
274
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
276
<!-- Editor menu actions -->
278
point="org.eclipse.ui.menus">
280
locationURI="popup:#TextEditorContext?after=additions">
282
commandId="rpmEditor.toggleComment.command"
283
label="%command.label"
284
tooltip="%command.tooltip" />
286
commandId="rpmEditor.organizePatches.command"
287
label="%command.label.0"
288
tooltip="%command.tooltip.0" />
290
commandId="rpmEditor.showOutline.command"
291
label="%command.label.1"
292
tooltip="%command.tooltip.1" />
295
<!-- Compare support-->
296
<extension point="org.eclipse.compare.contentMergeViewers">
298
id="org.eclipse.linuxtools.rpm.ui.editor.SpecMergeViewer"
300
class="org.eclipse.linuxtools.internal.rpm.ui.editor.compare.SpecMergeViewerCreator">
303
<extension point="org.eclipse.compare.structureMergeViewers">
305
id="org.eclipse.linuxtools.rpm.ui.editor.SpecStructureMergeViewer"
307
class="org.eclipse.linuxtools.internal.rpm.ui.editor.compare.SpecStructureMergeViewerCreator">
310
<extension point ="org.eclipse.compare.structureCreators">
311
<structureCreator id="org.eclipse.linuxtools.rpm.ui.editor.SpecStructureCreator"
312
class="org.eclipse.linuxtools.internal.rpm.ui.editor.compare.SpecStructureCreator" extensions="spec"/>