IBuildpathEntry[] entries = scriptProject.readRawBuildpath();
FileOffsets offsets = FileOffsets.compile(dotbuildpath);
String buildpath = IOUtils.toString(new FileInputStream(dotbuildpath));
errors = new ArrayList<Error>();
for(IBuildpathEntry entry : entries){
IModelStatus status = BuildpathEntry.validateBuildpathEntry(
scriptProject, entry, true);
if(!status.isOK()){
errors.add(createErrorForEntry(
entry, status, offsets, dotbuildpath, buildpath));
}
}