208 property="com.nokia.cdt.debug.launch.isCarbideProject"/> |
208 property="com.nokia.cdt.debug.launch.isCarbideProject"/> |
209 <test |
209 <test |
210 forcePluginActivation="true" |
210 forcePluginActivation="true" |
211 property="com.nokia.cdt.debug.launch.isExecutable"/> |
211 property="com.nokia.cdt.debug.launch.isExecutable"/> |
212 </or> |
212 </or> |
|
213 <test |
|
214 forcePluginActivation="true" |
|
215 property="com.nokia.cdt.debug.launch.isNotEmulator"> |
|
216 </test> |
213 </and> |
217 </and> |
214 </iterate> |
218 </iterate> |
215 </with> |
219 </with> |
216 </enablement> |
220 </enablement> |
217 <contextLabel |
221 <contextLabel |
218 mode="run" |
222 mode="run" |
219 label="Run Symbian OS Application"/> |
223 label="Run Symbian OS Application on board"/> |
220 <contextLabel |
224 <contextLabel |
221 mode="debug" |
225 mode="debug" |
222 label="Debug Symbian OS Application"/> |
226 label="Debug Symbian OS Application on board"/> |
223 </contextualLaunch> |
227 </contextualLaunch> |
224 <description |
228 <description |
225 mode="run" |
229 mode="run" |
226 description="Runs a Symbian OS executable"/> |
230 description="Runs on a development board or reference hardware using a JTAG connection."/> |
227 <description |
231 <description |
228 mode="debug" |
232 mode="debug" |
229 description="Debugs a Symbian OS executable"/> |
233 description="Debugs on a development board or reference hardware using a JTAG connection."/> |
|
234 </shortcut> |
|
235 <shortcut |
|
236 class="com.nokia.cdt.internal.debug.launch.PhoneLaunchShortcut" |
|
237 icon="icons/launch_config_file_16x16.png" |
|
238 id="com.nokia.cdt.debug.launch.symbianCPPShortcut.phone" |
|
239 label="Symbian OS Phone Launch" |
|
240 modes="run, debug"> |
|
241 <contextualLaunch> |
|
242 <enablement> |
|
243 <with |
|
244 variable="selection"> |
|
245 <count |
|
246 value="1"> |
|
247 </count> |
|
248 <iterate> |
|
249 <and> |
|
250 <or> |
|
251 <instanceof |
|
252 value="org.eclipse.cdt.core.model.IBinary"> |
|
253 </instanceof> |
|
254 <instanceof |
|
255 value="org.eclipse.cdt.core.model.ICProject"> |
|
256 </instanceof> |
|
257 <instanceof |
|
258 value="org.eclipse.cdt.debug.core.executables.Executable"> |
|
259 </instanceof> |
|
260 <test |
|
261 forcePluginActivation="true" |
|
262 property="org.eclipse.cdt.launch.isExecutable"> |
|
263 </test> |
|
264 <test |
|
265 forcePluginActivation="true" |
|
266 property="org.eclipse.cdt.launch.isCProject"> |
|
267 </test> |
|
268 <and> |
|
269 <instanceof |
|
270 value="org.eclipse.ui.IFileEditorInput"> |
|
271 </instanceof> |
|
272 <adapt |
|
273 type="org.eclipse.core.resources.IResource"> |
|
274 <adapt |
|
275 type="org.eclipse.cdt.core.model.ICElement"> |
|
276 </adapt> |
|
277 </adapt> |
|
278 </and> |
|
279 <test |
|
280 forcePluginActivation="true" |
|
281 property="com.nokia.cdt.debug.launch.isCarbideProject"> |
|
282 </test> |
|
283 <test |
|
284 forcePluginActivation="true" |
|
285 property="com.nokia.cdt.debug.launch.isExecutable"> |
|
286 </test> |
|
287 </or> |
|
288 <test |
|
289 forcePluginActivation="true" |
|
290 property="com.nokia.cdt.debug.launch.isNotEmulator"> |
|
291 </test> |
|
292 </and> |
|
293 </iterate> |
|
294 </with> |
|
295 </enablement> |
|
296 <contextLabel |
|
297 label="Run Symbian OS Application on phone" |
|
298 mode="run"> |
|
299 </contextLabel> |
|
300 <contextLabel |
|
301 label="Debug Symbian OS Application on phone" |
|
302 mode="debug"> |
|
303 </contextLabel> |
|
304 </contextualLaunch> |
|
305 <description |
|
306 description="Debugs on a phone using System TRK or Application TRK" |
|
307 mode="debug"> |
|
308 </description> |
|
309 <description |
|
310 description="Runs on a phone using System TRK or Application TRK" |
|
311 mode="run"> |
|
312 </description> |
|
313 </shortcut> |
|
314 <shortcut |
|
315 class="com.nokia.cdt.internal.debug.launch.EmulatorLaunchShortcut" |
|
316 icon="icons/launch_config_file_16x16.png" |
|
317 id="com.nokia.cdt.debug.launch.symbianCPPShortcut.emulator" |
|
318 label="Symbian OS Emulator Launch" |
|
319 modes="run, debug"> |
|
320 <contextualLaunch> |
|
321 <enablement> |
|
322 <with |
|
323 variable="selection"> |
|
324 <count |
|
325 value="1"> |
|
326 </count> |
|
327 <iterate> |
|
328 <and> |
|
329 <or> |
|
330 <instanceof |
|
331 value="org.eclipse.cdt.core.model.IBinary"> |
|
332 </instanceof> |
|
333 <instanceof |
|
334 value="org.eclipse.cdt.core.model.ICProject"> |
|
335 </instanceof> |
|
336 <instanceof |
|
337 value="org.eclipse.cdt.debug.core.executables.Executable"> |
|
338 </instanceof> |
|
339 <test |
|
340 forcePluginActivation="true" |
|
341 property="org.eclipse.cdt.launch.isExecutable"> |
|
342 </test> |
|
343 <test |
|
344 forcePluginActivation="true" |
|
345 property="org.eclipse.cdt.launch.isCProject"> |
|
346 </test> |
|
347 <and> |
|
348 <instanceof |
|
349 value="org.eclipse.ui.IFileEditorInput"> |
|
350 </instanceof> |
|
351 <adapt |
|
352 type="org.eclipse.core.resources.IResource"> |
|
353 <adapt |
|
354 type="org.eclipse.cdt.core.model.ICElement"> |
|
355 </adapt> |
|
356 </adapt> |
|
357 </and> |
|
358 <test |
|
359 forcePluginActivation="true" |
|
360 property="com.nokia.cdt.debug.launch.isCarbideProject"> |
|
361 </test> |
|
362 <test |
|
363 forcePluginActivation="true" |
|
364 property="com.nokia.cdt.debug.launch.isExecutable"> |
|
365 </test> |
|
366 </or> |
|
367 <test |
|
368 forcePluginActivation="true" |
|
369 property="com.nokia.cdt.debug.launch.isEmulator"> |
|
370 </test> |
|
371 </and> |
|
372 </iterate> |
|
373 </with> |
|
374 </enablement> |
|
375 <contextLabel |
|
376 label="Run Symbian OS Application on emulator" |
|
377 mode="run"> |
|
378 </contextLabel> |
|
379 <contextLabel |
|
380 label="Debug Symbian OS Application on emulator" |
|
381 mode="debug"> |
|
382 </contextLabel> |
|
383 </contextualLaunch> |
|
384 <description |
|
385 description="Debugs using a WINSCW emulator" |
|
386 mode="debug"> |
|
387 </description> |
|
388 <description |
|
389 description="Runs using a WINSCW emulator" |
|
390 mode="run"> |
|
391 </description> |
230 </shortcut> |
392 </shortcut> |
231 </extension> |
393 </extension> |
232 |
394 |
233 <!-- Property testers --> |
395 <!-- Property testers --> |
234 <extension point="org.eclipse.core.expressions.propertyTesters"> |
396 <extension point="org.eclipse.core.expressions.propertyTesters"> |
235 <propertyTester |
397 <propertyTester |
236 namespace="com.nokia.cdt.debug.launch" |
398 namespace="com.nokia.cdt.debug.launch" |
237 properties="isExecutable, isCarbideProject" |
399 properties="isExecutable, isCarbideProject, isEmulator, isNotEmulator" |
238 type="org.eclipse.core.runtime.IAdaptable" |
400 type="org.eclipse.core.runtime.IAdaptable" |
239 class="com.nokia.cdt.internal.debug.launch.SymbianProjectPropertyTester" |
401 class="com.nokia.cdt.internal.debug.launch.SymbianProjectPropertyTester" |
240 id="com.nokia.cdt.debug.launch.SymbianProjectPropertyTester"> |
402 id="com.nokia.cdt.debug.launch.SymbianProjectPropertyTester"> |
241 </propertyTester> |
403 </propertyTester> |
242 </extension> |
404 </extension> |
279 </extension> |
441 </extension> |
280 |
442 |
281 <extension-point id="launchWizardExtension" name="Launch Wizard Page" schema="schema/launchWizardExtension.exsd"/> |
443 <extension-point id="launchWizardExtension" name="Launch Wizard Page" schema="schema/launchWizardExtension.exsd"/> |
282 <extension-point id="launchCategoryExtension" name="Launch Category" schema="schema/launchCategoryExtension.exsd"/> |
444 <extension-point id="launchCategoryExtension" name="Launch Category" schema="schema/launchCategoryExtension.exsd"/> |
283 |
445 |
284 <!-- REMOVE THIS : just a hack for getting the new launch wizard into a toolbar --> |
|
285 |
|
286 <extension |
|
287 point="org.eclipse.ui.commands"> |
|
288 <category |
|
289 id="com.nokia.cdt.debug.launch.commands.category" |
|
290 name="Sample Category"> |
|
291 </category> |
|
292 <command |
|
293 categoryId="com.nokia.cdt.debug.launch.commands.category" |
|
294 id="com.nokia.cdt.debug.launch.commands.sampleCommand" |
|
295 name="Sample Command"> |
|
296 </command> |
|
297 </extension> |
|
298 <extension |
|
299 point="org.eclipse.ui.handlers"> |
|
300 <handler |
|
301 class="com.nokia.cdt.internal.debug.launch.newwizard.CommandRunLaunchWizard2" |
|
302 commandId="com.nokia.cdt.debug.launch.commands.sampleCommand"> |
|
303 </handler> |
|
304 </extension> |
|
305 <extension |
|
306 point="org.eclipse.ui.menus"> |
|
307 <menuContribution |
|
308 locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions"> |
|
309 <toolbar |
|
310 id="com.nokia.cdt.debug.launch.toolbars.sampleToolbar"> |
|
311 <command |
|
312 commandId="com.nokia.cdt.debug.launch.commands.sampleCommand" |
|
313 icon="icons/NewProjectAssist/debug.gif" |
|
314 id="com.nokia.cdt.debug.launch.toolbars.sampleCommand" |
|
315 tooltip="Show New Launch Wizard"> |
|
316 </command> |
|
317 </toolbar> |
|
318 </menuContribution> |
|
319 </extension> |
|
320 </plugin> |
446 </plugin> |