Detect projects which are duplicates on Windows due to casing (fixes artf3487).

Change-Id: I5f1ecc657fea226ea0eb1429a0f394a3345264db
This commit is contained in:
Kevin O'Connor
2014-10-29 16:30:24 -04:00
parent 80194e9809
commit b030be68d3

View File

@@ -80,6 +80,12 @@ public class ProjectCreationUtils {
}
} catch (CoreException e) {
WPILibCore.logError("Can't create new project.", e);
Display.getDefault().syncExec(new Runnable() {
@Override
public void run() {
MessageDialog.openError(Display.getDefault().getActiveShell(), "Error", "Error creating project! This may occur if a project of the same name with different case exists in the Workspace");
}
});
}
}else {
Display.getDefault().syncExec(new Runnable() {