mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 14:12:10 +02:00
[ 279241] - fixed validation error when directory already exists, applied patch from Jens
This commit is contained in:
parent
c180619310
commit
798392d7ee
1 changed files with 3 additions and 3 deletions
|
@ -211,10 +211,10 @@ import org.eclipse.cdt.internal.ui.CPluginImages;
|
||||||
if (f.exists()) {
|
if (f.exists()) {
|
||||||
if (f.isDirectory()) {
|
if (f.isDirectory()) {
|
||||||
setMessage(UIMessages.getString("CMainWizardPage.7"), IMessageProvider.WARNING); //$NON-NLS-1$
|
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) {
|
} catch (CoreException e) {
|
||||||
CUIPlugin.log(e.getStatus());
|
CUIPlugin.log(e.getStatus());
|
||||||
|
|
Loading…
Add table
Reference in a new issue