Finding the list of classes in a package like Package Explorer [message #333353] |
Thu, 04 December 2008 18:51  |
Eclipse User |
|
|
|
Hi,
Like the name implies, the Package Explorer view is able to explore and
extract a list of classes in java packages. If I am not wrong, java
reflection doesn't do anything about packages. How is this class list
extraction performed in eclipse and where can the source code be located?
|
|
|
Re: Finding the list of classes in a package like Package Explorer [message #333354 is a reply to message #333353] |
Thu, 04 December 2008 19:46   |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
On 12/4/2008 1:51 PM, Ali wrote:
> Hi,
>
> Like the name implies, the Package Explorer view is able to explore and
> extract a list of classes in java packages. If I am not wrong, java
> reflection doesn't do anything about packages. How is this class list
> extraction performed in eclipse and where can the source code be located?
See org.eclipse.jdt.internal.ui.packageview.PackageExplorerConte ntProvider
|
|
|
Re: Finding the list of classes in a package like Package Explorer [message #333361 is a reply to message #333353] |
Fri, 05 December 2008 11:25  |
Eclipse User |
|
|
|
Ali wrote:
> Hi,
>
> Like the name implies, the Package Explorer view is able to explore
> and extract a list of classes in java packages. If I am not wrong,
> java reflection doesn't do anything about packages. How is this class
> list extraction performed in eclipse and where can the source code be
> located?
The Package Explorer gets that information from the Java Model. See
org.eclipse.jdt.core.JavaCore for details. You can then get the children
for any element (e.g. for a package).
Dani
|
|
|
Powered by
FUDForum. Page generated in 0.03486 seconds