Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'oprofile/org.eclipse.linuxtools.oprofile.launch/plugin.xml')
-rw-r--r--oprofile/org.eclipse.linuxtools.oprofile.launch/plugin.xml129
1 files changed, 129 insertions, 0 deletions
diff --git a/oprofile/org.eclipse.linuxtools.oprofile.launch/plugin.xml b/oprofile/org.eclipse.linuxtools.oprofile.launch/plugin.xml
new file mode 100644
index 0000000000..e5c218ae44
--- /dev/null
+++ b/oprofile/org.eclipse.linuxtools.oprofile.launch/plugin.xml
@@ -0,0 +1,129 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?>
+<plugin>
+ <extension
+ point="org.eclipse.debug.core.launchConfigurationTypes">
+ <launchConfigurationType
+ delegate="org.eclipse.linuxtools.oprofile.launch.launching.OprofileLaunchConfigurationDelegate"
+ id="org.eclipse.linuxtools.oprofile.launch.oprofile"
+ modes="profile"
+ name="%launchconfigurationtype.label"
+ public="true"
+ sourceLocatorId="org.eclipse.cdt.launch.DefaultSourceLocator"
+ sourcePathComputerId="org.eclipse.cdt.debug.core.sourcePathComputer">
+ </launchConfigurationType>
+ <launchConfigurationType
+ delegate="org.eclipse.linuxtools.oprofile.launch.launching.OprofileManualLaunchConfigurationDelegate"
+ id="org.eclipse.linuxtools.oprofile.launch.oprofile.manual"
+ modes="profile"
+ 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.oprofile.launch.configuration.OprofileLaunchConfigurationTabGroup"
+ id="org.eclipse.linuxtools.oprofile.launch.launchConfigurationTabGroup"
+ type="org.eclipse.linuxtools.oprofile.launch.oprofile">
+ </launchConfigurationTabGroup>
+ <launchConfigurationTabGroup
+ class="org.eclipse.linuxtools.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.oprofile.launch.launching.OprofileLaunchShortcut"
+ icon="icons/profile_run.png"
+ id="org.eclipse.linuxtools.oprofile.launch.profileshortcut"
+ label="%launchshortcuts.label"
+ modes="profile">
+ <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.oprofile.launch.launching.OprofileManualLaunchShortcut"
+ icon="icons/profile_manual_run.png"
+ id="org.eclipse.linuxtools.oprofile.launch.profileshortcut.manual"
+ label="%manual.launchshortcuts.label"
+ modes="profile">
+ <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>
+</plugin>

Back to the top