-
Notifications
You must be signed in to change notification settings - Fork 32
/
plugin.xml
364 lines (362 loc) · 13.7 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
id="RteNature"
name="%CmsisRteProjectNature"
point="org.eclipse.core.resources.natures">
<runtime>
<run
class="com.arm.cmsis.pack.project.RteProjectNature">
</run>
</runtime>
</extension>
<extension
point="org.eclipse.cdt.core.templates">
<template
id="com.arm.cmsis.pack.project.template"
location="templates/cmsis_project/template.xml"
pagesAfterTemplateSelectionProvider="com.arm.cmsis.pack.project.template.RteProjectTemplate"
projectType="org.eclipse.cdt.build.core.buildArtefactType.exe">
</template>
</extension>
<extension
id="RteConfigurationDataProvider"
name="%CmsisRteConfigDataProvider"
point="org.eclipse.cdt.core.CConfigurationDataProvider">
<provider
class="com.arm.cmsis.pack.project.RteSetupHook"
natures="com.arm.cmsis.pack.project.RteNature">
</provider>
</extension>
<extension
point="org.eclipse.cdt.core.templateProcessTypes">
<processType
name="CreateRteProject"
processRunner="com.arm.cmsis.pack.project.template.CreateRteProject">
<simple
name="projectName">
</simple>
<simple
name="compiler">
</simple>
<simple
name="output">
</simple>
<simple
name="toolChainAdapter">
</simple>
<simple
name="lastStep">
</simple>
</processType>
<processType
name="InstallDeviceAndBoardPacks"
processRunner="com.arm.cmsis.pack.project.template.InstallDeviceAndBoardPacks">
<simple
name="projectName">
</simple>
</processType>
</extension>
<extension
point="org.eclipse.ui.decorators">
<decorator
adaptable="true"
class="com.arm.cmsis.pack.project.ui.RteProjectDecorator"
id="com.arm.cmsis.pack.project.decorators.RteProjectDecorator"
label="%CmsisRteProjectDecorator"
lightweight="true"
state="true">
<enablement>
<objectClass
name="org.eclipse.core.resources.IResource">
</objectClass>
</enablement>
</decorator>
</extension>
<extension
point="org.eclipse.ui.propertyPages">
<page
class="com.arm.cmsis.pack.project.ui.RtePropertyPage"
id="com.arm.cmsis.pack.project.ui.samplePropertyPage"
name="%CmsisRteProjectPropertyPageName"
nameFilter="*.*"
selectionFilter="single">
<enabledWhen>
<test
property="com.arm.cmsis.pack.project.property.rteFile">
</test>
</enabledWhen>
</page>
</extension>
<extension
point="org.eclipse.core.expressions.propertyTesters">
<propertyTester
class="com.arm.cmsis.pack.project.ui.RtePropertyTester"
id="com.arm.cmsis.pack.project.RtePropertyTester"
namespace="com.arm.cmsis.pack.project.property"
properties="rteFile"
type="org.eclipse.core.runtime.IAdaptable">
</propertyTester>
<propertyTester
class="com.arm.cmsis.pack.project.ui.RteUpdateConfigFileTester"
id="com.arm.cmsis.pack.project.RteUpdateConfigFileTester"
namespace="com.arm.cmsis.pack.project.update"
properties="canUpdate, canMerge"
type="org.eclipse.core.runtime.IAdaptable">
</propertyTester>
</extension>
<extension
point="org.eclipse.core.resources.variableResolvers">
<variableResolver
class="com.arm.cmsis.pack.project.CpVariableResolver"
variable="cmsis_pack_root">
</variableResolver>
<variableResolver
class="com.arm.cmsis.pack.project.CpVariableResolver"
variable="${cmsis_pack_root}">
</variableResolver>
<variableResolver
class="com.arm.cmsis.pack.project.CpVariableResolver"
variable="${cmsis_rte}">
</variableResolver>
<variableResolver
class="com.arm.cmsis.pack.project.CpVariableResolver"
variable="cmsis_rte">
</variableResolver>
</extension>
<extension
point="org.eclipse.core.variables.dynamicVariables">
<variable
description="The root directory containing CMSIS-Packs "
name="cmsis_pack_root"
resolver="com.arm.cmsis.pack.project.CpVariableResolver"
supportsArgument="true">
</variable>
<variable
description="Path to DFP (Device Family Pack) used in the project"
name="cmsis_dfp"
resolver="com.arm.cmsis.pack.project.CpVariableResolver"
supportsArgument="true">
</variable>
<variable
description="RTE marker, expands to an empty string. Prefixes RTE-specific paths and marks RTE-specific pre-/post-build commands using :begin and :end arguments. "
name="cmsis_rte"
resolver="com.arm.cmsis.pack.project.CpVariableResolver"
supportsArgument="true">
</variable>
</extension>
<extension
point="org.eclipse.ltk.core.refactoring.renameParticipants">
<renameParticipant
class="com.arm.cmsis.pack.project.ui.RteProjectRenameParticipant"
id="com.arm.cmsis.pack.project.renameParticipant1"
name="Rename RTE project participant">
<enablement>
<with variable="affectedNatures">
<iterate operator="or">
<equals value="com.arm.cmsis.pack.project.RteNature"/>
</iterate>
</with>
<with variable="element">
<instanceof value="org.eclipse.core.resources.IResource"/>
</with>
</enablement>
</renameParticipant>
</extension>
<extension
point="org.eclipse.ui.commands">
<category
id="com.arm.cmsis.pack.project.ui.updateConfigFileCategory"
name="RTE Configuration">
</category>
<command
categoryId="com.arm.cmsis.pack.project.ui.updateConfigFileCategory"
id="com.arm.cmsis.pack.project.ui.commands.updateConfigFile"
name="Update Config File">
</command>
<command
categoryId="com.arm.cmsis.pack.project.ui.updateConfigFileCategory"
id="com.arm.cmsis.pack.project.ui.commands.mergeConfigFile"
name="Merge Config File">
</command>
<command
id="com.arm.cmsis.pack.project.ui.commands.resetBuildSettings"
name="Reset Build Settings">
</command>
<command
id="com.arm.cmsis.pack.project.ui.commands.cleanup"
name="Remove Unused Files">
</command>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.eclipse.ui.navigator.ProjectExplorer#PopupMenu?after=group.build">
<menu
icon="icons/rte.gif"
id="com.arm.cmsis.pack.project.ui.cmsisSubmenu"
label="CMSIS C/C++ Project">
<command
commandId="com.arm.cmsis.pack.project.ui.commands.updateConfigFile"
label="Update Config File"
style="push">
<visibleWhen
checkEnabled="false">
<iterate
ifEmpty="false">
<test
forcePluginActivation="true"
property="com.arm.cmsis.pack.project.update.canUpdate">
</test>
</iterate>
</visibleWhen>
</command>
<command
commandId="com.arm.cmsis.pack.project.ui.commands.mergeConfigFile"
label="Merge Config File"
style="push">
<visibleWhen
checkEnabled="false">
<iterate
ifEmpty="false">
<test
forcePluginActivation="true"
property="com.arm.cmsis.pack.project.update.canMerge">
</test>
</iterate>
</visibleWhen>
</command>
<command
commandId="com.arm.cmsis.pack.project.ui.commands.resetBuildSettings"
label="Reset Build Settings"
style="push">
<visibleWhen
checkEnabled="false">
<with
variable="activeMenuSelection">
<iterate
ifEmpty="false"
operator="or">
<adapt
type="org.eclipse.core.resources.IProject">
<test
property="org.eclipse.core.resources.projectNature"
value="com.arm.cmsis.pack.project.RteNature">
</test>
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
<command
commandId="com.arm.cmsis.pack.project.ui.commands.cleanup"
label="Remove Unused Files"
style="push">
<visibleWhen
checkEnabled="false">
<with
variable="activeMenuSelection">
<iterate
ifEmpty="false"
operator="or">
<adapt
type="org.eclipse.core.resources.IProject">
<test
property="org.eclipse.core.resources.projectNature"
value="com.arm.cmsis.pack.project.RteNature">
</test>
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
</menu>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="com.arm.cmsis.pack.project.ui.handlers.UpdateConfigFileHandler"
commandId="com.arm.cmsis.pack.project.ui.commands.updateConfigFile">
</handler>
<handler
class="com.arm.cmsis.pack.project.ui.handlers.MergeConfigFileHandler"
commandId="com.arm.cmsis.pack.project.ui.commands.mergeConfigFile">
</handler>
<handler
class="com.arm.cmsis.pack.project.ui.handlers.ResetBuildSettingsHandler"
commandId="com.arm.cmsis.pack.project.ui.commands.resetBuildSettings">
</handler>
<handler
class="com.arm.cmsis.pack.project.ui.handlers.CleanupHandler"
commandId="com.arm.cmsis.pack.project.ui.commands.cleanup">
</handler>
</extension>
<extension
point="org.eclipse.ui.navigator.navigatorContent">
<commonWizard
type="new"
wizardId="com.arm.cmsis.pack.project.wizards.cmsisCodeTemplateNewWizard">
<enablement>
<with
variable="selection">
<iterate
operator="or">
<adapt
type="org.eclipse.core.resources.IResource">
</adapt>
</iterate>
</with></enablement>
</commonWizard>
</extension>
<extension
point="org.eclipse.ui.newWizards">
<category
id="com.arm.cmsis.pack.project.cmsisCodeTemplateCategory"
name="CMSIS User Code Template">
</category>
<wizard
category="com.arm.cmsis.pack.project.cmsisCodeTemplateCategory"
class="com.arm.cmsis.pack.project.wizards.CmsisCodeTemplateNewWizard"
finalPerspective="org.eclipse.cdt.ui.CPerspective"
icon="icons/new_cmsis_templ.png"
id="com.arm.cmsis.pack.project.wizards.cmsisCodeTemplateNewWizard"
name="Files from CMSIS Template">
<selection
class="org.eclipse.core.resources.IResource">
</selection>
</wizard>
</extension>
<extension
id="headlessbuild"
name="CMSIS Project Headless Build"
point="org.eclipse.core.runtime.applications">
<application
cardinality="1"
icon="icons/rte.gif"
thread="main"
visible="true">
<run
class="com.arm.cmsis.pack.project.CmsisHeadlessBuilder">
</run>
</application>
</extension>
<extension
point="org.eclipse.ui.importWizards">
<wizard
category="com.arm.cmsis.category"
class="com.arm.cmsis.pack.project.wizards.CsolutionImportWizard"
icon="icons/rte.gif"
id="com.arm.cmsis.pack.project.wizards.CsolutionImportWizard"
name="Csolution projects for debugging (experimental)">
<description>
Import projects specified by cbuild-idx.yml file into workspace for debugging
</description>
</wizard>
<category
id="com.arm.cmsis.category"
name="CMSIS">
</category>
</extension>
</plugin>