Bug 150998 [Import/Export] Import Projects Wizard: Finish is enabled even if no project is selected
In Import Existing Projects Wizard, the Finish button is enabled even when no projects are selected for import. When the Import wizard is first invoked, Finish is disabled, since no projects have been selected for import. If a directory with no Eclipse projects is selected, Finish remains disabled. If a directory with at least one Eclipse project is selected, then Finish becomes enabled. If none of the projects are selected for import, then Finish remains enabled. Although this behaviour does not cause any functional problems, the UI seems inconsistent.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardProjectsImportPage.java
/*******************************************************************************
 * Copyright (c) 2004, 2006 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *     Red Hat, Inc - extensive changes to allow importing of Archive Files
 *     Philippe Ombredanne (pombredanne@nexb.com)
 *     		- Bug 101180 [Import/Export] Import Existing Project into Workspace default widget is back button , should be text field
 *******************************************************************************/
package org.eclipse.ui.internal.wizards.datatransfer;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.InvocationTargetException;
import java.net.URI;
import java.util.ArrayList;