Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 b62fe0b32e2..591626b6d72 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