if (existingProject.exists())
return new Status(IStatus.ERROR, Plugin.PLUGIN_ID, 0, MessageFormat.format("Project \"{0}\" already exists.", projectName), null);
// Find existing project at that location and check if name matches
IPath projectLocation = ResourcesPlugin.getWorkspace().getRoot().getLocation().append(projectName);
if (projectLocation.toFile().exists()) {
try {
String path = projectLocation.toFile().getCanonicalPath();
projectLocation = new Path(path);
} catch (IOException e) {
// TODO Auto-generated catch block