Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: UDIG 1.1-RC14, UDIG 1.2.M3
-
Fix Version/s: UDIG 1.2.M6
-
Component/s: application
-
Labels:None
-
Environment:MacOSx
Description
Right-click Project/Delete opens a dialogue box with a checkbox "Delete from file system":
1. If "Delete from file system" is checked the folder and the Maps are really deleted from filesystem
2. If "Delete from file system" is not checked, everything is deleted as if it is checked.
Issue Links
| This issue is related to: | ||||
| UDIG-1036 | Delete project does not work correctly |
|
|
|
deleteAssumption = getDoDelete();
field that gets initialised upon object creation.
The state is also held in PreferenceConstants.P_PROJECT_DELETE_FILES.
Furthermore, there are constructs
if (deleteProjectFiles != getDoDelete()) {
setDoDelete(deleteProjectFiles);
}
My suggestion is to remove the deleteAssumption field, and keep the state solely in PreferenceConstants.P_PROJECT_DELETE_FILES. Also, the
if (deleteProjectFiles != getDoDelete())
should be removed.
Two further remarks: (1) I may be completely wrong (as a pure headless mode shouldn't rely on the workbench and it's preference store, and I might be not running all cases), and (2) I'm testing under windows, which apparently has problem deleting project files (s. bug 1407).