This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
You can iterate classes in a jar or a directory pretty easily, but that won't necessarily get you every class in a package because multiple jars or file systems could contain classes with the same package path.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Joined: Apr 23, 2004
Anybody knows about how the code assist is implemented in Eclipse? As you know, when you type a package name in Java editor and type "." , after a while all the classes in this package will be listed.
Joined: Jan 29, 2003
One way or another in Eclipse you have set a classpath to a bunch of jars and directories. I'd bet it iterates those to see what's out there. It knows what is in your open projects, too.