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,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;
}
} }
} }
} }