Class BslMarkerDynamicDataProvider

java.lang.Object
com._1c.g5.v8.dt.validation.marker.BaseMarkerDynamicDataProvider
com._1c.g5.v8.dt.internal.bsl.validation.BslMarkerDynamicDataProvider
All Implemented Interfaces:
IMarkerDynamicDataProvider

public class BslMarkerDynamicDataProvider extends BaseMarkerDynamicDataProvider
Implementation of IMarkerDynamicDataProvider for markers of the BslEditor source.
  • Constructor Details

    • BslMarkerDynamicDataProvider

      public BslMarkerDynamicDataProvider()
      Creates a new instance.
  • Method Details

    • provideMarkerObject

      public <T> T provideMarkerObject(Marker marker, Function<org.eclipse.emf.ecore.EObject,T> function)
      Description copied from interface: IMarkerDynamicDataProvider
      Provides the object the marker is associated with to the given consumer.
      Parameters:
      marker - marker, cannot be null. The project is always set for this marker, i.e. marker.getProject() is never null as well.
      function - function to consume an object and return some processed value, cannot be null. The object provided to this function is guaranteed to exist only during the execution of the function's Function.apply(Object) method. Callers should NOT store this object for later. The provided object may be null, if this provider cannot provide this marker's object.
    • getMarkerLocation

      public String getMarkerLocation(Marker marker, org.eclipse.emf.ecore.EObject eObject)
      Description copied from interface: IMarkerDynamicDataProvider
      Returns human-friendly localized marker location (inside the marker's object).
      Parameters:
      marker - marker, never null. The project is always set for this marker, i.e. marker.getProject() is never null as well.
      eObject - the object the marker is associated with, i.e. the same as IMarkerDynamicDataProvider.provideMarkerObject(Marker, Function) provides. So, this method should only be called in the function passed to IMarkerDynamicDataProvider.provideMarkerObject(Marker, Function). May be null.
      Returns:
      human-friendly localized marker location string. May return null, if this provider cannot provide this marker's location.
    • getMarkerObjectOwner

      public org.eclipse.emf.ecore.EObject getMarkerObjectOwner(Marker marker, org.eclipse.emf.ecore.EObject eObject)
      Description copied from interface: IMarkerDynamicDataProvider
      Returns owner of the marker's object.
      Parameters:
      marker - marker, never null. The project is always set for this marker, i.e. marker.getProject() is never null as well.
      eObject - the object the marker is associated with, i.e. the same as IMarkerDynamicDataProvider.provideMarkerObject(Marker, Function) provides. So, this method should only be called in the function passed to IMarkerDynamicDataProvider.provideMarkerObject(Marker, Function). May be null.
      Returns:
      owner of the marker's object. May return null, if this provider cannot provide this marker object's owner. May return the eObject itself.