Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Using ScannerInfoProvider and "Includes" project element

What do they use it for? That would help understand whether we need to keep it.

I know we've used it to debug the scanner info providers in the past. But it needs to be useful to end users if we want to keep it.

From: Joseph Henry <Joseph.Henry@xxxxxxx>
Reply-To: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
Date: Tuesday, 17 September, 2013 11:14 AM
To: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
Subject: Re: [cdt-dev] Using ScannerInfoProvider and "Includes" project element

I also wish it would go away, but our users have become familiar with it, so I would like to maintain it if at all possible.

 

If it is not possible, or if it is too much of a pain, they might just have to get over it.

 

From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Doug Schaefer
Sent: Tuesday, September 17, 2013 11:02 AM
To: CDT General developers list.
Subject: Re: [cdt-dev] Using ScannerInfoProvider and "Includes" project element

 

Sounds familiar. We just ran into that too.

 

Ideally, I wish the Includes element would just go away. Includes generally aren't a project level thing. They were at one point in our history when we were taking lots of short cuts while indexing. But not any more.

 

From: Joseph Henry <Joseph.Henry@xxxxxxx>
Reply-To: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
Date: Tuesday, 17 September, 2013 10:56 AM
To: "cdt-dev@xxxxxxxxxxx" <cdt-dev@xxxxxxxxxxx>
Subject: [cdt-dev] Using ScannerInfoProvider and "Includes" project element

 

I have an interesting problem that maybe somebody on this list could help me with.

 

We have a custom tool chain, and to put it simply, we are required to provide a ScannerInfoProvider implementation so that we can properly return IScannerInfo on a per resource basis. We do this because 1 resource in a project can have a much different include path that another, so putting them all in the LanuageSettings was not acceptable.

 

With all this said, here is my problem:

 

Since we are not using the LanguageSettingProvider to give all the search include paths, the “Includes” project element does not show up any more. This is the UI element that you can expand and see the include folders, and further expand to see the files, etc.

 

Is there any way that I can:

 

1.)    Have this element use the search path that I return from my ScannerInfoProvider

2.)    Append the paths in the Language Settings also. (I still want to have this work so that users have a way to manually specify search paths.)

 

Any help with this would be great. As far as I can tell, the Java class that somewhat control the contents of the Includes element is org.eclipse.cdt.internal.ui.cview.IncludeRefContainer.

 

Thanks,

Joseph Henry.

 

 


Back to the top