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
Implementation of
IMarkerDynamicDataProvider
for markers of the BslEditor source.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMarkerLocation
(Marker marker, org.eclipse.emf.ecore.EObject eObject) Returns human-friendly localized marker location (inside the marker's object).org.eclipse.emf.ecore.EObject
getMarkerObjectOwner
(Marker marker, org.eclipse.emf.ecore.EObject eObject) Returns owner of the marker's object.<T> T
provideMarkerObject
(Marker marker, Function<org.eclipse.emf.ecore.EObject, T> function) Provides the object the marker is associated with to the given consumer.Methods inherited from class com._1c.g5.v8.dt.validation.marker.BaseMarkerDynamicDataProvider
getSupportedSourceTypes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com._1c.g5.v8.dt.validation.marker.IMarkerDynamicDataProvider
provideMarkerObject
-
Constructor Details
-
BslMarkerDynamicDataProvider
public BslMarkerDynamicDataProvider()Creates a new instance.
-
-
Method Details
-
provideMarkerObject
Description copied from interface:IMarkerDynamicDataProvider
Provides the object the marker is associated with to the given consumer.- Parameters:
marker
- marker, cannot benull
. The project is always set for this marker, i.e.marker.getProject()
is nevernull
as well.function
- function to consume an object and return some processed value, cannot benull
. The object provided to this function is guaranteed to exist only during the execution of the function'sFunction.apply(Object)
method. Callers should NOT store this object for later. The provided object may benull
, if this provider cannot provide this marker's object.
-
getMarkerLocation
Description copied from interface:IMarkerDynamicDataProvider
Returns human-friendly localized marker location (inside the marker's object).- Parameters:
marker
- marker, nevernull
. The project is always set for this marker, i.e.marker.getProject()
is nevernull
as well.eObject
- the object the marker is associated with, i.e. the same asIMarkerDynamicDataProvider.provideMarkerObject(Marker, Function)
provides. So, this method should only be called in the function passed toIMarkerDynamicDataProvider.provideMarkerObject(Marker, Function)
. May benull
.- 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, nevernull
. The project is always set for this marker, i.e.marker.getProject()
is nevernull
as well.eObject
- the object the marker is associated with, i.e. the same asIMarkerDynamicDataProvider.provideMarkerObject(Marker, Function)
provides. So, this method should only be called in the function passed toIMarkerDynamicDataProvider.provideMarkerObject(Marker, Function)
. May benull
.- Returns:
- owner of the marker's object. May return
null
, if this provider cannot provide this marker object's owner. May return theeObject
itself.
-