<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin
   id="org.eclipse.cdt.launch"
   name="%pluginName"
   version="2.1.1"
   provider-name="%providerName"
   class="org.eclipse.cdt.launch.internal.ui.LaunchUIPlugin">

   <runtime>
      <library name="cdtlaunch.jar">
         <export name="*"/>
      </library>
   </runtime>
   <requires>
      <import plugin="org.eclipse.ui.ide"/>
      <import plugin="org.eclipse.core.expressions"/>
      <import plugin="org.eclipse.core.resources"/>
      <import plugin="org.eclipse.debug.core"/>
      <import plugin="org.eclipse.debug.ui"/>
      <import plugin="org.eclipse.ui"/>
      <import plugin="org.eclipse.cdt.core"/>
      <import plugin="org.eclipse.cdt.ui"/>
      <import plugin="org.eclipse.cdt.debug.core"/>
      <import plugin="org.eclipse.cdt.debug.ui"/>
      <import plugin="org.eclipse.core.boot"/>
      <import plugin="org.eclipse.core.runtime"/>
      <import plugin="org.eclipse.core.variables"/>
   </requires>


   <extension
         point="org.eclipse.debug.core.launchConfigurationTypes">
      <launchConfigurationType
            name="%LocalCDTLaunch.name"
            delegate="org.eclipse.cdt.launch.internal.LocalRunLaunchDelegate"
            modes="run,debug"
            public="true"
            id="org.eclipse.cdt.launch.localCLaunch">
      </launchConfigurationType>
      <launchConfigurationType
            name="%LocalAttachCDTLaunch.name"
            delegate="org.eclipse.cdt.launch.internal.LocalAttachLaunchDelegate"
            modes="debug"
            public="true"
            id="org.eclipse.cdt.launch.localAttachCLaunch">
      </launchConfigurationType>
      <launchConfigurationType
            name="%CoreFileCDTLaunch.name"
            delegate="org.eclipse.cdt.launch.internal.CoreFileLaunchDelegate"
            modes="debug"
            public="true"
            id="org.eclipse.cdt.launch.coreFileCLaunch">
      </launchConfigurationType>
   </extension>
   <extension
         point="org.eclipse.debug.ui.launchConfigurationTypeImages">
      <launchConfigurationTypeImage
            icon="icons/c_app.gif"
            configTypeID="org.eclipse.cdt.launch.localCLaunch"
            id="org.eclipse.cdt.launch.localRunLaunchImage">
      </launchConfigurationTypeImage>
      <launchConfigurationTypeImage
            icon="icons/c_app.gif"
            configTypeID="org.eclipse.cdt.launch.localAttachCLaunch"
            id="org.eclipse.cdt.launch.localAttachLaunchImage">
      </launchConfigurationTypeImage>
      <launchConfigurationTypeImage
            icon="icons/c_app.gif"
            configTypeID="org.eclipse.cdt.launch.coreFileCLaunch"
            id="org.eclipse.cdt.launch.coreFileLaunchImage">
      </launchConfigurationTypeImage>
   </extension>
   <extension
         point="org.eclipse.debug.ui.launchConfigurationTabGroups">
      <launchConfigurationTabGroup
            type="org.eclipse.cdt.launch.localCLaunch"
            class="org.eclipse.cdt.launch.internal.ui.LocalRunLaunchConfigurationTabGroup"
            id="org.eclipse.cdt.launch.localRunLaunchTabGroup">
      </launchConfigurationTabGroup>
      <launchConfigurationTabGroup
            type="org.eclipse.cdt.launch.localAttachCLaunch"
            class="org.eclipse.cdt.launch.internal.ui.LocalAttachLaunchConfigurationTabGroup"
            id="org.eclipse.cdt.launch.localAttachLaunchTabGroup">
      </launchConfigurationTabGroup>
      <launchConfigurationTabGroup
            type="org.eclipse.cdt.launch.coreFileCLaunch"
            class="org.eclipse.cdt.launch.internal.ui.CoreFileLaunchConfigurationTabGroup"
            id="org.eclipse.cdt.launch.voreFileCLaunchTabGroup">
      </launchConfigurationTabGroup>
   </extension>
   <extension
         point="org.eclipse.debug.ui.launchShortcuts">
      <shortcut
            label="%CApplicationShortcut.label"
            icon="icons/c_app.gif"
            modes="run, debug"
            class="org.eclipse.cdt.launch.internal.CApplicationLaunchShortcut"
            id="org.eclipse.cdt.debug.ui.localCShortcut">
         <contextualLaunch>
           <enablement>
             <with variable="selection">
               <count value="1"/>
               <iterate>
                 <test property="org.eclipse.cdt.launch.isExecutable"/>
               </iterate>
             </with>
           </enablement>
           <contextLabel
         	  mode="run"
         	  label="%ContextualRunCApplication.label"/>
  		   <contextLabel
  		 	  mode="debug"
  		 	  label="%ContextualDebugCApplication.label"/>
  		 </contextualLaunch>
         <perspective
               id="org.eclipse.cdt.ui.CPerspective">
         </perspective>
         <perspective
               id="org.eclipse.debug.ui.DebugPerspective">
         </perspective>
      </shortcut>
   </extension>
<!-- Property testers -->
   <extension point="org.eclipse.core.expressions.propertyTesters">
      <propertyTester
      		namespace="org.eclipse.cdt.launch"
            properties="isExecutable"
            type="org.eclipse.core.runtime.IAdaptable"
            class="org.eclipse.cdt.launch.internal.CPropertyTester"
            id="org.eclipse.cdt.launch.CPropertyTester">
      </propertyTester>
   </extension>
   <extension
         point="org.eclipse.debug.core.statusHandlers">
      <statusHandler
            code="100"
            plugin="org.eclipse.cdt.launch"
            class="org.eclipse.cdt.launch.internal.ui.ProcessPrompter"
            id="org.eclipse.cdt.launch.statusHandler.processPrompter">
      </statusHandler>  
      <statusHandler
            code="101"
            plugin="org.eclipse.cdt.launch"
            class="org.eclipse.cdt.launch.internal.ui.CoreFilePrompter"
            id="org.eclipse.cdt.launch.statusHandler.coreFilePrompter">
      </statusHandler>  
	</extension>
	
	<!-- Adapters for contextual launch -->
	<extension point="org.eclipse.core.runtime.adapters">
         <factory 
            class="" 
            adaptableType="org.eclipse.cdt.core.model.IBinary">
            <adapter type="org.eclipse.debug.ui.actions.ILaunchable"/>
         </factory>
         <factory 
            class="" 
            adaptableType="org.eclipse.core.resources.IResource">
            <adapter type="org.eclipse.debug.ui.actions.ILaunchable"/>
         </factory>         
    </extension>
	
</plugin>
