projectPath = projectPath.substring(0, projectPath.length() - 2);
}
Project project = ProjectPlugin.getPlugin().getProjectRegistry()
.getProject(projectPath + File.separator + projectName + ".udig"); //$NON-NLS-1$ //$NON-NLS-2$
project.setName(projectName);
Resource projectResource = project.eResource();
try {
projectResource.save(Collections.EMPTY_MAP);
} catch (IOException e) {
ProjectUIPlugin.log(
"Error during saving the project file of an anew created project", e); //$NON-NLS-1$