Bug 93549 [Import/Export] Disable Finish in import existing projects wizard
Build: N20050503 Open import existing project wizard Toggle radio button to import from archive Type in the name of an archive file Toggle radio button back to import from directory Observe: the Finish button is still enabled, even though there is no directory selected. Clicking Finish will import from the selected zip file.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardProjectsImportPage.java
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);
			record.provider.setStrip(record.level);
			ImportOperation operation = new ImportOperation(project
					.getFullPath(), record.provider.getRoot(), record.provider,
					this, fileSystemObjects);
			operation.setContext(getShell());
			return executeImportOperation(operation);
		}
		WorkspaceModifyOperation op = new WorkspaceModifyOperation() {
			protected void execute(IProgressMonitor monitor)
					throws CoreException {
				monitor.beginTask("", 2000); 
				project.create(record.description, new SubProgressMonitor(
						monitor, 1000));
				if (monitor.isCanceled())
					throw new OperationCanceledException();