class SampleResourceVisitor implements IResourceVisitor
{
+ @Override
public boolean visit(IResource resource)
{
checkXML(resource);
MograsimBuilder.this.addMarker(file, e.getMessage(), e.getLineNumber(), severity);
}
+ @Override
public void error(SAXParseException exception) throws SAXException
{
addMarker(exception, IMarker.SEVERITY_ERROR);
}
+ @Override
public void fatalError(SAXParseException exception) throws SAXException
{
addMarker(exception, IMarker.SEVERITY_ERROR);
}
+ @Override
public void warning(SAXParseException exception) throws SAXException
{
addMarker(exception, IMarker.SEVERITY_WARNING);
return null;
}
+ @Override
protected void clean(IProgressMonitor monitor) throws CoreException
{
// delete markers set and files created