Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » IResource from include path
IResource from include path [message #157193] Tue, 01 November 2005 13:55 Go to next message
Eclipse UserFriend
Originally posted by: nwa.localhost.localdomain

Is there a way to get an IResource from the include path of an
ICProject?

From ICProject.getIncludeReferences() I can get an IIncludeReference.
I see that IIncludeReference implements ICElement which provides
getResource(). Unfortunately, it always returns null.

Thanks
Nick
Re: IResource from include path [message #157203 is a reply to message #157193] Tue, 01 November 2005 14:03 Go to previous message
Eclipse UserFriend
Nick Allen wrote:
> Is there a way to get an IResource from the include path of an
> ICProject?
>
> From ICProject.getIncludeReferences() I can get an IIncludeReference.
> I see that IIncludeReference implements ICElement which provides
> getResource(). Unfortunately, it always returns null.
>
> Thanks
> Nick


I would use public IFile[] IWorkspaceRoot.findFilesForLocation(IPath
location).
Previous Topic:how to manage different includes
Next Topic:problems including library into project
Goto Forum:
  


Current Time: Sun Apr 27 01:06:36 EDT 2025

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

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

Back to the top