I need to get the source package of the any object declared in the class. This object may be declared as a class variable or met开发者_运维技巧hods local variable.
I can able to find that for class object variable using IFields API.
For example, if the variable is of type List -> I need the result as java.util.List.
Kindly give your ideas.
Thanks in advance, Easwar
The IProject interface extends the IContainer which has several findMember methods. You get all IResource(Java files) and get package name ....
Note: IResource are resources other then Java files also
精彩评论