mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-21 21:52:10 +02:00
Cleanup check for file presence.
Change-Id: I58faa14181598829d754c169460d3721671c42af
This commit is contained in:
parent
9781f7bfa8
commit
8f25e4b5b2
1 changed files with 3 additions and 6 deletions
|
@ -496,12 +496,9 @@ public class CMainTab2 extends CAbstractMainTab {
|
||||||
|
|
||||||
coreName = coreName.trim();
|
coreName = coreName.trim();
|
||||||
File filePath = new File(coreName);
|
File filePath = new File(coreName);
|
||||||
if (!filePath.isDirectory()) {
|
if (!filePath.isDirectory() && !filePath.exists()) {
|
||||||
IPath corePath = new Path(coreName);
|
setErrorMessage(LaunchMessages.CMainTab2_File_does_not_exist);
|
||||||
if (!corePath.toFile().exists()) {
|
return false;
|
||||||
setErrorMessage(LaunchMessages.CMainTab2_File_does_not_exist);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue