Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Finding the list of classes in a package like Package Explorer
Finding the list of classes in a package like Package Explorer [message #333353] Thu, 04 December 2008 18:51 Go to next message
Auerliano is currently offline AuerlianoFriend
Messages: 149
Registered: July 2009
Senior Member
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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
Previous Topic:LaunchConfigurationDelegate related question
Next Topic:howto provide context menu actions in a tree in a formeditor
Goto Forum:
  


Current Time: Fri Apr 26 02:47:14 GMT 2024

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

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

Back to the top