if (!useBndWorkspace) {
IPath loc = getExternalLocation();
if (loc == null || loc.isEmpty())
return new Status(IStatus.ERROR, Plugin.PLUGIN_ID, 0, "Project location invalid or not specified.", null);
if (!loc.lastSegment().equals(projectName))
return new Status(IStatus.ERROR, Plugin.PLUGIN_ID, 0, "Project location must end with specified project name", null);
}
// Check valid name
IStatus nameStatus = JavaPlugin.getWorkspace().validateName(projectName != null ? projectName : "", IResource.PROJECT);