Bug 32100 - when superpackage package empty deleting a subpackage deletes superpackage
Summary: when superpackage package empty deleting a subpackage deletes superpackage
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 RC1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-18 05:44 EST by Adam Kiezun CLA
Modified: 2003-02-25 06:39 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 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.