org.eclipse.xtext.ui.validation
Class DefaultResourceUIValidatorExtension
java.lang.Object
org.eclipse.xtext.ui.validation.DefaultResourceUIValidatorExtension
- All Implemented Interfaces:
- IResourceUIValidatorExtension
public class DefaultResourceUIValidatorExtension
- extends java.lang.Object
- implements IResourceUIValidatorExtension
- Since:
- 2.1
- Author:
- Michael Clay - Initial contribution and API
Method Summary |
protected void |
addMarkers(org.eclipse.core.resources.IFile file,
org.eclipse.emf.ecore.resource.Resource resource,
CheckMode mode,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
protected void |
createMarkers(org.eclipse.core.resources.IFile file,
java.util.List<Issue> list,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
protected void |
deleteMarkers(org.eclipse.core.resources.IFile file,
CheckMode checkMode,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
void |
deleteValidationMarkers(org.eclipse.core.resources.IFile file,
CheckMode checkMode,
org.eclipse.core.runtime.IProgressMonitor monitor)
Delete all validation markers corresponding to the given checkMode on the passed in file |
protected CancelIndicator |
getCancelIndicator(org.eclipse.core.runtime.IProgressMonitor monitor)
|
protected boolean |
shouldProcess(org.eclipse.core.resources.IFile file)
|
void |
updateValidationMarkers(org.eclipse.core.resources.IFile file,
org.eclipse.emf.ecore.resource.Resource resource,
CheckMode mode,
org.eclipse.core.runtime.IProgressMonitor monitor)
Update the validation markers of the given file |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultResourceUIValidatorExtension
public DefaultResourceUIValidatorExtension()
updateValidationMarkers
public void updateValidationMarkers(org.eclipse.core.resources.IFile file,
org.eclipse.emf.ecore.resource.Resource resource,
CheckMode mode,
org.eclipse.core.runtime.IProgressMonitor monitor)
- Description copied from interface:
IResourceUIValidatorExtension
- Update the validation markers of the given file
- Specified by:
updateValidationMarkers
in interface IResourceUIValidatorExtension
- Parameters:
file
- the file to create validation markers forresource
- the resource corresponding to the given filemode
- the mode (normal,fast,expensive) of the validation
deleteValidationMarkers
public void deleteValidationMarkers(org.eclipse.core.resources.IFile file,
CheckMode checkMode,
org.eclipse.core.runtime.IProgressMonitor monitor)
- Description copied from interface:
IResourceUIValidatorExtension
- Delete all validation markers corresponding to the given checkMode on the passed in file
- Specified by:
deleteValidationMarkers
in interface IResourceUIValidatorExtension
- Parameters:
file
- the file to create validation markers forcheckMode
- the mode (normal,fast,expensive) of the validation
shouldProcess
protected boolean shouldProcess(org.eclipse.core.resources.IFile file)
addMarkers
protected void addMarkers(org.eclipse.core.resources.IFile file,
org.eclipse.emf.ecore.resource.Resource resource,
CheckMode mode,
org.eclipse.core.runtime.IProgressMonitor monitor)
createMarkers
protected void createMarkers(org.eclipse.core.resources.IFile file,
java.util.List<Issue> list,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
deleteMarkers
protected void deleteMarkers(org.eclipse.core.resources.IFile file,
CheckMode checkMode,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
getCancelIndicator
protected CancelIndicator getCancelIndicator(org.eclipse.core.runtime.IProgressMonitor monitor)