IJavaProject javaProject = JavaUtils.getJavaProject(project);
javaProject.getResource().refreshLocal(IResource.DEPTH_INFINITE, null);
// validate that .classpath xml is well formed and valid.
PluginResources resources = (PluginResources)
Services.getPluginResources(PluginResources.NAME);
List<Error> errors = XmlUtils.validateXml(
javaProject.getProject().getName(),
CLASSPATH,
resources.getResource(CLASSPATH_XSD).toString());
if(errors.size() > 0){
return errors;
}
String dotclasspath = javaProject.getProject().getFile(CLASSPATH)