Community
Participate
Working Groups
Build 20020917 1) Create a new java project 2) Create a new source folder "foo/bar". 3) Create a class inside the source folder 4) In the packages view, try to delete the folder "foo". -> The source folder disappears, but the "foo" folder is still in the packages view 5) Look in the navigator, the "foo" folder is not there 6) Back in the packages view, try to delete the "foo" folder again -> Error occurs, claiming resource /Project/foo does not exist.
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.