From 638199b49a47204e02e4290c5b05546c0f48d0b8 Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Wed, 4 Dec 2002 14:35:16 +0000 Subject: [PATCH] calll isValidLocation on the projectLocation. --- .../src/org/eclipse/cdt/ui/wizards/CProjectWizardPage.java | 7 +++++++ 1 file changed, 7 insertions(+) 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$