Bug 114591 [Import/Export] "Copy projects into workspace" remains checked after switching from archive to directory
build I20051101-0010 - go to Import > External Projects into Workspace - ensure that "Select root directory" is selected and "Copy projects into workspace" checkbox is unchecked - choose "Select archive file" - the "Copy projects into workspace" checkbox is checked and disabled - this is accurate - choose "Select root directory" again - the "Copy projects into workspace" checkbox is checked and enabled - this is an unwanted side-effect Should consider the "Copy projects into workspace" setting to be user state, which should not be overridden by the system, except when it does not apply (the archive case). That is, the state should be remembered separately for the directory case.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardProjectsImportPage.java
if (!isProjectInWorkspace(selectedProjects[i].getProjectName()))
				validProjects.add(selectedProjects[i]);
		}
		return (ProjectRecord[]) validProjects.toArray(new ProjectRecord[validProjects.size()]);
	}
	
	/**
	 * Determine if the project with the given name is in the current workspace.
	 * 
	 * @param projectName String the project name to check
	 * @return boolean true if the project with the given name is in this workspace
	 */
	private boolean isProjectInWorkspace(String projectName){
		if (projectName == null)
			return false;
		IProject[] workspaceProjects = getProjectsInWorkspace();
		for (int i = 0; i <workspaceProjects.length; i++){
			if (projectName.equals(workspaceProjects[i].getName()))
				return true;
		}
		return false;
	}
	
    /**
     *	Use the dialog store to restore widget values to the values that they held
     *	last time this wizard was used to completion.
     *	
     *	Method declared public only for use of tests.
     */	
    public void restoreWidgetValues() {