mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
fixed validateProjectName logic.
This commit is contained in:
parent
4b9f93946c
commit
d346fcd041
1 changed files with 2 additions and 2 deletions
|
@ -91,8 +91,8 @@ public class NewMakeProjFromExistingPage extends WizardPage {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void validateProjectName() {
|
public void validateProjectName() {
|
||||||
String projectName = location.getText();
|
String name = projectName.getText();
|
||||||
IProject project = root.getProject(projectName);
|
IProject project = root.getProject(name);
|
||||||
if (project.exists())
|
if (project.exists())
|
||||||
setErrorMessage(Messages.NewMakeProjFromExistingPage_4);
|
setErrorMessage(Messages.NewMakeProjFromExistingPage_4);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue