Could someone help me with managing the Eclipse CDT launch configuration and Launch target setting for our custom project?
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.debug.core.launchConfigurationTypes">
<launchConfigurationType
delegate="com.espressif.idf.launch.serial.internal.SerialFlashLaunchConfigDelegate"
id="com.espressif.idf.launch.serial.launchConfigurationType"
modes="run"
name="ESP-IDF Application"
public="true">
</launchConfigurationType>
</extension>
<extension
point="org.eclipse.launchbar.core.launchTargetTypes">
<launchTargetType
id="com.espressif.idf.launch.serial.core.serialFlashTarget"
provider="com.espressif.idf.launch.serial.SerialFlashLaunchTargetProvider">
</launchTargetType>
</extension>
<extension
point="org.eclipse.launchbar.core.launchBarContributions">
<configProvider
class="com.espressif.idf.launch.serial.internal.SerialFlashLaunchConfigProvider"
descriptorType="org.eclipse.cdt.debug.core.coreBuildDescriptorType"
priority="10">
</configProvider>
</extension>
</plugin>
Here is our UI plugin.xml
<plugin>
<extension
point="org.eclipse.launchbar.ui.launchTargetTypeUI">
<launchTargetTypeUI
id="com.espressif.idf.launch.serial.core.serialFlashTarget"
labelProvider="com.espressif.idf.launch.serial.ui.internal.SerialFlashLaunchTargetLabelProvider">
</launchTargetTypeUI>
<wizard2
class="com.espressif.idf.launch.serial.ui.internal.NewSerialFlashTargetWizard"
icon="icons/esp_target.png"
id="com.espressif.idf.launch.serial.core.serialFlashTarget"
name="ESP Target">
</wizard2>
</extension>
<extension
point="org.eclipse.launchbar.ui.launchBarUIContributions">
<buildTabGroup
launchConfigType="com.espressif.idf.launch.serial.launchConfigurationType"
launchDescriptorType="org.eclipse.cdt.debug.core.coreBuildDescriptorType"
tabGroup="org.eclipse.cdt.launch.internal.corebuild.CoreBuildTabGroup">
</buildTabGroup>
</extension>
</extension>
</plugin>
What is happening now is, If I create a new launch configuration for the ESP-IDF Application, the Launch Target combo from the launch bar is disappearing, and internally it's configuring the target to the default Local target though one of the ESP-IDF Target is selected in the UI. What I would like to do is, instead of configuration the Local Target for a new launch configuration I would like to set the ESP-IDF Target if it's already available so that I won't lose my target toolchain information while building/indexing/debugging.