org.eclipse.xtext.ui.validation
Class MarkerEraser

java.lang.Object
  extended by org.eclipse.xtext.ui.validation.MarkerEraser
Direct Known Subclasses:
DefaultResourceUIValidatorExtension

public class MarkerEraser
extends java.lang.Object

Can delete validation markers in IFile corresponding to the given CheckMode

Since:
2.3
Author:
Dennis Huebner - Initial contribution and API

Constructor Summary
MarkerEraser()
           
 
Method Summary
 void deleteMarkers(org.eclipse.core.resources.IFile file, CheckMode checkMode, org.eclipse.core.runtime.IProgressMonitor monitor)
          Deletes IFile's markers which type matches the given CheckTypes represented by the CheckMode.
 void deleteValidationMarkers(org.eclipse.core.resources.IFile file, CheckMode checkMode, org.eclipse.core.runtime.IProgressMonitor monitor)
           
 boolean shouldProcess(org.eclipse.core.resources.IFile file)
          Checks if a IFile should/can be processed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkerEraser

public MarkerEraser()
Method Detail

deleteValidationMarkers

public void deleteValidationMarkers(org.eclipse.core.resources.IFile file,
                                    CheckMode checkMode,
                                    org.eclipse.core.runtime.IProgressMonitor monitor)

shouldProcess

public final boolean shouldProcess(org.eclipse.core.resources.IFile file)
Checks if a IFile should/can be processed

Returns:
true if file is accessible and not hidden

deleteMarkers

public final void deleteMarkers(org.eclipse.core.resources.IFile file,
                                CheckMode checkMode,
                                org.eclipse.core.runtime.IProgressMonitor monitor)
                         throws org.eclipse.core.runtime.CoreException
Deletes IFile's markers which type matches the given CheckTypes represented by the CheckMode.

Throws:
org.eclipse.core.runtime.CoreException
See Also:
CheckType, CheckMode.shouldCheck(CheckType), MarkerTypes.forCheckType(CheckType)