working on MBS feature using eclipse [message #830180] |
Tue, 27 March 2012 05:53 |
Eclipse User |
|
|
|
I am working on MBS feature for remote project's,where i need to add include path so , i used following code :To add entries to list of Includes, I'm using following snippet
IPath newPath = getLocationPath();
String linkDirPath = newPath.toString() + "/" +
REMOTE_LINK_DIR;
String[] argLinks = new String[] {
linkDirPath +
"/usrIncludeLink",
"/usr/include",
linkDirPath + "/usrLink",
"/usr",
linkDirPath +
"/aCCIncludeIostreamLink",
"/opt/aCC/include_std/iostream_compat"
};
AddLinks(newProject, argLinks);
ICProject cProject =
CoreModel.getDefault().create(newProject);
List newEntries = new ArrayList(argLinks.length/2);
for(int cnt = 0; cnt < (argLinks.length/2); cnt++)
{
newEntries.add(CoreModel.newIncludeEntry(Path.EMPTY,
Path.EMPTY, new Path(argLinks[(2*cnt)]), true));
}
cProject.setRawPathEntries((IPathEntry[])newEntries.toArray(new
IPathEntry[newEntries.size()]),
null);
-----------------------------------------------------------
which is working fine, once project created the Includes folder is created with added path entries,but the thing is in the project properties page->C/C++ build->Settings page ,Compiler ->Includes Path's also listing out,if i remove it also removing from Includes folder.
my requirement is to not to list include path entries in Settings page,which i added using above programme. do i need to use any other method,please suggest ,thanks in adavance.
|
|
|
Powered by
FUDForum. Page generated in 0.06941 seconds