| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.2"?> |
| <plugin> |
| <extension |
| point="org.eclipse.debug.core.launchConfigurationTypes"> |
| <launchConfigurationType |
| delegate="org.eclipse.linuxtools.internal.oprofile.launch.launching.OprofileLaunchConfigurationDelegate" |
| id="org.eclipse.linuxtools.oprofile.launch.oprofile" |
| modes="linuxtools" |
| name="%launchconfigurationtype.label" |
| public="true" |
| sourceLocatorId="org.eclipse.cdt.launch.DefaultSourceLocator" |
| sourcePathComputerId="org.eclipse.cdt.debug.core.sourcePathComputer"> |
| </launchConfigurationType> |
| <launchConfigurationType |
| delegate="org.eclipse.linuxtools.internal.oprofile.launch.launching.OprofileManualLaunchConfigurationDelegate" |
| id="org.eclipse.linuxtools.oprofile.launch.oprofile.manual" |
| modes="linuxtools" |
| name="%launchconfigurationtype.manual.label" |
| public="true" |
| sourceLocatorId="org.eclipse.cdt.launch.DefaultSourceLocator" |
| sourcePathComputerId="org.eclipse.cdt.debug.core.sourcePathComputer"> |
| </launchConfigurationType> |
| </extension> |
| <extension |
| point="org.eclipse.debug.ui.launchConfigurationTypeImages"> |
| <launchConfigurationTypeImage |
| configTypeID="org.eclipse.linuxtools.oprofile.launch.oprofile" |
| icon="icons/profile_run.png" |
| id="org.eclipse.linuxtools.oprofile.launch.oprofileImage"> |
| </launchConfigurationTypeImage> |
| <launchConfigurationTypeImage |
| configTypeID="org.eclipse.linuxtools.oprofile.launch.oprofile.manual" |
| icon="icons/profile_manual_run.png" |
| id="org.eclipse.linuxtools.oprofile.launch.manual.oprofileImage"> |
| </launchConfigurationTypeImage> |
| </extension> |
| <extension |
| point="org.eclipse.debug.ui.launchConfigurationTabGroups"> |
| <launchConfigurationTabGroup |
| class="org.eclipse.linuxtools.internal.oprofile.launch.configuration.OprofileLaunchConfigurationTabGroup" |
| id="org.eclipse.linuxtools.oprofile.launch.launchConfigurationTabGroup" |
| type="org.eclipse.linuxtools.oprofile.launch.oprofile"> |
| </launchConfigurationTabGroup> |
| <launchConfigurationTabGroup |
| class="org.eclipse.linuxtools.internal.oprofile.launch.configuration.OprofileLaunchConfigurationTabGroup" |
| id="org.eclipse.linuxtools.oprofile.launch.manualLaunchConfigurationTabGroup" |
| type="org.eclipse.linuxtools.oprofile.launch.oprofile.manual"> |
| </launchConfigurationTabGroup> |
| </extension> |
| <extension |
| point="org.eclipse.debug.ui.launchShortcuts"> |
| <shortcut |
| class="org.eclipse.linuxtools.internal.oprofile.launch.launching.OprofileLaunchShortcut" |
| icon="icons/profile_run.png" |
| id="org.eclipse.linuxtools.oprofile.launch.profileshortcut" |
| label="%launchshortcuts.label" |
| modes="linuxtools"> |
| <contextualLaunch> |
| <enablement> |
| <!-- FIXME: this is not a proper enablement condition --> |
| <with variable="selection"> |
| <count value="1"></count> |
| |
| <iterate> |
| <or> |
| <instanceof value="org.eclipse.cdt.core.model.IBinary"/> |
| <instanceof value="org.eclipse.cdt.core.model.ICProject"/> |
| <test property="org.eclipse.cdt.launch.isExecutable"/> |
| <test property="org.eclipse.cdt.launch.isCProject"/> |
| <and> |
| <instanceof value="org.eclipse.ui.IFileEditorInput"/> |
| <adapt type="org.eclipse.core.resources.IResource"> |
| <adapt type="org.eclipse.cdt.core.model.ICElement"/> |
| </adapt> |
| </and> |
| </or> |
| </iterate> |
| |
| </with> |
| </enablement> |
| </contextualLaunch> |
| </shortcut> |
| <shortcut |
| class="org.eclipse.linuxtools.internal.oprofile.launch.launching.OprofileManualLaunchShortcut" |
| icon="icons/profile_manual_run.png" |
| id="org.eclipse.linuxtools.oprofile.launch.profileshortcut.manual" |
| label="%manual.launchshortcuts.label" |
| modes="linuxtools"> |
| <contextualLaunch> |
| <enablement> |
| <with |
| variable="selection"> |
| <count |
| value="1"> |
| </count> |
| <iterate> |
| <or> |
| <instanceof |
| value="org.eclipse.cdt.core.model.IBinary"> |
| </instanceof> |
| <instanceof |
| value="org.eclipse.cdt.core.model.ICProject"> |
| </instanceof> |
| <test |
| property="org.eclipse.cdt.launch.isExecutable"> |
| </test> |
| <test |
| property="org.eclipse.cdt.launch.isCProject"> |
| </test> |
| <and> |
| <instanceof |
| value="org.eclipse.ui.IFileEditorInput"> |
| </instanceof> |
| <adapt |
| type="org.eclipse.core.resources.IResource"> |
| <adapt |
| type="org.eclipse.cdt.core.model.ICElement"> |
| </adapt> |
| </adapt> |
| </and> |
| </or> |
| </iterate> |
| </with> |
| </enablement> |
| </contextualLaunch> |
| </shortcut> |
| </extension> |
| <extension |
| point="org.eclipse.linuxtools.profiling.launch.launchProvider"> |
| <provider |
| delegate="org.eclipse.linuxtools.internal.oprofile.launch.launching.OprofileLaunchConfigurationDelegate" |
| description="%oprofileLaunchConfiguration.description" |
| id="org.eclipse.linuxtools.oprofile.launch.provider" |
| information="%oprofileLaunchConfiguration.information" |
| name="%oprofileLaunchConfiguration.name.0" |
| priority="2" |
| shortcut="org.eclipse.linuxtools.internal.oprofile.launch.launching.OprofileLaunchShortcut" |
| tabgroup="org.eclipse.linuxtools.internal.oprofile.launch.configuration.OprofileLaunchConfigurationTabGroup" |
| type="timing"> |
| </provider> |
| </extension> |
| </plugin> |