1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

Use the 'exists' method of the 'IFile' interface instead of using 'toFile().exists()' for 'IPath'.

This commit is contained in:
Mikhail Khodjaiants 2003-03-28 22:22:55 +00:00
parent 9567d8dfda
commit 5b20e1b1a8
3 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
2003-03-28 Mikhail Khodjaiants
Use the 'exists' method of the 'IFile' interface instead of using toFile().exists() for IPath.
Use the 'exists' method of the 'IFile' interface instead of using 'toFile().exists()' for 'IPath'.
* CDirectorySourceLocation.java
* CSourceLocator.java

View file

@ -164,7 +164,7 @@ public class CDirectorySourceLocation implements IDirectorySourceLocation
}
// Try for a file in another workspace project
IFile f = ResourcesPlugin.getWorkspace().getRoot().getFileForLocation( filePath );
if ( f != null )
if ( f != null && f.exists() )
{
return f;
}

View file

@ -248,7 +248,7 @@ public class CSourceLocator implements ICSourceLocator, IPersistableSourceLocato
{
// Try for a file in another workspace project
IFile f = ResourcesPlugin.getWorkspace().getRoot().getFileForLocation( path );
if ( f != null )
if ( f != null && f.exists() )
{
return f;
}