CPathEntry problem [message #223302] |
Tue, 09 September 2008 06:58 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.07428 seconds