}
if (entryPath != null
&& (entryPath.isPrefixOf(Path
.fromOSString(remoteFile)) || entryPath
.isPrefixOf(remoteFilePath))) {
Type type = (entry.getEntryKind() == IBuildpathEntry.BPE_VARIABLE) ? Type.INCLUDE_VAR
: Type.INCLUDE_FOLDER;
localFile[0] = new PathEntry(
file.getAbsolutePath(), type, entry);
// pathMapper.addEntry(remoteFile,
// localFile[0]);
// PathMapperRegistry.storeToPreferences();
return Status.OK_STATUS;
}
}
}
} catch (Exception e) {
PHPDebugPlugin.log(e);
}
for (IncludePath includePath : includePaths) {
if (includePath.getEntry() instanceof IBuildpathEntry) {
IBuildpathEntry entry = (IBuildpathEntry) includePath
.getEntry();
IPath entryPath = entry.getPath();
if (entry.getEntryKind() == IBuildpathEntry.BPE_VARIABLE) {
entryPath = DLTKCore
.getResolvedVariablePath(entryPath);
}
if (entryPath != null
&& entryPath.isPrefixOf(Path
.fromOSString(remoteFile))) {
Type type = (entry.getEntryKind() == IBuildpathEntry.BPE_VARIABLE) ? Type.INCLUDE_VAR
: Type.INCLUDE_FOLDER;
localFile[0] = new PathEntry(
file.getAbsolutePath(), type, entry);
pathMapper.addEntry(remoteFile, localFile[0]);
PathMapperRegistry.storeToPreferences();