use of org.eclipse.wst.validation.internal.operations.WorkbenchReporter in project webtools.sourceediting by eclipse.
the class HTMLValidator method validate.
/**
* @deprecated but remains for compatibility
*/
protected HTMLValidationResult validate(IDOMModel model, IFile file) {
IProject prj = null;
if (file != null) {
prj = file.getProject();
}
if ((prj == null) && (model != null)) {
URIResolver res = model.getResolver();
if (res != null) {
prj = res.getProject();
}
}
final WorkbenchReporter reporter = new WorkbenchReporter(prj, new NullProgressMonitor());
return validate(reporter, file, model);
}
Aggregations