Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] How to set include paths programmatically?

Thanks for your reply,
I first tried the CoreModel.getDefault().setProjectDescription but it takes the projectDescription as argument, and I don't have the new temporary desciription as I call the ManagedBuildManager.setOption().
But I found ManagedBuildManager.saveBuildInfo() and it works.

--- On Mon, 3/1/10, Vladimir Prus <vladimir@xxxxxxxxxxxxxxxx> wrote:

From: Vladimir Prus <vladimir@xxxxxxxxxxxxxxxx>
Subject: Re: [cdt-dev] How to set include paths programmatically?
To: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
Date: Monday, March 1, 2010, 9:52 AM

On Friday 26 February 2010 14:31:50 Aytac Sartekin wrote:

> Hi,

> I use ManagedBuildManager.setOption(config,tool,option,value) method to set libraries and library search path option of linker. and it calls configuration.setOption().
> Then it libs and lib paths are changed in the projects Properties->ToolSettings page but they aren't saced to the .cproject file. When I closed and reopen Eclipse CDT libs and paths are disappeared from the properties page.
> I looked at the setOption() method of ToolSettingsTab class and it also use ManagedBuildManager.setOption and that's all changed options are set in .cproject.
> Does  anybody can help me what should I do to set libs options in .cproject?

Perhaps you forgot to call CoreModel.getDefault().setProjectDescription after changing the
options? Unless you do that, changes to options are not persisted in any way.

Hope this helps,

Vladimir Prus
(650) 331-3385 x722
cdt-dev mailing list

Back to the top