Bug 191662 [Import/Export] Warn of duplicate projects in project import wizard
Build ID: I20070601-1539 Steps To Reproduce: 1. Create a project. 2. Export it to *.zip file. 3. Close the project. 4. Try to import it. 5. Empty projects list. More information: This is pretty annoying, since I am using mylar and a workspace with many closed projects. If I try to import a project that already exists, I see nothing and I am pretty confused (there is no warning).
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardProjectsImportPage.java
monitor.done();
		}
		
		if (copyFiles && importSource != null) {
			List filesToImport = FileSystemStructureProvider.INSTANCE
					.getChildren(importSource);
			ImportOperation operation = new ImportOperation(project
					.getFullPath(), importSource,
					FileSystemStructureProvider.INSTANCE, this, filesToImport);
			operation.setContext(getShell());
			operation.setOverwriteResources(true); 
			
			
			operation.setCreateContainerStructure(false);
			operation.run(monitor);
		}
		return true;
	}
	/**
	 * The <code>WizardDataTransfer</code> implementation of this
	 * <code>IOverwriteQuery</code> method asks the user whether the existing
	 * resource at the given path should be overwritten.
	 * 
	 * @param pathString
	 * @return the user's reply: one of <code>"YES"</code>, <code>"NO"</code>,
	 *         <code>"ALL"</code>, or <code>"CANCEL"</code>
	 */
	public String queryOverwrite(String pathString) {
		Path path = new Path(pathString);
		String messageString;