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
}
		childList.add(child);
	}
	/**
	 * Creates a new container tar entry with the specified name, iff it has not
	 * already been created.
	 */
	protected void createContainer(IPath pathname) {
		if (directoryEntryCache.containsKey(pathname))
			return;
		TarEntry parent;
		if (pathname.segmentCount() == 1)
			parent = root;
		else
			parent = (TarEntry) directoryEntryCache.get(pathname
					.removeLastSegments(1));
		TarEntry newEntry = new TarEntry(pathname.toString());
		newEntry.setFileType(TarEntry.DIRECTORY);
		directoryEntryCache.put(pathname, newEntry);
		addToChildren(parent, newEntry);
	}
	/**
	 * Creates a new tar file entry with the specified name.
	 */
	protected void createFile(TarEntry entry) {
		IPath pathname = new Path(entry.getName());
		TarEntry parent;
		if (pathname.segmentCount() == 1)
			parent = root;
		else