Bug 152919 [Import/Export] import existing project w/ copy is inefficient
I just tried to import some existing projects and selected "copy projects into workspace". After a long time (sorry, no measurements) I had to cancel the request, because I was running out of disk space. I had just succeeded in importing the first project (jdt core), which takes approx. 80MB disk space, but at that time the previously blank workspace consumed additional 300MB mainly in: .metadata/.plugins/org.eclipse.core.resources/.history/ Is this operation recording undo-information for each single file imported? Unless I made something really stupid, this operation seems not to be usable for large projects.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardProjectsImportPage.java
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.DirectoryDialog;
import org.eclipse.swt.widgets.FileDialog;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.actions.WorkspaceModifyOperation;
import org.eclipse.ui.dialogs.IOverwriteQuery;
import org.eclipse.ui.internal.ide.IDEWorkbenchMessages;
import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin;
import org.eclipse.ui.wizards.datatransfer.FileSystemStructureProvider;
import org.eclipse.ui.wizards.datatransfer.IImportStructureProvider;
import org.eclipse.ui.wizards.datatransfer.ImportOperation;
/**
 * The WizardProjectsImportPage is the page that allows the user to import
 * projects from a particular location.
 */
public class WizardProjectsImportPage extends WizardPage implements
		IOverwriteQuery {
	/**
	 * The name of the folder containing metadata information for the workspace.
	 */
	public static final String METADATA_FOLDER = ".metadata"; 
	/**
	 * Class declared public only for test suite.
	 * 
	 */
	public class ProjectRecord {