Bug 83822 - Classes at root of project not found in Open Type dialog
Summary: Classes at root of project not found in Open Type dialog
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-27 08:09 EST by Wassim Melhem CLA
Modified: 2005-02-15 10:40 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wassim Melhem CLA 2005-01-27 08:09:09 EST
Build: I-20050126

1. Fresh workspace.
2. Extract the zip from bug 64340 comment 5 onto an arbitrary directory (e.g 
D:/Temp)
3. On the first page of the plugin import wizard, set the import location to 
be D:/Temp/plugins
4. on the second page, you will see a single plugin.  Import it.
5. The end result would be a project with two packages at its root, with each 
package containing a single class.
6. bring up the open type dialog.  Neither type from 5 shows up in it.
Comment 1 Jerome Lanneluc CLA 2005-01-27 08:46:33 EST
Thanks Wassim. I was able to reproduce and I will investigate.
Comment 2 Jerome Lanneluc CLA 2005-01-27 09:13:55 EST
Test case not depending on PDE UI:
1. Create a Java project Test.
2. Edit its .classpath:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
	<classpathentry kind="lib" path=""/>
	<classpathentry kind="output" path="bin"/>
</classpath>
3. Create folder /Test/p
4. Add valid .class file /Test/p/X.class
5. Close/reopen Test
Observe: Open Type doesn't find X
Comment 3 Jerome Lanneluc CLA 2005-01-27 10:12:58 EST
We were not indexing a library folder if it was the project.

Fixed IndexBinaryFolder to use an IContainer instead of an IFolder. And fixed
IndexManager#indexLibrary(...) to request the indexing if the target is an
IContainer.
Added regression test SearchTests#testProjectLib()
Comment 4 David Audel CLA 2005-02-15 10:40:41 EST
Verified in I20050214-0927

SearchTests#testProjectLib() has problems unrelated with this bug (see bug 84164)