|Re: JavaCore.create() returns null [message #224957 is a reply to message #224949]
||Tue, 28 February 2006 15:27
Originally posted by: richkulp.us.NO_SPAM.ibm.com|
It would return null if the IResource was an IFolder AND the location
you tried to place it (i.e. "src") is not a package fragment root. In
other words, was "src" marked as a source folder?
Since it allowed you to create it in the root, that indicates to me that
the root of the project was the source folder, and "src" was not a
Michael Pradel wrote:
> I've a builder, that reacts on resource changes. When adding a new
> package, I'd like to get its corresponding IJavaElement.
> works fine, when I create a package directly in the project root. When I
> create it in any other directory (e.g. in "src"), create() returns
> always null.
> Any ideas why?? Thanks for any help,
Powered by FUDForum
. Page generated in 0.01608 seconds