Class BmAwareResourceValidatorListener
- java.lang.Object
-
- com._1c.g5.v8.dt.bm.xtext.validation.BmAwareResourceValidatorListener
-
- All Implemented Interfaces:
IResourceValidatorListener
- Direct Known Subclasses:
BslBmAwareResourceValidatorListener
public abstract class BmAwareResourceValidatorListener extends Object implements IResourceValidatorListener
Accepts issues found during BSL module validation. Converts the found issues to BM markers.
-
-
Constructor Summary
Constructors Constructor Description BmAwareResourceValidatorListener()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract String
getMarkerSourceType()
Gets source Id of Bm markersprotected abstract String
getUriFragment()
Gets fragment corresponding to the root element of validating resourcevoid
onComplete(org.eclipse.emf.ecore.resource.Resource resource, List<org.eclipse.xtext.validation.Issue> issues)
The method that gets called upon validation completion.protected PlainEObjectMarker
postProcessMarker(PlainEObjectMarker marker, org.eclipse.xtext.validation.Issue issue, org.eclipse.core.resources.IProject project)
Post-processes the marker being created from the given issue
-
-
-
Method Detail
-
onComplete
public void onComplete(org.eclipse.emf.ecore.resource.Resource resource, List<org.eclipse.xtext.validation.Issue> issues)
Description copied from interface:IResourceValidatorListener
The method that gets called upon validation completion.- Specified by:
onComplete
in interfaceIResourceValidatorListener
- Parameters:
resource
- validated resource.issues
- list of issues found during validation process.
-
getMarkerSourceType
protected abstract String getMarkerSourceType()
Gets source Id of Bm markers- Returns:
- source Id of Bm markers, can't be
null
-
getUriFragment
protected abstract String getUriFragment()
Gets fragment corresponding to the root element of validating resource- Returns:
- fragment corresponding to the root element of validating resource, can't be
null
-
postProcessMarker
protected PlainEObjectMarker postProcessMarker(PlainEObjectMarker marker, org.eclipse.xtext.validation.Issue issue, org.eclipse.core.resources.IProject project)
Post-processes the marker being created from the given issue- Parameters:
marker
- The marker to post-process. May not benull
issue
- The original issue. May not benull
project
- The target project. May not benull
- Returns:
- The marker being supplied via arguments or a new substitute marker. May not be
null
-
-