Java Code Examples for org.eclipse.xtext.diagnostics.DiagnosticMessage#getMessage()

The following examples show how to use org.eclipse.xtext.diagnostics.DiagnosticMessage#getMessage() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractUnresolvableReferenceWithNode.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
protected Resource.Diagnostic createDiagnostic(DiagnosticMessage message) {
	Diagnostic diagnostic = new XtextLinkingDiagnostic(
			node, 
			message.getMessage(),
			message.getIssueCode(), message.getIssueData());
	return diagnostic;
}
 
Example 2
Source File: AbstractSCTResource.java    From statecharts with Eclipse Public License 1.0 5 votes vote down vote up
protected void createDiagnostic(Triple<EObject, EReference, INode> triple) {
	SpecificationElement specificationElement = EcoreUtil2.getContainerOfType(triple.getFirst(),
			SpecificationElement.class);
	DiagnosticMessage message = createDiagnosticMessage(triple);
	Diagnostic diagnostic = new XtextLinkingDiagnostic(triple.getThird(), message.getMessage(),
			message.getIssueCode(), message.getIssueData());
	linkingDiagnostics.put(specificationElement, diagnostic);

}
 
Example 3
Source File: ASTStructureDiagnosticProducer.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
@Override
protected Diagnostic createDiagnostic(DiagnosticMessage message) {
	return new XtextLinkingDiagnostic(getNode(), message.getMessage(), message.getIssueCode(),
			message.getIssueData());
}
 
Example 4
Source File: TransformationDiagnosticsProducer.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
@Override
protected Diagnostic createDiagnostic(DiagnosticMessage message) {
	return new TransformationDiagnostic(getNode(), message.getMessage(), lastError);
}
 
Example 5
Source File: LazyLinkingResource.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
protected Diagnostic createDiagnostic(Triple<EObject, EReference, INode> triple, DiagnosticMessage message) {
	Diagnostic diagnostic = new XtextLinkingDiagnostic(triple.getThird(), message.getMessage(),
			message.getIssueCode(), message.getIssueData());
	return diagnostic;
}
 
Example 6
Source File: LinkingDiagnosticProducer.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
@Override
protected Diagnostic createDiagnostic(DiagnosticMessage message) {
	return new XtextLinkingDiagnostic(getNode(), message.getMessage(), message.getIssueCode(), message.getIssueData());
}