|
Lines 413-416
Link Here
|
| 413 |
mode="linuxtools"> |
413 |
mode="linuxtools"> |
| 414 |
</launchMode> |
414 |
</launchMode> |
| 415 |
</extension> |
415 |
</extension> |
|
|
416 |
<extension point="org.eclipse.debug.core.launchDelegates"> |
| 417 |
<launchDelegate |
| 418 |
id="org.eclipse.linuxtools.profilingDelegate" |
| 419 |
type="org.eclipse.cdt.launch.applicationLaunchType" |
| 420 |
modes="profile" |
| 421 |
delegate="org.eclipse.linuxtools.internal.profiling.launch.provider.launch.ProviderLaunchConfigurationDelegate" |
| 422 |
name="ProfilingDelegate" |
| 423 |
delegateDescription="%launchDelegate.localApplication.description" |
| 424 |
sourceLocatorId="org.eclipse.cdt.debug.core.sourceLocator" |
| 425 |
sourcePathComputerId="org.eclipse.cdt.debug.core.sourcePathComputer"> |
| 426 |
</launchDelegate> |
| 427 |
</extension> |
| 428 |
<extension |
| 429 |
point="org.eclipse.debug.ui.launchConfigurationTabs"> |
| 430 |
<!-- Profiling launch tabs--> |
| 431 |
<tab |
| 432 |
id="org.eclipse.cdt.cdi.launch.profileApplicationLaunch.mainTab" |
| 433 |
group="org.eclipse.cdt.launch.applicationProfileLaunchTabGroup" |
| 434 |
name="Main" |
| 435 |
class="org.eclipse.cdt.launch.ui.CMainTab"> |
| 436 |
<associatedDelegate delegate="org.eclipse.linuxtools.profilingDelegate"/> |
| 437 |
</tab> |
| 438 |
<tab |
| 439 |
id="org.eclipse.cdt.cdi.launch.profileApplicationLaunch.argumentsTab" |
| 440 |
group="org.eclipse.cdt.launch.applicationProfileLaunchTabGroup" |
| 441 |
name="Arguments" |
| 442 |
class="org.eclipse.cdt.launch.ui.CArgumentsTab"> |
| 443 |
<associatedDelegate delegate="org.eclipse.linuxtools.profilingDelegate"/> |
| 444 |
<placement after="org.eclipse.cdt.cdi.launch.mainTab"/> |
| 445 |
</tab> |
| 446 |
<tab |
| 447 |
id="org.eclipse.cdt.cdi.launch.profileApplicationLaunch.environmentTab" |
| 448 |
group="org.eclipse.cdt.launch.applicationProfileLaunchTabGroup" |
| 449 |
name="Environment" |
| 450 |
class="org.eclipse.debug.ui.EnvironmentTab"> |
| 451 |
<associatedDelegate delegate="org.eclipse.linuxtools.profilingDelegate"/> |
| 452 |
<placement after="org.eclipse.cdt.cdi.launch.argumentsTab"/> |
| 453 |
</tab> |
| 454 |
<tab |
| 455 |
id="org.eclipse.cdt.cdi.launch.profileApplicationLaunch.commonTab" |
| 456 |
group="org.eclipse.cdt.launch.applicationProfileLaunchTabGroup" |
| 457 |
name="Common" |
| 458 |
class="org.eclipse.debug.ui.CommonTab"> |
| 459 |
<associatedDelegate delegate="org.eclipse.linuxtools.profilingDelegate"/> |
| 460 |
<placement after="org.eclipse.debug.ui.environmentTab"/> |
| 461 |
</tab> |
| 462 |
<tab |
| 463 |
id="org.eclipse.cdt.cdi.launch.profileApplicationLaunch.profilingTab" |
| 464 |
group="org.eclipse.cdt.launch.applicationProfileLaunchTabGroup" |
| 465 |
name="Profiler" |
| 466 |
class="org.eclipse.linuxtools.profiling.launch.RemoteProxyCMainTab"> <!--Link to the proper tab--> |
| 467 |
<associatedDelegate delegate="org.eclipse.linuxtools.profilingDelegate"/> |
| 468 |
<placement after="org.eclipse.debug.ui.commonTab"/> |
| 469 |
</tab> |
| 470 |
</extension> |
| 471 |
<extension |
| 472 |
point="org.eclipse.debug.ui.launchConfigurationTabGroups"> |
| 473 |
<launchConfigurationTabGroup |
| 474 |
type="org.eclipse.cdt.launch.applicationLaunchType" |
| 475 |
class="org.eclipse.linuxtools.profiling.launch.PlaceHolderLaunchConfigurationTabGroup" |
| 476 |
id="org.eclipse.cdt.launch.applicationProfileLaunchTabGroup"> |
| 477 |
<launchMode mode="profile"/> |
| 478 |
</launchConfigurationTabGroup> |
| 479 |
</extension> |
| 480 |
<extension |
| 481 |
point="org.eclipse.debug.ui.launchShortcuts"> |
| 482 |
<shortcut |
| 483 |
label="Local C/C++ Application" |
| 484 |
icon="icons/time_obj.gif" |
| 485 |
modes="profile" |
| 486 |
class="org.eclipse.linuxtools.profiling.launch.CApplicationLaunchShortcut" |
| 487 |
id="org.eclipse.cdt.debug.ui.localCShortcut"> |
| 488 |
<contextualLaunch> |
| 489 |
<enablement> |
| 490 |
<with variable="selection"> |
| 491 |
<count value="1"/> |
| 492 |
<iterate> |
| 493 |
<or> |
| 494 |
<instanceof value="org.eclipse.cdt.core.model.IBinary"/> |
| 495 |
<instanceof value="org.eclipse.cdt.core.model.ICProject"/> |
| 496 |
<test |
| 497 |
forcePluginActivation="true" |
| 498 |
property="org.eclipse.cdt.launch.isExecutable"/> |
| 499 |
<test |
| 500 |
forcePluginActivation="true" |
| 501 |
property="org.eclipse.cdt.launch.isCProject"/> |
| 502 |
<and> |
| 503 |
<instanceof value="org.eclipse.ui.IFileEditorInput"/> |
| 504 |
<adapt type="org.eclipse.core.resources.IResource"> |
| 505 |
<adapt type="org.eclipse.cdt.core.model.ICElement"/> |
| 506 |
</adapt> |
| 507 |
</and> |
| 508 |
</or> |
| 509 |
</iterate> |
| 510 |
</with> |
| 511 |
</enablement> |
| 512 |
</contextualLaunch> |
| 513 |
<description |
| 514 |
mode="profile" |
| 515 |
description="Profiles a local C/C++ application"/> |
| 516 |
<configurationType |
| 517 |
id="org.eclipse.cdt.launch.applicationLaunchType"> |
| 518 |
</configurationType> |
| 519 |
</shortcut> |
| 520 |
</extension> |
| 416 |
</plugin> |
521 |
</plugin> |