Bug 100177 [Import/Export] Importing existing project with different case over existing project fails with empty error dialog
I20050610-1757 1. Have a Java project 'p' (lower-case p) on disk 2. Create a Java project 'P' (upper-case P) in your workspace 3. File > Import > Existing Projects Into Workspace 4. Select the directory that contains 'p' on disk 5. Finish Observe: You get an empty error dialog
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/WizardExternalProjectImportPage.java
if (t instanceof CoreException) {
                if (((CoreException) t).getStatus().getCode() == IResourceStatus.CASE_VARIANT_EXISTS) {
                    MessageDialog
                            .openError(
                                    getShell(),
                                    DataTransferMessages.WizardExternalProjectImportPage_errorMessage,
                                    DataTransferMessages.WizardExternalProjectImportPage_caseVariantExistsError
                            );
                } else {
                    ErrorDialog
                            .openError(
                                    getShell(),
                                    DataTransferMessages.WizardExternalProjectImportPage_errorMessage,
                                    null, ((CoreException) t).getStatus());
                }
            }
            return null;
        }
        return project;
    }
    /*
     * see @DialogPage.setVisible(boolean)
     */
    public void setVisible(boolean visible) {
        super.setVisible(visible);
        if (visible)
            this.locationPathField.setFocus();
    }
}