Bug 93193 [Dialogs] Infinite search in project import dialog
Using UI from HEAD 1) Open the Existing project import wizard 2) Type "c:\" in the first text field 3) Toggle the radio button to search in archive 4) Type "d:\" in the archive search text field (or some other large directory) 5) Hit Tab to begin search 6) Click Cancel -> It cancels, but when the cancel button gets disabled, focus traverses to the first radio button, which kicks off another search. The result is an infinite search that cannot be canceled.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardProjectsImportPage.java
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.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 {
	private class ProjectRecord {
		File projectSystemFile;
		Object projectArchiveFile;
		String projectName;
		Object parent;
		int level;
		IProjectDescription description;
		ILeveledImportStructureProvider provider;
		/**
		 * Create a record for a project based on the info in the file.
		 * 
		 * @param file
		 */
		ProjectRecord(File file) {
			projectSystemFile = file;