summaryrefslogtreecommitdiffstats
path: root/plugins/org.yocto.sdk.ide/plugin.xml
blob: c082c3a7ae1bb3e9d2547af72242aa0f569ef90d (plain)
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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension
         point="org.eclipse.ui.preferencePages">
      <page
            class="org.yocto.sdk.ide.preferences.YoctoSDKPreferencePage"
            id="org.yocto.sdk.ide.preferences.YoctoSDKPreferencePage"
            name="%page.name.0">
      </page>
   </extension>
   <extension
         point="org.eclipse.core.runtime.preferences">
      <initializer
            class="org.yocto.sdk.ide.preferences.PreferenceInitializer">
      </initializer>
   </extension>
   <extension
         id="YoctoSDKNature"
         name="%extension.name.0"
         point="org.eclipse.core.resources.natures">
      <runtime>
         <run
               class="org.yocto.sdk.ide.natures.YoctoSDKProjectNature">
         </run>
      </runtime>
   </extension>
   <extension
         id="YoctoSDKAutotoolsNature"
         name="%extension.name.1"
         point="org.eclipse.core.resources.natures">
      <requires-nature
            id="org.yocto.sdk.ide.YoctoSDKNature">
      </requires-nature>
      <requires-nature
            id="org.eclipse.cdt.autotools.core.autotoolsNatureV2">
      </requires-nature>
      <runtime>
         <run
               class="org.yocto.sdk.ide.natures.YoctoSDKAutotoolsProjectNature">
         </run>
      </runtime>
      <one-of-nature
            id="org.yocto.sdk.ide.buildsystemNaturesSet">
      </one-of-nature>
      <builder
            id="org.eclipse.cdt.autotools.core.genmakebuilderV2">
      </builder>
   </extension>
   <extension
         id="YoctoSDKCMakeNature"
         name="%extension.name.2"
         point="org.eclipse.core.resources.natures">
      <requires-nature
            id="org.yocto.sdk.ide.YoctoSDKNature">
      </requires-nature>
      <runtime>
         <run
               class="org.yocto.sdk.ide.natures.YoctoSDKCMakeProjectNature">
         </run>
      </runtime>
      <one-of-nature
            id="org.yocto.sdk.ide.buildsystemNaturesSet">
      </one-of-nature>
   </extension>
   <extension
         id="YoctoSDKEmptyNature"
         point="org.eclipse.core.resources.natures">
      <requires-nature
            id="org.yocto.sdk.ide.YoctoSDKNature">
      </requires-nature>
      <runtime>
         <run
               class="org.yocto.sdk.ide.natures.YoctoSDKEmptyProjectNature">
         </run>
      </runtime>
   </extension>
   <extension
         point="org.eclipse.ui.commands">
      <command
            id="org.yocto.sdk.ide.command.reconfigYocto"
            name="%command.name">
      </command>
      <command
            id="org.yocto.sdk.ide.command.disabled"
            name="DisabledCommand">
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.handlers">
      <handler
            class="org.yocto.sdk.ide.actions.ReconfigYoctoHandler"
            commandId="org.yocto.sdk.ide.command.reconfigYocto">
      </handler>
   </extension>
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            locationURI="menu:project">
         <command
               commandId="org.yocto.sdk.ide.command.reconfigYocto"
               id="reconfigure"
               label="%command.label.0"
               mnemonic="%command.mnemonic"
               style="push">
            <visibleWhen
                  checkEnabled="false">
               <and>
                  <count
                        value="1">
                  </count>
                  <iterate>
                     <adapt
                           type="org.eclipse.core.resources.IResource">
                        <test
                              property="org.eclipse.core.resources.projectNature"
                              value="org.yocto.sdk.ide.YoctoSDKAutotoolsNature">
                        </test>
                     </adapt>
                  </iterate>
               </and>
            </visibleWhen>
         </command>
      </menuContribution>
   </extension>
   <extension
         point="org.eclipse.cdt.core.templates">
      <template
            filterPattern=".*gcc"
            id="org.yocto.sdk.ide.template.emptyCProject"
            location="templates/projecttemplates/EmptyCAutotoolsProject/template.xml"
            projectType="org.yocto.sdk.ide.projectType">
      </template>
      <template
            filterPattern=".*g\+\+"
            id="org.yocto.sdk.ide.template.emptyCPPProject"
            location="templates/projecttemplates/EmptyCPPAutotoolsProject/template.xml"
            projectType="org.yocto.sdk.ide.projectType">
      </template>
      <template
            filterPattern=".*gcc"
            id="org.yocto.sdk.ide.template.helloWorldCProject"
            location="templates/projecttemplates/HelloWorldCAutotoolsProject/template.xml"
            projectType="org.yocto.sdk.ide.projectType">
      </template>
      <template
            filterPattern=".*g\+\+"
            id="org.yocto.sdk.ide.template.helloWorldCPPProject"
            location="templates/projecttemplates/HelloWorldCPPAutotoolsProject/template.xml"
            projectType="org.yocto.sdk.ide.projectType">
      </template>
      <template
            filterPattern=".*gcc"
            id="org.yocto.sdk.ide.template.helloWorldCGTKProject"
            location="templates/projecttemplates/HelloWorldCGTKAutotoolsProject/template.xml"
            projectType="org.yocto.sdk.ide.projectType">
      </template>
   </extension>
   <extension
         point="org.eclipse.cdt.core.templateProcessTypes">
      <processType
            name="NewYoctoProject"
            processRunner="org.yocto.sdk.ide.wizard.NewYoctoProjectTemplateProcess">
         <simple
               name="name">
         </simple>
         <simple
               external="true"
               name="location"
               nullable="true">
         </simple>
         <simple
               external="true"
               name="artifactExtension">
         </simple>
         <simple
               external="true"
               name="isCProject">
         </simple>
         <simple
               external="true"
               name="isEmptyProject">
         </simple>
         <simple
               external="true"
               name="isAutotoolsProject">
         </simple>
         <simple
               external="true"
               name="isCMakeProject">
         </simple>
      </processType>
      <processType
            name="NewYoctoAutotoolsProjectPostProcess"
            processRunner="org.yocto.sdk.ide.wizard.NewYoctoAutotoolsProjectPostProcess">
         <simple
               name="projectName">
         </simple>
      </processType>
   </extension>
   <extension
         point="org.eclipse.cdt.managedbuilder.core.buildDefinitions">
      <projectType
            id="org.yocto.sdk.ide.projectType"
            isAbstract="true"
            name="%projectType.name.0"
            superClass="org.eclipse.linuxtools.cdt.autotools.core.projectType">
      </projectType>
   </extension>
   <extension
         id="org.yocto.sdk.ide.actions.YoctoConsole"
         point="org.eclipse.cdt.core.CBuildConsole">
      <CBuildConsole
            class="org.yocto.sdk.ide.actions.YoctoConsole"
            id="org.yocto.sdk.ide.YoctoConsole">
      </CBuildConsole>
   </extension>
   <extension
         point="org.eclipse.ui.propertyPages">
      <page
            adaptable="true"
            class="org.yocto.sdk.ide.preferences.YoctoSDKProjectPropertyPage"
            id="org.yocto.sdk.ide.page"
            name="%projectProperties.label.0"
            objectClass="org.eclipse.core.resources.IProject">
         <filter
               name="projectNature"
               value="org.yocto.sdk.ide.YoctoSDKNature">
         </filter>
      </page>
   </extension>
   <extension
         point="org.eclipse.ui.commands">
      <command
            defaultHandler="org.yocto.sdk.ide.actions.ProfileSwitchHandler"
            description="%command.targetProfileSwitch.description"
            id="org.yocto.sdk.ide.targetProfile.switch"
            name="%command.targetProfileSwitch.name">
         <commandParameter
               id="org.eclipse.ui.commands.radioStateParameter"
               name="%command.targetProfileSwitch.parameter.name"
               optional="false">
         </commandParameter>
         <state
               class="org.eclipse.ui.handlers.RadioState:project-specific"
               id="org.eclipse.ui.commands.radioState">
         </state>
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            allPopups="true"
            locationURI="menu:project">
         <menu
               id="org.yocto.sdk.ide.profiles.menu"
               label="%command.targetProfileSwitch.label"
               tooltip="%command.targetProfileSwitch.description">
         </menu>
      </menuContribution>
      <menuContribution
            allPopups="true"
            locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
         <toolbar
               id="org.yocto.sdk.ide.profiles.toolbar">
            <command
                  commandId="org.yocto.sdk.ide.command.reconfigYocto"
                  id="org.yocto.sdk.ide.profiles.toolbar.dropdown"
                  label="%command.targetProfileSwitch.label"
                  mode="FORCE_TEXT"
                  style="pulldown"
                  tooltip="%command.targetProfileSwitch.description">
               <visibleWhen
                     checkEnabled="false">
                  <and>
	                  <count
	                        value="1">
	                  </count>
	                  <iterate
	                        operator="and">
	                     <adapt
	                           type="org.eclipse.core.resources.IResource">
	                        <test
	                              property="org.eclipse.core.resources.projectNature"
	                              value="org.yocto.sdk.ide.YoctoSDKNature">
	                        </test>
	                     </adapt>
	                  </iterate>
	               </and>
               </visibleWhen>
            </command>
         </toolbar>
      </menuContribution>
      <menuContribution
            allPopups="false"
            locationURI="menu:org.yocto.sdk.ide.profiles.menu">
         <dynamic
               class="org.yocto.sdk.ide.ProjectSpecificContributionItem"
               id="org.yocto.sdk.ide.dynamic.projectSpecific.targetProfile">
         </dynamic>
         <separator
               name="org.yocto.sdk.ide.profiles.separator"
               visible="true">
         </separator>
         <dynamic
               class="org.yocto.sdk.ide.TargetProfileContributionItem"
               id="org.yocto.sdk.ide.dynamic.targetProfile">
         </dynamic>
      </menuContribution>
      <menuContribution
            allPopups="false"
            locationURI="menu:org.yocto.sdk.ide.profiles.toolbar.dropdown">
         <dynamic
               class="org.yocto.sdk.ide.ProjectSpecificContributionItem"
               id="org.yocto.sdk.ide.dynamic.projectSpecific.targetProfile">
         </dynamic>
         <separator
               name="org.yocto.sdk.ide.profiles.separator"
               visible="true">
         </separator>
         <dynamic
               class="org.yocto.sdk.ide.TargetProfileContributionItem"
               id="org.yocto.sdk.ide.dynamic.targetProfile">
         </dynamic>
      </menuContribution>
   </extension>
</plugin>