1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-16 20:55:44 +02:00

calll isValidLocation on the projectLocation.

This commit is contained in:
Alain Magloire 2002-12-04 14:35:16 +00:00
parent 10f0fc55a2
commit 638199b49a

View file

@ -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$