[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] Eclipse CDT launch configuration and Launch Target setting
|
Looks like you're on the right track. I think you may need to contribute the definition of your descriptorType to <extension point="org.eclipse.launchbar.core.launchBarContributions"> . <descriptorType>
Here some help I found for that extension point:
<!-- Launch Descriptor: This is the element shown in the middle selector. It represents a Launch Object.
Descriptors have a Type that watches for the creation and removal of Launch Objects and manages the
creation and removal of Descriptors for those object.
Launch Configuration Provider: This is the object that manages the creation and selection of
ILaunchConfiguration used by the buttons and Descriptor edit gear. Providers are registered to a
given Launch Descriptor Type and Launch Target Type. They also provide access to the type of the
configuration without having to create one. Each provider supports a single launch configuration type.
-->
Then your SerialFlashLaunchConfigProvider can override ILaunchConfigurationProvider.supports(ILaunchDescriptor, ILaunchTarget) to determine if it supports the launch target.
https://wiki.eclipse.org/CDT/LaunchBar
I couldn't get my use of <extension point="org.eclipse.launchbar.ui.launchBarUIContributions"> to work so I don't use it; its not clear to me how to use it.
HTH John
On Friday, 4 December 2020, 12:46:04 GMT, Kondal Kolipaka <kondal.kolipaka@xxxxxxxxx> wrote:
Hi All,
Could someone help me with managing the Eclipse CDT launch configuration and Launch target setting for our custom project?
Here is our Core plugin.xml
<?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>
Using the above, If I create an ESP-IDF Applicationlaunch configuration how/where can I set the launch target(ESP-IDF Target, not Local Target in my case) for that? I couldn't find any extension point to link the launch configuration and target with it.
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.
Best Regards,
Kondal
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev