Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] RE: programmatically add to the "Source Lookup Path"

Given ILaunchConfiguration you can request its ATTR_SOURCE_LOCATOR_MEMENTO and ATTR_SOURCE_LOCATOR_ID. 

Based on their values you can create and initialize a source director for that launch configuration, and add the source container(s) you are interested in, then store back the memento.

For example of how to do that you can look at CSourceNotFoundEditor.addSourceMappingToLaunch.

There are different source container types you may want to consider - see classes implementing ISourceContainer. You have to decide which one fits you. 

Regards
Dobrin


-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Mary Ann Belarmino
Sent: February 4, 2010 4:12 PM
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] programmatically add to the "Source Lookup Path" 

Hi,

In a C project's debug configuration, I want to programmatically add to the "Source Lookup Path" list. Does anyone know how to do this?

Thanks,
MA
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top