org.eclipse.xtext.builder.builderState
Class MarkerUpdaterImpl

java.lang.Object
  extended by org.eclipse.xtext.builder.builderState.MarkerUpdaterImpl
All Implemented Interfaces:
IMarkerUpdater

public class MarkerUpdaterImpl
extends java.lang.Object
implements IMarkerUpdater

IMarkerUpdater that handles CheckMode.NORMAL_AND_FAST marker for all changed resources. The implementation delegates to the language specific validator if available.

Author:
Sven Efftinge - Initial contribution and API, Michael Clay, Dennis Huebner

Constructor Summary
MarkerUpdaterImpl()
           
 
Method Summary
protected  IResourceUIValidatorExtension getResourceUIValidatorExtension(org.eclipse.emf.common.util.URI uri)
          Searches for a IResourceUIValidatorExtension implementation in IResourceServiceProvider.Registry
 void updateMarkers(IResourceDescription.Delta delta, org.eclipse.emf.ecore.resource.ResourceSet resourceSet, org.eclipse.core.runtime.IProgressMonitor monitor)
          Deletes or updates the markers for the given resource delta.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkerUpdaterImpl

public MarkerUpdaterImpl()
Method Detail

updateMarkers

public void updateMarkers(IResourceDescription.Delta delta,
                          @Nullable
                          org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
                          org.eclipse.core.runtime.IProgressMonitor monitor)
Deletes or updates the markers for the given resource delta.

Specified by:
updateMarkers in interface IMarkerUpdater
Parameters:
delta - information about the changed resource. Never null.
resourceSet - context resource set from which the updated resource may be obtained; may be null if the delta represents a resource deletion.
monitor - the progress monitor to use for reporting progress to the user. It is the caller's responsibility to call done() on the given monitor. Accepts null, indicating that no progress should be reported and that the operation cannot be cancelled.

getResourceUIValidatorExtension

protected IResourceUIValidatorExtension getResourceUIValidatorExtension(org.eclipse.emf.common.util.URI uri)
Searches for a IResourceUIValidatorExtension implementation in IResourceServiceProvider.Registry

Returns:
IResourceUIValidatorExtension for the given URI or null if not found.
See Also:
IResourceServiceProvider.Registry.getResourceServiceProvider(URI), IResourceServiceProvider.get(Class)