<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
   <extension-point id="valgrindTools" name="%extension-point.name.0" schema="schema/valgrindTools.exsd"/>
   <extension-point id="outputDirectoryProviders" name="%extension-point.name.1" schema="schema/outputDirectoryProviders.exsd"/>
   <extension
         point="org.eclipse.debug.core.launchConfigurationTypes">
      <launchConfigurationType
            delegate="org.eclipse.linuxtools.internal.valgrind.launch.ValgrindLaunchConfigurationDelegate"
            id="org.eclipse.linuxtools.valgrind.launch.valgrindLaunch"
            modes="linuxtools"
            name="%launchConfigurationType.name.0"
            public="true"
            sourceLocatorId="org.eclipse.cdt.debug.core.sourceLocator"
            sourcePathComputerId="org.eclipse.cdt.debug.core.sourcePathComputer">
      </launchConfigurationType>
      <launchConfigurationType
            delegate="org.eclipse.linuxtools.internal.valgrind.launch.ValgrindRemoteProxyLaunchDelegate"
            id="org.eclipse.linuxtools.valgrind.launch.remote.launchConfigurationType"
            modes="linuxtools"
            name="%launchConfigurationType.remote.name"
            public="true"
            sourceLocatorId="org.eclipse.cdt.debug.core.sourceLocator"
            sourcePathComputerId="org.eclipse.cdt.debug.core.sourcePathComputer">
      </launchConfigurationType>
   </extension>
   <extension
         point="org.eclipse.debug.ui.launchConfigurationTabGroups">
      <launchConfigurationTabGroup
            class="org.eclipse.linuxtools.internal.valgrind.launch.ValgrindLaunchConfigurationTabGroup"
            description="%launchConfigurationTabGroup.description.0"
            id="org.eclipse.linuxtools.valgrind.launch.valgrindTabGroup"
            type="org.eclipse.linuxtools.valgrind.launch.valgrindLaunch">
      </launchConfigurationTabGroup>
      <launchConfigurationTabGroup
            class="org.eclipse.linuxtools.internal.valgrind.launch.ValgrindRemoteProxyLaunchConfigurationTabGroup"
            description="%launchConfigurationTabGroup.remote.description"
            id="org.eclipse.linuxtools.valgrind.launch.remote.tabGroup"
            type="org.eclipse.linuxtools.valgrind.launch.remote.launchConfigurationType">
      </launchConfigurationTabGroup>
   </extension>
   <extension
         point="org.eclipse.debug.ui.launchConfigurationTypeImages">
      <launchConfigurationTypeImage
            configTypeID="org.eclipse.linuxtools.valgrind.launch.valgrindLaunch"
            icon="icons/valgrind-icon.png"
            id="org.eclipse.linuxtools.valgrind.launch.valgrindImage">
      </launchConfigurationTypeImage>
      <launchConfigurationTypeImage
            configTypeID="org.eclipse.linuxtools.valgrind.launch.remote.launchConfigurationType"
            icon="icons/valgrind-icon.png"
            id="org.eclipse.linuxtools.valgrind.launch.remote.launchConfigurationTypeImage1">
      </launchConfigurationTypeImage>
   </extension>
   <extension
         point="org.eclipse.debug.ui.launchShortcuts">
      <shortcut
            class="org.eclipse.linuxtools.internal.valgrind.launch.ValgrindLaunchShortcut"
            icon="icons/valgrind-icon.png"
            id="org.eclipse.linuxtools.valgrind.launch.shortcut1"
            label="%shortcut.label.0"
            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
                              forcePluginActivation="true"
                              property="org.eclipse.cdt.launch.isExecutable">
                        </test>
                        <test
                              forcePluginActivation="true"
                              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>
         <configurationType
               id="org.eclipse.linuxtools.valgrind.launch.valgrindLaunch">
         </configurationType>
      </shortcut>
   </extension>
   <extension
         point="org.eclipse.ui.commands">
      <command
            description="%command.description.0"
            id="org.eclipse.linuxtools.valgrind.launch.exportCommand"
            name="%command.name.0">
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.menus">
            <menuContribution
            locationURI="toolbar:org.eclipse.linuxtools.valgrind.ui.valgrindview?after=toolbarLocal">
         <command
               commandId="org.eclipse.linuxtools.valgrind.launch.exportCommand"
               icon="icons/export_wiz.gif"
               style="push">
         </command>
      </menuContribution>
   </extension>
   <extension
         point="org.eclipse.ui.commands">
      <command
            description="%command.description.1"
            id="org.eclipse.linuxtools.valgrind.launch.clearMarkersCommand"
            name="%command.name.1">
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.menus">
            <menuContribution
            locationURI="toolbar:org.eclipse.linuxtools.valgrind.ui.valgrindview?after=toolbarLocal">
         <command
               commandId="org.eclipse.linuxtools.valgrind.launch.clearMarkersCommand"
               icon="icons/clear_markers.gif"
               style="push">
         </command>
      </menuContribution>
   </extension>
   <extension
         point="org.eclipse.ui.exportWizards">
      <wizard
            class="org.eclipse.linuxtools.internal.valgrind.launch.ValgrindExportWizard"
            icon="icons/valgrind-icon.png"
            id="org.eclipse.linuxtools.valgrind.launch.exportWizard"
            name="%wizard.name.0">
         <description>
            %wizard.description.0
         </description>
      </wizard>
   </extension>
   <extension
         point="org.eclipse.ui.handlers">
      <handler
            class="org.eclipse.linuxtools.internal.valgrind.launch.ExportHandler"
            commandId="org.eclipse.linuxtools.valgrind.launch.exportCommand">
      </handler>
   </extension>
    <extension
         point="org.eclipse.ui.handlers">
      <handler
            class="org.eclipse.linuxtools.internal.valgrind.launch.ClearMarkersHandler"
            commandId="org.eclipse.linuxtools.valgrind.launch.clearMarkersCommand">
      </handler>
   </extension>
      <extension
         id="org.eclipse.linuxtools.valgrind.launch.marker"
         name="%marker.name"
         point="org.eclipse.core.resources.markers">
      <super
            type="org.eclipse.core.resources.problemmarker">
      </super>
      <super
            type="org.eclipse.core.resources.textmarker">
      </super>
      <persistent
            value="true">
      </persistent>
      <attribute name="externalLocation"/>
   </extension>
</plugin>
