views:

87

answers:

1

I need to find a specific file present in eclipse project which is in classpath of project.

I have IProject instance but Dont know how to get IFile instance

+2  A: 

The IProject interface extends the IContainer which has several findMember methods. You get an IResource which can be casted down to IFile after checking its' type using getType. Go over those interfaces, they are properly documented.

zvikico
findMembers didnt worked for me....But I tried Icontainer.members() and it worked..Thanks for help...
VinAy
I have several years of experience in Eclipse plugin development. If there's one advice I can give you it is: use the source. Develop your code browsing and reading skills and make sure the sources I always readily available.
zvikico