Bug 230447 - Invalid warning saying that a class is not in the bundle's classpath
Summary: Invalid warning saying that a class is not in the bundle's classpath
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 RC1   Edit
Assignee: Chris Aniszczyk CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2008-05-06 14:00 EDT by Marcelo Paternostro CLA
Modified: 2008-05-07 10:10 EDT (History)
2 users (show)

See Also:


Attachments
Check for a Java nature before looking for the classpath (2.02 KB, patch)
2008-05-07 06:34 EDT, Ed Merks CLA
no flags Details | Diff
Here's a simpler way to fix it, i.e., check if the Java project is open (1.24 KB, patch)
2008-05-07 06:39 EDT, Ed Merks CLA
no flags Details | Diff
mylyn/context/zip (930 bytes, application/octet-stream)
2008-05-07 10:10 EDT, Chris Aniszczyk CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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