Summary: | Error deleting parent folder of source folder | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | John Arthorne <john.arthorne> |
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P2 | ||
Version: | 2.0 | ||
Target Milestone: | 2.1 RC1 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
John Arthorne
2002-09-24 12:30:12 EDT
20020920 (M1) can't reproduce: step 5), looking in the navigator: folder foo exists is navigator (and in the package view). Are you saying that the folder still exists after attempting to delete it? Isn't that a bug? Do you still get an error if you try to delete a second time? I will grab the new build and try again. I can reproduce the error in build 20020924. Exact same steps, same results. 20020924 Tried again, can't reproduce! 1. Open New Java project wizard. Enter project name, go to second page, set source folder to foo/bar (output folder is bin) Create. 2. Select foo/bar in package explorer, add a class A to it. 3. Select foo/bar in package explorer, press delete. 4. Package explorer now shows folders src and bin 5. Go to navigator: also shows src and bin I guess you could say that src should be deleted as well. I think by design Java Core only deletes the top folder (bar). Your step 3 is wrong. After your step 2 the packages view contains source folder "foo/bar" AND plain folder "foo". Step 3 should read: 3) Select plain folder "foo" in package explorer, press delete Note the PR title: "Error deleting PARENT FOLDER of source folder" ;) *** Bug 30008 has been marked as a duplicate of this bug. *** Other scenarios: * delete foo in the navigator ->foo folder still shows up * close and reopen the package explorer ->the foo folder has disappeared ->this indicates a JavaElementDelta problem. The delta sent out when deleting foo in the navigator is: Java Model[*]: {CHILDREN} ZZZTest[*]: {CHILDREN} foo/bar[-]: {} Notice that the foo folder deletion is missing in the delta. Moving to JDT/Core DeltaProcessor was wrongly attempting to filter out ResourceDeltas that have a child corresponding to a PakcageFragmentRoot delta. Fixed and added regression test JavaElementDeltaTests.testRemoveNonJavaFolder() Verified. |