Bug 32100

Summary: when superpackage package empty deleting a subpackage deletes superpackage
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 RC1   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Adam Kiezun CLA 2003-02-18 05:44:46 EST
20020314 + latest
create 2 packages 
p.q (empty)
p.q.r (can be empty or not)

delete p.q.r
notice, both packages are gone - not on the file system anymore

i would expect only the subpackage to be gone
Comment 1 Olivier Thomann CLA 2003-02-18 10:29:37 EST
I have a fix for the deletion of p.q, but there is a problem in the UI as well.
When I have something like this:

P
+---- p
      +---- q
            +----- r

All package fragments are empty. I delete p.q.r and p.q doesn't appear as a
ghost in the package explorer.

When I created p.q, I got a ghost. Then I created p.q.r and it replaced the
ghost for p.q with the ghost for p.q.r. So I expect that when p.q.r is deleted,
that the ghost for p.q appears again, otherwise it is not consistent.
To reproduce this problem without this fix, delete the folder r from the
navigator and move back to the package explorer.

Move to JUI.
Comment 2 Olivier Thomann CLA 2003-02-18 11:43:55 EST
I close this one as FIXED and I will open a new bug report for the UI refresh
problem.
Comment 3 Olivier Thomann CLA 2003-02-18 11:44:22 EST
Fixed and released in 2.1 stream.
Comment 4 David Audel CLA 2003-02-25 06:39:19 EST
Verified.