&& currentScriptDir != null) {
// This is not a full path, search using PHP Search Engine:
Result<?, ?> result = PHPSearchEngine.find(remoteFile,
currentWorkingDir, currentScriptDir, project);
if (result instanceof ExternalFileResult) {
ExternalFileResult extFileResult = (ExternalFileResult) result;
return new PathEntry(extFileResult.getFile()
.getAbsolutePath(), Type.EXTERNAL,
extFileResult.getContainer());
}
if (result instanceof IncludedFileResult) {
IncludedFileResult incFileResult = (IncludedFileResult) result;
IBuildpathEntry container = incFileResult.getContainer();
Type type = (container.getEntryKind() == IBuildpathEntry.BPE_VARIABLE) ? Type.INCLUDE_VAR