Bug 230447

Summary: Invalid warning saying that a class is not in the bundle's classpath
Product: [Eclipse Project] PDE Reporter: Marcelo Paternostro <marcelop>
Component: UIAssignee: Chris Aniszczyk <caniszczyk>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: caniszczyk, Ed.Merks
Version: 3.4Keywords: contributed
Target Milestone: 3.4 RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Check for a Java nature before looking for the classpath
none
Here's a simpler way to fix it, i.e., check if the Java project is open
none
mylyn/context/zip none

Description Marcelo Paternostro CLA 2008-05-06 14:00:54 EDT
When a project doesn't have a JDT nature, PDE cannot compute the project's classpath and, hence, cannot check if a class used in the plugin.xml is available to the bundle or not.

I believe PDE should only flag classpath problems if it is able to check the classpath. The way it is now, thw warning is not doing me any good and I would need to add the JDT nature just to make it go away.
Comment 1 Chris Aniszczyk CLA 2008-05-06 14:11:24 EDT
I guess that's fair, but how you actually created a Plug-in project w/ src and w/o the JDT nature, that surprises me.
Comment 2 Marcelo Paternostro CLA 2008-05-06 15:25:04 EDT
The magic of manipulating the .project file directly :-P
Comment 3 Ed Merks CLA 2008-05-07 06:34:44 EDT
Created attachment 99041 [details]
Check for a Java nature before looking for the classpath
Comment 4 Ed Merks CLA 2008-05-07 06:39:16 EDT
Created attachment 99042 [details]
Here's a simpler way to fix it, i.e., check if the Java project is open
Comment 5 Chris Aniszczyk CLA 2008-05-07 10:09:10 EDT
Playing with the .project file manually will get you into trouble.

Also, I'm pretty good with the change, however, note that as soon as a project actually has java source code, it should be a java project.
Comment 6 Chris Aniszczyk CLA 2008-05-07 10:10:06 EDT
done.

> 20080507
Comment 7 Chris Aniszczyk CLA 2008-05-07 10:10:09 EDT
Created attachment 99075 [details]
mylyn/context/zip