How to looking into project's Java code [message #252454] |
Mon, 07 April 2008 04:19  |
Eclipse User |
|
|
|
Originally posted by: juha.rajakari.gmail.com
Hi,
I'm developing a plugin where I would like to see what fields (and their
types) a Java class in an Eclipse project has.
I know the classname as string, and I can assume that this class is included
in the project's Java Build Path (in Source or Libraries sections).
But I can't use Class.forName("com.here.Class") or there is no such think
available as Project's classloader.
And the project can't be added plugin's manifest in order to resolve
classloading problems.
What is the best way to do the job, using JDT's classes and methods (what?)
or some other, easier way?
Using JDT feels like an overkill for such tiny task, is it?
I guess this is quite often asked question but I could not find any suitable
answer.
Regards,
|
|
|
|
Powered by
FUDForum. Page generated in 0.29530 seconds