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. 


-----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" 


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?

cdt-dev mailing list

Back to the top