1
0
Fork 0
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:
Marc Khouzam 2016-03-21 10:46:17 -04:00 committed by Gerrit Code Review @ Eclipse.org
parent 9781f7bfa8
commit 8f25e4b5b2

View file

@ -496,15 +496,12 @@ public class CMainTab2 extends CAbstractMainTab {
coreName = coreName.trim();
File filePath = new File(coreName);
if (!filePath.isDirectory()) {
IPath corePath = new Path(coreName);
if (!corePath.toFile().exists()) {
if (!filePath.isDirectory() && !filePath.exists()) {
setErrorMessage(LaunchMessages.CMainTab2_File_does_not_exist);
return false;
}
}
}
}
return true;
}