Re: finding all Java classes in a project

Svata Dedic <[email protected]> Wed, 25 Jun 2003 20:31:56 +0200
Newsgroups gmane.comp.java.netbeans.modules.projects.devel
Message-ID <[email protected]>
Dave Weatherford wrote:
>> Dave Weatherford wrote:
>>
>>> I saw that Svata recommended using 
>>> JavaProject.getClassesDescriptor(), but I
>>> have not been successful; it always returns null for me.
>>>
>> This is surely a bug, if applied on the CU's build target.
> 
> I was trying to apply JavaProject.getClassesDescriptor() to the
> ProjectMember for a source file.  Obviously not what it was intended
> for.  I'm still trying to grok the various pieces of a Java project.
> 
:) try to apply the "source" counterpart (getSourcesDescriptor()). The 
distinction is simple: one helper assumes that the passed ProjectMember 
contains a description of compiled classes (e.g. a build target, or an 
external jar resource), the other assumes that the ProjectMember 
describes java sources somehow (individual roots of java sources, and if 
I get to coding finally then even the CompilationUnit.getSourceOwner() 
would produce something sane).

I am terribly sorry for the documentation; I will try to do something 
about it while the project team is busy with implementation details :)

-Svata