Search in sources :

Example 1 with WorkbenchReporter

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);
}
Also used : NullProgressMonitor(org.eclipse.core.runtime.NullProgressMonitor) URIResolver(org.eclipse.wst.sse.core.internal.util.URIResolver) IProject(org.eclipse.core.resources.IProject) WorkbenchReporter(org.eclipse.wst.validation.internal.operations.WorkbenchReporter)

Aggregations

IProject (org.eclipse.core.resources.IProject)1 NullProgressMonitor (org.eclipse.core.runtime.NullProgressMonitor)1 URIResolver (org.eclipse.wst.sse.core.internal.util.URIResolver)1 WorkbenchReporter (org.eclipse.wst.validation.internal.operations.WorkbenchReporter)1