Bug 72388 - No types available after opening a closed project
Summary: No types available after opening a closed project
Status: CLOSED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: 3.1 M2   Edit
Assignee: Dirk Baeumer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-21 13:59 EDT by Vijay Aravamudhan CLA
Modified: 2008-01-09 19:12 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vijay Aravamudhan CLA 2004-08-21 13:59:56 EDT
hi,
I am using:
Version: 3.1.0
Build id: 200408170800
I had a few java projects that were closed before the last shutdown of hte
eclipse platform. When I restarted the platform, i used the context menu to open
one of the projects. I waited till i saw that the progress monitor showing that
it had started building the classes. At this point, I hit Ctrl+Shift+T to get
the "open type" dialog - but instead, I got an error dialog whote title was
"Type Selection" saying that "No types available". At this stage, keeping the
project open, if I shutdown and restart the eclipse platform, Ctrl+Shift+T works
as expected. But I should not need to restart eclipse.
Could this be rectified?
Comment 1 Kent Johnson CLA 2004-08-23 13:53:02 EDT
In 3.0 when the project is closed, the type is still available.

Now in 3.1 M1, the type is no longer available after the close, but its not 
available after the 'open project' either.

Jerome, do you know of any changes in & around open/close projects?
Comment 2 Jerome Lanneluc CLA 2004-08-25 07:07:49 EDT
The JavaElementDelta was changed from REMOVED to CHANGED with the F_CLOSED 
flag set (and from ADDED to CHANGED with the F_OPENED flag set). The 
AllTypesCache doesn't react to these changes yet.

Moving to JDT/UI to make the change.
Comment 3 Dirk Baeumer CLA 2004-08-25 10:00:16 EDT
Jerome, when did these changes go in ?
Comment 4 Jerome Lanneluc CLA 2004-08-25 10:33:46 EDT
I went in early July. See bug 65943. You want to do the change in 
R3_0_maintenance as well.
Comment 5 Dirk Baeumer CLA 2004-08-25 10:58:27 EDT
Jerome, from your comment I assume that this went into the maintenance build 
as well. 

What is the reason why you put this into 3.0.1. Changing deltas in a 
maintenance build seems somehow risky for me ?
Comment 6 Jerome Lanneluc CLA 2004-08-25 11:04:29 EDT
I'm not sure why this would be more risky than fixing other bugs ? Hopefully 
clients don't rely on bugs.
Comment 7 Dirk Baeumer CLA 2004-09-08 09:04:02 EDT
Fixed for M2. Added test case AllTypesCache#testOpenCloseProject
Comment 8 Vijay Aravamudhan CLA 2004-11-04 21:01:31 EST
Verified as fixed in
Version: 3.1.0
Build id: 200411041200
Comment 9 Vijay Aravamudhan CLA 2008-01-09 19:12:23 EST
Closing