Skip to main content
summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAlena Laskavaia2009-09-01 08:44:22 -0400
committerAlena Laskavaia2009-09-01 08:44:22 -0400
commit137d0fdfdc630b94b615a8492342d10771abed2b (patch)
tree757759d561b3549d9234237a977fe2a7b628c5ab /core
parentf35a819d3b6c129476b44442240ebe53ce8bbbff (diff)
downloadorg.eclipse.cdt-137d0fdfdc630b94b615a8492342d10771abed2b.tar.gz
org.eclipse.cdt-137d0fdfdc630b94b615a8492342d10771abed2b.tar.xz
org.eclipse.cdt-137d0fdfdc630b94b615a8492342d10771abed2b.zip
[ 279241] - fixed validation error when directory already exists, applied patch from Jens
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/CDTMainWizardPage.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/CDTMainWizardPage.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/CDTMainWizardPage.java
index b62fe0b32e..591626b6d7 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/CDTMainWizardPage.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/CDTMainWizardPage.java
@@ -211,10 +211,10 @@ import org.eclipse.cdt.internal.ui.CPluginImages;
if (f.exists()) {
if (f.isDirectory()) {
setMessage(UIMessages.getString("CMainWizardPage.7"), IMessageProvider.WARNING); //$NON-NLS-1$
- return true;
+ } else {
+ setErrorMessage(UIMessages.getString("CMainWizardPage.6")); //$NON-NLS-1$
+ return false;
}
- setErrorMessage(UIMessages.getString("CMainWizardPage.6")); //$NON-NLS-1$
- return false;
}
} catch (CoreException e) {
CUIPlugin.log(e.getStatus());

Back to the top