Bug 157646 [Import/Export] "Import Existing Project" from zip locks file - prevents deletion
Build: M20060629-1905 Even though I cancel the Import Existing Project wizard without completing it, the zip file selected becomes (and remains) locked and cannot be deleted until the workbench is closed. Steps: File > Import > Existing Projects Into Workspace Select a zip file that does not contain any projects Cancel the wizard, but leave the workbench running Attempt to delete the zipfile Result: On Windows XP, this will result in system error stating: "Cannot delete <filename>: It is being used by another person or program." This problem will continue until the workbench is closed.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardProjectsImportPage.java
/**
	 * Create the project described in record. If it is successful return true.
	 * 
	 * @param record
	 * @return boolean <code>true</code> if successful
	 * @throws InterruptedException 
	 */
	private boolean createExistingProject(final ProjectRecord record, IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
		String projectName = record.getProjectName();
		final IWorkspace workspace = ResourcesPlugin.getWorkspace();
		final IProject project = workspace.getRoot().getProject(projectName);
		if (record.description == null) {
			
			record.description = workspace.newProjectDescription(projectName);
			IPath locationPath = new Path(record.projectSystemFile
					.getAbsolutePath());
			
			if (Platform.getLocation().isPrefixOf(locationPath)) {
				record.description.setLocation(null);
			} else {
				record.description.setLocation(locationPath);
			}
		} else {
			record.description.setName(projectName);
		}
		if (record.projectArchiveFile != null) {
			
			ArrayList fileSystemObjects = new ArrayList();
			getFilesForProject(fileSystemObjects, record.provider,
					record.parent);