IPath sourceProject = new Path(source).append(".project");
if (sourceProject.toFile().exists()) {
try {
ProjectDescriptionReader reader = new ProjectDescriptionReader();
ProjectDescription projectDescription = reader.read(sourceProject);
if (projectDescription == null) {
setErrorMessage("Cannot read the source project.");
return false;
}
projectName = projectDescription.getName();
projectNameField.setTextWithoutUpdate(projectName);
projectNameField.getTextControl(null).setEnabled(false);
lastNameFromProjectFile = projectName;
setMessage("The target location contains already an eclipse project. The wizard will use the existing information to import the project");