Bug 11176 - Organize imports misses org.eclipse.core.resources
Summary: Organize imports misses org.eclipse.core.resources
Status: RESOLVED DUPLICATE of bug 10833
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 major (vote)
Target Milestone: 2.0 M4   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-12 09:59 EST by Nick Edgar CLA
Modified: 2002-03-14 11:02 EST (History)
0 users

See Also:


Attachments
TaskPropertiesDialog.java (13.75 KB, text/plain)
2002-03-12 10:00 EST, Nick Edgar CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2002-03-12 09:59:23 EST
Build 20020307

In the attached CU, I did an organize imports.
It dropped all imports from org.eclipse.core.resources, even though I have it 
as a prerequisite, and I have references like IResource and IMarker in the 
code.
It compiles OK when I put the imports in manually.

I recently replaced a binary org.eclipse.core.resources with the source 
project from head, but it all looks fine too.
Comment 1 Nick Edgar CLA 2002-03-12 10:00:19 EST
Created attachment 465 [details]
TaskPropertiesDialog.java
Comment 2 Martin Aeschlimann CLA 2002-03-13 04:04:41 EST
I could not reproduce. The problem is most certain not in Organize import but 
in the search index of your workspace. To validate that you would bave to 
delete all index files (in .metadata/.plugins/org.eclipse.jdt.core)

Can you zip your workspace?


Comment 3 Nick Edgar CLA 2002-03-13 12:12:57 EST
I agree, since code assist was messed up as well.
I've put my workspace in 
ftp://walleye.oti.com/outgoing/nick/WorkspaceForBug11176.zip.
It is a self-hosting workspace on build 20020307.

Comment 4 Martin Aeschlimann CLA 2002-03-13 13:17:50 EST
moving to jcore
Comment 5 Philipe Mulet CLA 2002-03-14 05:03:26 EST
Is this related to the bug where setting classpath didn't trigger indexing ?
Comment 6 Jerome Lanneluc CLA 2002-03-14 08:50:56 EST
Yes, this is a duplicate of bug 10833.

*** This bug has been marked as a duplicate of 10833 ***
Comment 7 Nick Edgar CLA 2002-03-14 10:56:30 EST
I can delete my workspace from walleye then?
Comment 8 Jerome Lanneluc CLA 2002-03-14 11:02:03 EST
Yes, please do so.