Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Setting Discovery Options programatically respectively getting rid of built-in includes

Hi!

In the GUI it's possible to deactivate the "Automate discovery of paths and symbols"  on a configuration scope in a projects property menu > C/C++ Build > Discovery Options.
This leads to the built-in include being removed what is what i want to achieve.

How can i deactivate that option programatically?
I played around quite a long time with calls like these:

IScannerConfigBuilderInfo2 scm = ScannerConfigProfileManager.createScannerConfigBuildInfo2(project); 
		
scm.setSelectedProfileId(ScannerConfigProfileManager.DEFAULT_SI_PROFILE_ID);
scm.setAutoDiscoveryEnabled(false);             
scm.save();

or this:

MakeCorePlugin.getDefault().getDiscoveryManager().removeDiscoveredInfo(project);

or that which at least has something to do with the scope:

ScannerConfigProfileManager.getInstance().getSCProfileConfiguration(defaultSIProfileId).getProfileScope();

But this code doesn't lead to the deactivation of "Automate discovery of paths and symbols"  on a configuration scope.

Am i missing something?
Or is there another way?

Thanks,
Florian

-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser


Back to the top