return new Status(IStatus.ERROR, Plugin.PLUGIN_ID, 0, "Project location invalid or not specified.", null);
if (useBndWorkspace && (projectName == null || projectName.length() == 0))
return new Status(IStatus.ERROR, Plugin.PLUGIN_ID, 0, "Project name must be specified", null);
// Check valid name
IStatus nameStatus = JavaPlugin.getWorkspace().validateName(projectName != null ? projectName : "", IResource.PROJECT);
if (!nameStatus.isOK())
return nameStatus;
// Check if project name already exists
IProject existingProject = JavaPlugin.getWorkspace().getRoot().getProject(projectName);
if (existingProject.exists())