Bug 20643 - Java Projects disappear
Summary: Java Projects disappear
Status: RESOLVED DUPLICATE of bug 19799
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P4 normal (vote)
Target Milestone: 2.0 F4   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-19 09:41 EDT by Michael Fraenkel CLA
Modified: 2002-06-21 06:47 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Fraenkel CLA 2002-06-19 09:41:38 EDT
F3/Win32

We have a plugin which can switch our projects between binary and source much 
like the PDE.  Binary mode points the src to nowhere but the build libraries 
point to the JARs and source does the reverse.

When we convert between binary and source, we notice that the Java Perspective 
loses the Project in the UI.  If I go to the Resources view, the Project still 
exists.  I must close then open the project to make the Java Perspective show 
the project again.

Seems like a notification is being lost or ignored but I don't really know 
where to look.  I thought it was the JavaModelCache, but that wasn't it.
Comment 1 Kai-Uwe Maetzel CLA 2002-06-19 16:36:46 EDT
We'd need more detailed information to track this down. You could have a look 
at PackagExplorerContentProvider.processDelta to see how the Package Explorer 
deals with deltas. That might give you an idea of what delta you miss to send 
out or which delta we forget to process.
Comment 2 Michael Fraenkel CLA 2002-06-19 18:01:07 EDT
So what I see is that when you get the CHANGED event, the project is missing.  
What I don't understand is how this gets built.  Basically the CHANGED event 
has all the projects except the one we are processing.  Looking at the code 
its similar to the pde PluginImportOperation.  I will change our code to 
follow exactly what you do to see if there is something screwy that has 
changed since M5 to cause this.
Comment 3 Michael Fraenkel CLA 2002-06-19 20:42:56 EDT
Ok, here is some more info...
During this processing, you are being told that the Project is deleted.
Then the DeltaProcessor is being told that the Project is being replaced and 
has a description (0xc0000 or 0x80000).  However the Java Model that is 
created as part of traverseDelta does not contain the package.  I am not clear 
how this code works but its tossed somewhere in there.
Comment 4 Erich Gamma CLA 2002-06-20 18:28:16 EDT
JDT Core has fixed some problems related to Java projects not being updated 
properly. Moving to JDT Core for comment.
Comment 5 Jerome Lanneluc CLA 2002-06-21 05:29:51 EDT
This really sounds like bug 19799, which is fixed in latest build. Could you 
please try build 20020620 and let us know if this fixes the problem?
Comment 6 Philipe Mulet CLA 2002-06-21 06:47:04 EDT
Closing, please reopen if symptoms are still occurring on latest build 
(20020620).

*** This bug has been marked as a duplicate of 19799 ***