io.sarl.lang.validation
Interface IConfigurableIssueSeveritiesProvider
All Known Implementing Classes:
ConfigurableIssueSeveritiesProvider
interface IConfigurableIssueSeveritiesProvider
A configurable issue severity provider.

This issue severity provider provides a public API for dynamically and programmatically changing the severity of the issues. For the Eclipse implementation of the provider, the standard severity provider gets the severity levels from the preferences. But, this configurable issue severity provider should not change the preferences. The contract is to have internal overriding of the preferences in this provider.

Usually, the implementation of this provider is a specific IssueSeveritiesProvider implementation.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
Since:
0.5
See:
org.eclipse.xtext.validation.IssueSeveritiesProvider
Action Summary
Modifier and type Action and description
abstract org.eclipse.xtext.validation.IssueSeverities getIssueSeverities(Resource)
Replies the issue severities for the given resource.
abstract void setAllSeverities(Severity)
Set the severities of all the issue codes to the given value.
abstract void setSeverity(String,Severity)
Set the severity of the given issue code.
Action Details
getIssueSeverities(Resource)
def getIssueSeverities(Resource) : org.eclipse.xtext.validation.IssueSeverities
Replies the issue severities for the given resource.
Parameters:
context - the context for determining the severities.
Returns:
the issue severities.
setAllSeverities(Severity)
def setAllSeverities(Severity)
Set the severities of all the issue codes to the given value.
Parameters:
severity - the severity level. If null, all the overridings are deleted.
setSeverity(String,Severity)
def setSeverity(String,Severity)
Set the severity of the given issue code.
Parameters:
code - the issue code.
severity - the severity level. If null, the overriding is deleted.