Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » CPathEntry problem
CPathEntry problem [message #223302] Tue, 09 September 2008 06:58
Eclipse UserFriend
Hi,

I'm trying to configure a C project with source directories:
ICProjectDescriptionManager mngr =
CoreModel.getDefault().getProjectDescriptionManager();
ICProjectDescription des = mngr.getProjectDescription(project, true);
ICConfigurationDescription confDes =
des.getDefaultSettingConfiguration();

// Configure source paths
confDes.setSourceEntries(null);
ICSourceEntry[] sourceEntries = getModelSourceEntries(componentModel);
confDes.setSourceEntries(sourceEntries);

Method getModelSourceEntries() returns an array of full path (like
"/<Project_Name>/<folder1>/<folder2>")

When I apply these entries (setSourceEntries), "/<Project_Name>/" is
stripped from path (thus making it relative to project).
On my mind this prevents indexer to index these directories.

If I get the default value of project source entries:
confDes.setSourceEntries(null);
ICSourceEntry[] defEntries = confDes.getSourceEntries();

defEntries contains exactly one entry with a path "/<Project_Name>".

So, what I'm doing wrong? How to set up a list of source folders?

Dmitry
Previous Topic:getting cdt to work
Next Topic:How to get the CProject from within tool chain callbacks like command line generator
Goto Forum:
  


Current Time: Tue Sep 16 07:18:05 EDT 2025

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

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

Back to the top