fixed bug for detecting IFile "include files" outside of the workspace
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / parser / Parser.java
index ad67bec..d77f3fc 100644 (file)
@@ -3428,7 +3428,11 @@ public class Parser //extends PHPParserSuperclass
               problemReporter.phpIncludeNotExistWarning(args, literal.sourceStart, literal.sourceEnd, referenceContext,
                   compilationUnit.compilationResult);
             } else {
-              impt.setFile( PHPFileUtil.createFile(path, project) );
+              try {
+                impt.setFile( PHPFileUtil.createFile(path, project) );
+              } catch (Exception e) {
+                // the file is outside of the workspace
+              }
             }
           }
         }