mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-17 13:15:44 +02:00
calll isValidLocation on the projectLocation.
This commit is contained in:
parent
10f0fc55a2
commit
638199b49a
1 changed files with 7 additions and 0 deletions
|
@ -323,6 +323,13 @@ public class CProjectWizardPage extends WizardPage {
|
||||||
String locationFieldContents = locationPathField.getText();
|
String locationFieldContents = locationPathField.getText();
|
||||||
|
|
||||||
if (!locationFieldContents.equals("")) {//$NON-NLS-1$
|
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$
|
IPath path = new Path("");//$NON-NLS-1$
|
||||||
if (!path.isValidPath(locationFieldContents)) {
|
if (!path.isValidPath(locationFieldContents)) {
|
||||||
setErrorMessage(CUIPlugin.getResourceString("CProjectWizardPage.locationError")); //$NON-NLS-1$
|
setErrorMessage(CUIPlugin.getResourceString("CProjectWizardPage.locationError")); //$NON-NLS-1$
|
||||||
|
|
Loading…
Add table
Reference in a new issue