Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » How can I have a project specific option, not a Configuration specific...(the second created project overrides the first project with its default value when I press the default values)
How can I have a project specific option, not a Configuration specific... [message #1750584] Fri, 23 December 2016 05:26 Go to next message
ilke Muhtaroglu is currently offline ilke MuhtarogluFriend
Messages: 44
Registered: September 2015
Member
Hi,

I set default value of option via,

IManagedBuildInfo info = ManagedBuildManager.getBuildInfo(project);
IConfiguration defCfg = info.getDefaultConfiguration(); // This line maybe
the cause of my misunderstanding
IToolChain toolChain = defCfg.getToolChain();
IOption option;

then ...

ITool[] tools = toolChain.getToolsBySuperClassId(linkerId);

in while loop I traverse the tools and then ...

option = tools[ind].getOptionBySuperClassId(libOptionId);

if(option != null){
ManagedBuildManager.setOption(defCfg, tools[ind], option,
libraries.toArray(new String[libraries.size()] ) );
option.setDefaultValue ( libraries.toArray(new String[libraries.size()] )
);

ManagedBuildManager.saveBuildInfo( project, true);
}

We have different project types and I create a project for C++ and for
Embedded C++

But When I create 2 different projects with different language Type, I get
the second created project overrides the first project with its default
value when I press the default values. In both project, under the settings
I have the same Configuration. So thats why it overrides the previous
projects Library. How can I have a project specific option, not a
Configuration specific...

Thanks for helping, any idea is welcome.
Re: How can I have a project specific option, not a Configuration specific... [message #1750806 is a reply to message #1750584] Thu, 29 December 2016 08:41 Go to previous message
Tardy Traveller is currently offline Tardy TravellerFriend
Messages: 3
Registered: December 2016
Junior Member
The hierarchy seems to be that for each project, you have one or more configurations. Then you can customize the settings per configuration within each project as long as each configuration gets a new ID. Disclaimer - I'm very new to CDT development.
Previous Topic:Disable download for remote debug.
Next Topic:Plug-in org.eclipse.cdt.launch was unable to load class org.eclipse.cdt.launch.internal.LocalCDILaun
Goto Forum:
  


Current Time: Sun Jan 23 04:09:04 GMT 2022

Powered by FUDForum. Page generated in 0.01578 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top