[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: Programmatically search for method references

About the documentation, the most simple thing to do would be to open Help contents
in an eclipse session and read the 'JDT Plug-in Developer Guide'
(at least the 'JDT Core' paragraph entirely)...

For example, you'll find in JDT Plug-in Developer Guide > Programmer's Guide > JDT Core > Java model
page an example of IJavaModel elements creation at chapter 'Java elements and their resources'.


Rudolf Ziegaus wrote:

Hello Frederic,

thanks for your answer. I already figured out some of your information
myself and I am pleased that I got it right.

As you certainly already have guessed, I am a newbie to writing plugins for
Eclipse. I am trying to write a plugin which allows me to detect
unreferenced public methods (unreferenced in the workspace - of course
nobody could garantee that it is not referenced in a different workspace or
via reflection).


I  found out how to get all projects in the workspace and the contained
classes in a project. However, I do not know how to find out which methods
they contain. The files are represented as IResource however to look at the
contained methods I would need a IType. How do I get from an IResource to
an IType?

Can you give me some clues, also on documentation where I could read
further before asking dump questions here?

Thanks very much,

Rudi