Bug 31117 incomplete deletion of abandoned Java project [code manipulation]
Build M5 1. New / Project / Java Project Name "J1" Hit Next. Observe: Project J3 appears in the resource navigator. 2. On Java settings wizard page, hit Cancel. Observe: Project J3 disappears from the resource navigator. 3. Use Windows Explorer to look at <workspace>/ Observe: <workspace>/J1/.project exists and contains <?xml version="1.0" encoding="UTF-8"?> <projectDescription> <name>J2</name> <comment></comment> <projects> </projects> <buildSpec> </buildSpec> <natures> </natures> </projectDescription> Expectation: <workspace>/J1/.project should get deleted. So should <workspace>/J1/ if it had just been created.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewProjectCreationWizardPage.java
/*
 * (c) Copyright IBM Corp. 2000, 2001.
 * All Rights Reserved.
 */
package org.eclipse.jdt.internal.ui.wizards;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.SubProgressMonitor;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.ui.dialogs.WizardNewProjectCreationPage;
import org.eclipse.jdt.core.IClasspathEntry;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.ui.wizards.JavaCapabilityConfigurationPage;
import org.eclipse.jdt.internal.ui.util.ExceptionHandler;
/**
 * As addition to the JavaCapabilityConfigurationPage, the wizard does an
 * early project creation (so that linked folders can be defined) and, if an
 * existing external location was specified, offers to do a classpath detection
 */
public class NewProjectCreationWizardPage extends JavaCapabilityConfigurationPage {