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:
parent
9567d8dfda
commit
5b20e1b1a8
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue