Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Cortell2012-02-15 11:51:14 -0500
committerJohn Cortell2012-02-15 11:51:14 -0500
commit12f2b8f8d57806cbbfbfdcc496e1931fa433a97e (patch)
treeb3acb8fc39352ed532baf96eb9b3dcdc88368358 /build/org.eclipse.cdt.managedbuilder.ui
parent5a77d86898a563990fe4707caa1478e506dc60bd (diff)
downloadorg.eclipse.cdt-12f2b8f8d57806cbbfbfdcc496e1931fa433a97e.tar.gz
org.eclipse.cdt-12f2b8f8d57806cbbfbfdcc496e1931fa433a97e.tar.xz
org.eclipse.cdt-12f2b8f8d57806cbbfbfdcc496e1931fa433a97e.zip
Bug 368987 - Project Name should not be reset when selecting existing code path
Diffstat (limited to 'build/org.eclipse.cdt.managedbuilder.ui')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewMakeProjFromExistingPage.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewMakeProjFromExistingPage.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewMakeProjFromExistingPage.java
index c9b5918221..fa5d314ee1 100644
--- a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewMakeProjFromExistingPage.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewMakeProjFromExistingPage.java
@@ -143,7 +143,11 @@ public class NewMakeProjFromExistingPage extends WizardPage {
File file= new File(location.getText());
if (file.isDirectory()) {
setErrorMessage(null);
- projectName.setText(file.getName());
+ // Set the project name to the directory name but not if a
+ // name has already been specified (bugzilla 368987)
+ if (projectName.getText().isEmpty()) {
+ projectName.setText(file.getName());
+ }
} else
setErrorMessage(Messages.NewMakeProjFromExistingPage_8);
}

Back to the top