Bug 95613 [Import/Export] importing existing projects from zip does not work
in 0513 I am trying to get some existing projects into my workspace. I want them actually imported (i.e., copied) into the workspace location. It appears that the only theoretical way of doing this is zip it up and then import from the zip. Ok, so I zipped them up in a structure that looks like foo.zip bar/ .project ... project stuff ... fred/ .project ... project stuff ... ... When I import existing projects from that zip I get a workspace project sturcture like workspace/ bar/ .project bar/ .project ... project stuff ... fred/ .project fred/ .project ... project stuff ... ... The directory sturcture from the ziup is not being trimmed.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarLeveledStructureProvider.java
* Returns the tar file that this provider provides structure for.
	 * 
	 * @return TarFile file
	 */
	public TarFile getTarFile() {
		return tarFile;
	}
	/**
	 * Initializes this object's children table based on the contents of the
	 * specified source file.
	 */
	protected void initialize() {
		children = new HashMap(1000);
		Enumeration entries = tarFile.entries();
		while (entries.hasMoreElements()) {
			TarEntry entry = (TarEntry) entries.nextElement();
			if (entry.getFileType() == TarEntry.FILE) {
				IPath path = new Path(entry.getName()).addTrailingSeparator();
				int pathSegmentCount = path.segmentCount();
				for (int i = 1; i < pathSegmentCount; i++)
					createContainer(path.uptoSegment(i));
				createFile(entry);
			}
		}
	}
	/*
	 * (non-Javadoc) Method declared on IImportStructureProvider
	 */
	public boolean isFolder(Object element) {
		return (((TarEntry) element).getFileType() == TarEntry.DIRECTORY);