uDIG

Project/Delete File System checkbox doesn't work

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical 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

Activity

Hide
Ugo Taddei added a comment -
There's a
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).
Show
Ugo Taddei added a comment - There's a 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).
Hide
Silvia Franceschi added a comment -
Still if uncheck the "Delete from file system" the project is deleted.
Show
Silvia Franceschi added a comment - Still if uncheck the "Delete from file system" the project is deleted.
Hide
John Hudson added a comment -
This is still an issue.

There is also an issue of creating an project outside uDigs default runtime config folder (runtime-udig.product) if creating a project under Windos XP outside this directory the project will not persist after closing uDig.

This issue could also be related to http://jira.codehaus.org/browse/UDIG-1478 as it also has the some problem.
Show
John Hudson added a comment - This is still an issue. There is also an issue of creating an project outside uDigs default runtime config folder (runtime-udig.product) if creating a project under Windos XP outside this directory the project will not persist after closing uDig. This issue could also be related to http://jira.codehaus.org/browse/UDIG-1478 as it also has the some problem.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: