use of com.intellij.xml.util.XmlResourceResolver in project intellij-community by JetBrains.
the class ValidateXmlActionHandler method doValidate.
public void doValidate(XmlFile file) {
myProject = file.getProject();
myFile = file;
myXmlResourceResolver = new XmlResourceResolver(myFile, myProject, myErrorReporter);
myXmlResourceResolver.setStopOnUnDeclaredResource(myErrorReporter.isStopOnUndeclaredResource());
try {
try {
myParser = createParser();
} catch (Exception e) {
filterAppException(e);
}
if (myParser == null)
return;
myErrorReporter.startProcessing();
} catch (XmlResourceResolver.IgnoredResourceException ignore) {
} catch (Exception exception) {
filterAppException(exception);
}
}
Aggregations