2
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
2 |
<?eclipse version="3.2"?>
|
|
3 |
<plugin>
|
|
4 |
<!-- =================================================================================== -->
|
|
5 |
<!-- Error parser(s) provided by the CodeScanner plugin -->
|
|
6 |
<!-- =================================================================================== -->
|
|
7 |
<extension
|
|
8 |
id="CSErrorParser"
|
|
9 |
name="CodeScanner Error Parser"
|
|
10 |
point="org.eclipse.cdt.core.ErrorParser">
|
|
11 |
<errorparser
|
|
12 |
class="com.nokia.carbide.cpp.internal.codescanner.error.parsers.CSErrorParser">
|
|
13 |
</errorparser>
|
|
14 |
</extension>
|
|
15 |
<!-- =================================================================================== -->
|
|
16 |
<!-- Property Tester(s) provided by the CodeScanner plugin -->
|
|
17 |
<!-- =================================================================================== -->
|
|
18 |
<extension
|
|
19 |
point="org.eclipse.core.expressions.propertyTesters">
|
|
20 |
<propertyTester
|
|
21 |
class="com.nokia.carbide.cpp.internal.codescanner.markers.CSMarkerPropertyTester"
|
|
22 |
id="com.nokia.carbide.cpp.codescanner.CSMarkerTest"
|
|
23 |
namespace="com.nokia.carbide.cpp.codescanner"
|
|
24 |
properties="CSMarkerTest"
|
|
25 |
type="org.eclipse.ui.views.markers.MarkerSupportView">
|
|
26 |
</propertyTester>
|
|
27 |
</extension>
|
|
28 |
<!-- =================================================================================== -->
|
|
29 |
<!-- Builder(s) provided by the CodeScanner plugin -->
|
|
30 |
<!-- =================================================================================== -->
|
|
31 |
<extension
|
|
32 |
id="CSBuilder"
|
|
33 |
name="CodeScanner Project Builder"
|
|
34 |
point="org.eclipse.core.resources.builders">
|
|
35 |
<builder>
|
|
36 |
<run
|
|
37 |
class="com.nokia.carbide.cpp.internal.codescanner.CSBuilder">
|
|
38 |
</run>
|
|
39 |
</builder>
|
|
40 |
</extension>
|
|
41 |
<!-- =================================================================================== -->
|
|
42 |
<!-- CodeScanner specific problem markers -->
|
|
43 |
<!-- =================================================================================== -->
|
|
44 |
<extension
|
|
45 |
id="CSMarker"
|
|
46 |
name="CodeScanner Problems"
|
|
47 |
point="org.eclipse.core.resources.markers">
|
|
48 |
<super type="org.eclipse.core.resources.problemmarker"/>
|
|
49 |
<super type="org.eclipse.core.resources.textmarker"/>
|
|
50 |
<persistent value="true"/>
|
|
51 |
<attribute name="externalLocation"/>
|
|
52 |
</extension>
|
|
53 |
<!-- =================================================================================== -->
|
|
54 |
<!-- Initializer for preference pages provided by the CodeScanner plugin -->
|
|
55 |
<!-- =================================================================================== -->
|
|
56 |
<extension
|
|
57 |
point="org.eclipse.core.runtime.preferences">
|
|
58 |
<initializer
|
|
59 |
class="com.nokia.carbide.cpp.internal.codescanner.ui.CSPreferenceInitializer">
|
|
60 |
</initializer>
|
|
61 |
</extension>
|
|
62 |
<!-- =================================================================================== -->
|
|
63 |
<!-- Preference page(s) provided by the CodeScanner plugin -->
|
|
64 |
<!-- =================================================================================== -->
|
|
65 |
<extension
|
|
66 |
point="org.eclipse.ui.preferencePages">
|
|
67 |
<page
|
|
68 |
name="CodeScanner"
|
|
69 |
category="com.nokia.carbide.cpp.project.ui.preferences.CarbidePreferencePage"
|
|
70 |
class="com.nokia.carbide.cpp.internal.codescanner.ui.CSPreferencePage"
|
|
71 |
id="com.nokia.carbide.cpp.codescanner.ui.CSPreferencePage">
|
|
72 |
</page>
|
|
73 |
</extension>
|
|
74 |
<!-- =================================================================================== -->
|
|
75 |
<!-- property page(s) provided by the CodeScanner plugin -->
|
|
76 |
<!-- =================================================================================== -->
|
|
77 |
<extension
|
|
78 |
point="org.eclipse.ui.propertyPages">
|
|
79 |
<page
|
|
80 |
name="CodeScanner"
|
|
81 |
class="com.nokia.carbide.cpp.internal.codescanner.ui.CSPropertyPage"
|
|
82 |
category="com.nokia.carbide.cdt.builder.ui.CarbideProjectPropertiesGroup"
|
|
83 |
id="com.nokia.carbide.cpp.codescanner.ui.CSPropertyPage">
|
|
84 |
<filter
|
|
85 |
name="nature"
|
|
86 |
value="com.nokia.carbide.cdt.builder.carbideCPPBuilderNature">
|
|
87 |
</filter>
|
|
88 |
<enabledWhen>
|
|
89 |
<or>
|
|
90 |
<instanceof value="org.eclipse.core.resources.IProject"/>
|
|
91 |
<instanceof value="org.eclipse.cdt.core.model.ICProject"/>
|
|
92 |
</or>
|
|
93 |
</enabledWhen>
|
|
94 |
</page>
|
|
95 |
</extension>
|
|
96 |
<!-- =================================================================================== -->
|
|
97 |
<!-- Pop-up menu(s) provided by the CodeScanner plugin -->
|
|
98 |
<!-- =================================================================================== -->
|
|
99 |
<extension
|
|
100 |
point="org.eclipse.ui.popupMenus">
|
|
101 |
<objectContribution
|
|
102 |
adaptable="true"
|
|
103 |
id="com.nokia.carbide.cpp.codescanner.popup.CSScanAction"
|
|
104 |
objectClass="org.eclipse.core.resources.IResource">
|
|
105 |
<visibility>
|
|
106 |
<and>
|
|
107 |
<objectState
|
|
108 |
name="projectNature"
|
|
109 |
value="com.nokia.carbide.cdt.builder.carbideCPPBuilderNature"/>
|
|
110 |
<and>
|
|
111 |
<not>
|
|
112 |
<objectState
|
|
113 |
name="extension"
|
|
114 |
value="mmp"/>
|
|
115 |
</not>
|
|
116 |
<not>
|
|
117 |
<objectState
|
|
118 |
name="extension"
|
|
119 |
value="inf"/>
|
|
120 |
</not>
|
|
121 |
</and>
|
|
122 |
</and>
|
|
123 |
</visibility>
|
|
124 |
<action
|
|
125 |
class="com.nokia.carbide.cpp.internal.codescanner.popup.actions.CSScanAction"
|
|
126 |
definitionId="com.nokia.carbide.cpp.codescanner.command.CSScanAction"
|
|
127 |
enablesFor="1"
|
|
128 |
icon="icons/Run_CodeScanner.png"
|
|
129 |
id="com.nokia.carbide.cpp.codescanner.CSScanAction"
|
|
130 |
label="Run CodeScanner"
|
|
131 |
menubarPath="buildGroup">
|
|
132 |
</action>
|
|
133 |
</objectContribution>
|
|
134 |
<objectContribution
|
|
135 |
adaptable="true"
|
|
136 |
nameFilter="*.inf"
|
|
137 |
id="com.nokia.carbide.cpp.codescanner.popup.CSScanActionOnINF"
|
|
138 |
objectClass="org.eclipse.core.resources.IResource">
|
|
139 |
<visibility>
|
|
140 |
<objectState
|
|
141 |
name="projectNature"
|
|
142 |
value="com.nokia.carbide.cdt.builder.carbideCPPBuilderNature"/>
|
|
143 |
</visibility>
|
|
144 |
<action
|
|
145 |
class="com.nokia.carbide.cpp.internal.codescanner.popup.actions.CSScanAction"
|
|
146 |
enablesFor="1"
|
|
147 |
icon="icons/Run_CodeScanner.png"
|
|
148 |
id="com.nokia.carbide.cpp.codescanner.CSScanActionOnINF"
|
|
149 |
label="Run CodeScanner on Project INF"
|
|
150 |
menubarPath="buildGroup">
|
|
151 |
</action>
|
|
152 |
</objectContribution>
|
|
153 |
<objectContribution
|
|
154 |
adaptable="true"
|
|
155 |
nameFilter="*.mmp"
|
|
156 |
id="com.nokia.carbide.cpp.codescanner.popup.CSScanActionOnMMP"
|
|
157 |
objectClass="org.eclipse.core.resources.IResource">
|
|
158 |
<visibility>
|
|
159 |
<objectState
|
|
160 |
name="projectNature"
|
|
161 |
value="com.nokia.carbide.cdt.builder.carbideCPPBuilderNature"/>
|
|
162 |
</visibility>
|
|
163 |
<action
|
|
164 |
class="com.nokia.carbide.cpp.internal.codescanner.popup.actions.CSScanAction"
|
|
165 |
enablesFor="1"
|
|
166 |
icon="icons/Run_CodeScanner.png"
|
|
167 |
id="com.nokia.carbide.cpp.codescanner.CSScanActionOnMMP"
|
|
168 |
label="Run CodeScanner on Project MMP"
|
|
169 |
menubarPath="buildGroup">
|
|
170 |
</action>
|
|
171 |
</objectContribution>
|
|
172 |
<objectContribution
|
|
173 |
id="com.nokia.carbide.cpp.codescanner.popup.deleteMarkers"
|
|
174 |
objectClass="org.eclipse.core.resources.IMarker">
|
|
175 |
<filter
|
|
176 |
name="type"
|
|
177 |
value="com.nokia.carbide.cpp.codescanner.CSMarker">
|
|
178 |
</filter>
|
|
179 |
<action
|
|
180 |
class="com.nokia.carbide.cpp.internal.codescanner.popup.actions.CSDeleteMarkerAction"
|
|
181 |
enablesFor="+"
|
|
182 |
icon="icons/Delete_CS_Markers.png"
|
|
183 |
id="com.nokia.carbide.cpp.codescanner.CSDeleteMarkers"
|
|
184 |
label="Delete CodeScanner Markers"
|
|
185 |
menubarPath="additions">
|
|
186 |
</action>
|
|
187 |
</objectContribution>
|
|
188 |
<objectContribution
|
|
189 |
id="com.nokia.carbide.cpp.codescanner.popup.markerDetails"
|
|
190 |
objectClass="org.eclipse.core.resources.IMarker">
|
|
191 |
<filter
|
|
192 |
name="type"
|
|
193 |
value="com.nokia.carbide.cpp.codescanner.CSMarker">
|
|
194 |
</filter>
|
|
195 |
<action
|
|
196 |
class="com.nokia.carbide.cpp.internal.codescanner.popup.actions.CSMarkerDetailsAction"
|
|
197 |
enablesFor="1"
|
|
198 |
icon="icons/Run_CodeScanner.png"
|
|
199 |
id="com.nokia.carbide.cpp.codescanner.CSMarkerDetails"
|
|
200 |
label="View More Information"
|
|
201 |
menubarPath="additions">
|
|
202 |
</action>
|
|
203 |
</objectContribution>
|
|
204 |
</extension>
|
|
205 |
<!-- =================================================================================== -->
|
|
206 |
<!-- Action set(s) provided by the CodeScanner plugin -->
|
|
207 |
<!-- =================================================================================== -->
|
|
208 |
<extension
|
|
209 |
point="org.eclipse.ui.actionSets">
|
|
210 |
<actionSet
|
|
211 |
id="com.nokia.carbide.cpp.codescanner.CSScanActionSet"
|
|
212 |
label="Run CodeScanner"
|
|
213 |
visible="true">
|
|
214 |
<action
|
|
215 |
class="com.nokia.carbide.cpp.internal.codescanner.popup.actions.CSScanAction"
|
|
216 |
enablesFor="1"
|
|
217 |
icon="icons/Run_CodeScanner.png"
|
|
218 |
id="com.nokia.carbide.cpp.codescanner.CSScanProjectAction"
|
|
219 |
label="Run CodeScanner"
|
|
220 |
menubarPath="project/build">
|
|
221 |
<enablement>
|
|
222 |
<objectState
|
|
223 |
name="projectNature"
|
|
224 |
value="com.nokia.carbide.cdt.builder.carbideCPPBuilderNature"/>
|
|
225 |
</enablement>
|
|
226 |
</action>
|
|
227 |
</actionSet>
|
|
228 |
</extension>
|
|
229 |
<!-- =================================================================================== -->
|
|
230 |
<!-- Command(s) provided by the CodeScanner plugin -->
|
|
231 |
<!-- =================================================================================== -->
|
|
232 |
<extension
|
|
233 |
point="org.eclipse.ui.commands">
|
|
234 |
<command
|
|
235 |
categoryId="org.eclipse.ui.category.project"
|
|
236 |
id="com.nokia.carbide.cpp.codescanner.command.CSScanAction"
|
|
237 |
name="Run CodeScanner">
|
|
238 |
</command>
|
|
239 |
<command
|
|
240 |
id="com.nokia.carbide.cpp.codescanner.command.markerDetails"
|
|
241 |
name="View More Information">
|
|
242 |
</command>
|
|
243 |
</extension>
|
|
244 |
<!-- =================================================================================== -->
|
|
245 |
<!-- Handler(s) provided by the CodeScanner plugin -->
|
|
246 |
<!-- =================================================================================== -->
|
|
247 |
<extension
|
|
248 |
point="org.eclipse.ui.handlers">
|
|
249 |
<handler
|
|
250 |
class="com.nokia.carbide.cpp.internal.codescanner.markers.CSMarkerDetailsHandler"
|
|
251 |
commandId="com.nokia.carbide.cpp.codescanner.command.markerDetails">
|
|
252 |
</handler>
|
|
253 |
</extension>
|
|
254 |
<!-- =================================================================================== -->
|
|
255 |
<!-- Marker resolution(s) provided by the CodeScanner plugin -->
|
|
256 |
<!-- =================================================================================== -->
|
|
257 |
<extension
|
|
258 |
point="org.eclipse.ui.ide.markerResolution">
|
|
259 |
<markerResolutionGenerator
|
|
260 |
markerType="com.nokia.carbide.cpp.codescanner.CSMarker"
|
|
261 |
class="com.nokia.carbide.cpp.internal.codescanner.markers.CSMarkerResolutionGenerator"/>
|
|
262 |
</extension>
|
|
263 |
<!-- =================================================================================== -->
|
|
264 |
<!-- Menu contribution(s) provided by the CodeScanner plugin -->
|
|
265 |
<!-- =================================================================================== -->
|
|
266 |
<extension
|
|
267 |
point="org.eclipse.ui.menus">
|
|
268 |
<menuContribution
|
|
269 |
locationURI="popup:org.eclipse.ui.ide.MarkersView?after=org.eclipse.ui.ide.markersSeperator1">
|
|
270 |
<command
|
|
271 |
commandId="com.nokia.carbide.cpp.codescanner.command.markerDetails"
|
|
272 |
icon="icons/Run_CodeScanner.png">
|
|
273 |
<visibleWhen>
|
|
274 |
<and>
|
|
275 |
<count value="1"/>
|
|
276 |
<with variable="activePart">
|
|
277 |
<test
|
|
278 |
property="com.nokia.carbide.cpp.codescanner.CSMarkerTest">
|
|
279 |
</test>
|
|
280 |
</with>
|
|
281 |
</and>
|
|
282 |
</visibleWhen>
|
|
283 |
</command>
|
|
284 |
</menuContribution>
|
|
285 |
</extension>
|
|
286 |
<!-- =================================================================================== -->
|
|
287 |
<!-- TOC extension point adds help contents to Carbide Help section -->
|
|
288 |
<!-- =================================================================================== -->
|
|
289 |
<extension
|
|
290 |
point="org.eclipse.help.toc">
|
|
291 |
<toc
|
|
292 |
file="tocCodeScanner.xml"
|
|
293 |
primary="true"/>
|
|
294 |
<index path="index" />
|
|
295 |
</extension>
|
|
296 |
|
|
297 |
<!-- KEYWORD INDEX ADDITION -->
|
|
298 |
<extension
|
|
299 |
point="org.eclipse.help.index">
|
|
300 |
<index file="html/index.xml"/>
|
|
301 |
</extension>
|
|
302 |
<!-- =================================================================================== -->
|
|
303 |
<!-- Cheatsheets that support CodeScanner -->
|
|
304 |
<!-- =================================================================================== -->
|
|
305 |
<extension
|
|
306 |
point="org.eclipse.ui.cheatsheets.cheatSheetContent">
|
|
307 |
<cheatsheet
|
|
308 |
category="com.nokia.carbide.cpp.tools.cheatsheets"
|
|
309 |
composite="false"
|
|
310 |
contentFile="html/cheatsheets/Using_CodeScanner.xml"
|
|
311 |
id="com.nokia.carbide.cpp.codescanner.quickstart"
|
|
312 |
name="CodeScanner Quick Start">
|
|
313 |
</cheatsheet>
|
|
314 |
</extension>
|
|
315 |
<!-- =================================================================================== -->
|
|
316 |
<!-- CONTEXT HELP IDs that support CodeScanner -->
|
|
317 |
<!-- =================================================================================== -->
|
|
318 |
<extension point="org.eclipse.help.contexts" >
|
|
319 |
<contexts file="html/cs_CONTEXTID.xml"
|
|
320 |
plugin="com.nokia.carbide.cpp.codescanner"/>
|
|
321 |
</extension>
|
|
322 |
<!-- =================================================================================== -->
|
|
323 |
<!-- Universal Intro support for welcome pages -->
|
|
324 |
<!-- =================================================================================== -->
|
|
325 |
<extension
|
|
326 |
point="org.eclipse.ui.intro.configExtension">
|
|
327 |
|
|
328 |
<configExtension
|
|
329 |
configId="org.eclipse.ui.intro.universalConfig"
|
|
330 |
content="html/intro/overviewCodeScannerExtContent.xml" />
|
|
331 |
|
|
332 |
<configExtension
|
|
333 |
configId="org.eclipse.ui.intro.universalConfig"
|
|
334 |
content="html/intro/whatsnewCodeScannerExtContent.xml" />
|
|
335 |
|
|
336 |
</extension>
|
|
337 |
<!-- =================================================================================== -->
|
|
338 |
<!-- Extension point(s) provided by the CodeScanner plugin -->
|
|
339 |
<!-- =================================================================================== -->
|
|
340 |
<extension-point id="rules" name="Rules" schema="schema/knowledgeBase.exsd"/>
|
|
341 |
|
|
342 |
</plugin>
|