public interface IErrorFeedback
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FRAGMENT_ERROR_TYPE
An error type for use in the generator fragments.
|
static java.lang.String |
JVMINFERENCE_ERROR_TYPE
An error type for use in the JvmModelInferrer.
|
Modifier and Type | Method and Description |
---|---|
void |
clearMarkers(org.eclipse.emf.ecore.resource.Resource resource,
java.lang.String markerType)
Clears all problem markers from the resource and all its descendants.
|
void |
reportError(org.eclipse.emf.ecore.EObject ctx,
java.lang.String message,
java.lang.String errorCode,
org.eclipse.xtext.diagnostics.Severity severity,
java.lang.String markerType)
Reports an error in a context object.
|
void |
reportError(org.eclipse.emf.ecore.resource.Resource resource,
java.lang.String message,
java.lang.String errorCode,
org.eclipse.xtext.diagnostics.Severity severity,
java.lang.String markerType)
Reports an error in a file, but is not associated to any specific line.
|
void |
reportErrorNoLocation(org.eclipse.emf.ecore.EObject ctx,
java.lang.String message,
java.lang.String errorCode,
org.eclipse.xtext.diagnostics.Severity severity,
java.lang.String markerType)
Reports an error in a context object.
|
static final java.lang.String JVMINFERENCE_ERROR_TYPE
FRAGMENT_ERROR_TYPE
, as the two
builds have different lifecycles, so cleaning has to be executed at different points.static final java.lang.String FRAGMENT_ERROR_TYPE
JVMINFERENCE_ERROR_TYPE
, as
the two builds have different lifecycles, so cleaning has to be executed at different points.void clearMarkers(org.eclipse.emf.ecore.resource.Resource resource, java.lang.String markerType)
resource
- a file, folder or project to clean all markers frommarkerType
- JVMINFERENCE_ERROR_TYPE
and FRAGMENT_ERROR_TYPE
are supportedvoid reportError(org.eclipse.emf.ecore.EObject ctx, java.lang.String message, java.lang.String errorCode, org.eclipse.xtext.diagnostics.Severity severity, java.lang.String markerType)
ctx
- message
- errorCode
- an arbitrary error codeseverity
- markerType
- JVMINFERENCE_ERROR_TYPE
and FRAGMENT_ERROR_TYPE
are supportedvoid reportErrorNoLocation(org.eclipse.emf.ecore.EObject ctx, java.lang.String message, java.lang.String errorCode, org.eclipse.xtext.diagnostics.Severity severity, java.lang.String markerType)
ctx
- message
- errorCode
- an arbitrary error codeseverity
- markerType
- JVMINFERENCE_ERROR_TYPE
and FRAGMENT_ERROR_TYPE
are supportedvoid reportError(org.eclipse.emf.ecore.resource.Resource resource, java.lang.String message, java.lang.String errorCode, org.eclipse.xtext.diagnostics.Severity severity, java.lang.String markerType)
resource
- message
- errorCode
- an arbitrary error codeseverity
- markerType
- JVMINFERENCE_ERROR_TYPE
and FRAGMENT_ERROR_TYPE
are supported