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
: Type.INCLUDE_FOLDER;
return new PathEntry(incFileResult.getFile()
.getAbsolutePath(), type, container);
}
if (result != null) {
// workspace file
ResourceResult resResult = (ResourceResult) result;