Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How to looking into project's Java code
How to looking into project's Java code [message #252454] Mon, 07 April 2008 04:19 Go to next message
Eclipse UserFriend
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,
Re: How to looking into project's Java code [message #252468 is a reply to message #252454] Mon, 07 April 2008 13:15 Go to previous message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Juha Rajakari" <juha.rajakari@gmail.com> wrote in message
news:ftcldq$ihg$1@build.eclipse.org...
> 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?

It's not overkill. JDT is exactly what you need to use to do this.
Previous Topic:Hook custom tree outline to package explorer
Next Topic:Possible to extend Package Explorer to allow DnD of other objects onto a Java package?
Goto Forum:
  


Current Time: Thu May 08 06:33:17 EDT 2025

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

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

Back to the top