diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/CProjectWizardPage.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/CProjectWizardPage.java index 1e99a49a36d..e0e5c82e20d 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/CProjectWizardPage.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/CProjectWizardPage.java @@ -323,6 +323,13 @@ public class CProjectWizardPage extends WizardPage { String locationFieldContents = locationPathField.getText(); if (!locationFieldContents.equals("")) {//$NON-NLS-1$ + // Give a chance to the wizard to do its own validation + IStatus validLocation = wizard.isValidLocation(projectFieldContents); + if (!validLocation.isOK()) { + setErrorMessage(validName.getMessage()); + return false; + } + IPath path = new Path("");//$NON-NLS-1$ if (!path.isValidPath(locationFieldContents)) { setErrorMessage(CUIPlugin.getResourceString("CProjectWizardPage.locationError")); //$NON-NLS-1$