org.eclipse.xtext.linking.ILinkingDiagnosticMessageProvider.ILinkingDiagnosticContext Java Examples
The following examples show how to use
org.eclipse.xtext.linking.ILinkingDiagnosticMessageProvider.ILinkingDiagnosticContext.
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: LazyLinkingResource.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * @since 2.3 */ protected void createAndAddDiagnostic(Triple<EObject, EReference, INode> triple, IllegalNodeException ex) { if (isValidationDisabled()) return; ILinkingDiagnosticMessageProvider.ILinkingDiagnosticContext context = createDiagnosticMessageContext(triple); DiagnosticMessage message = linkingDiagnosticMessageProvider.getIllegalNodeMessage(context, ex); if (message != null) { List<Diagnostic> list = getDiagnosticList(message); Diagnostic diagnostic = createDiagnostic(triple, message); if (!list.contains(diagnostic)) list.add(diagnostic); } }
Example #2
Source File: TypeAwareLinkingDiagnosticContext.java From xtext-extras with Eclipse Public License 2.0 | 4 votes |
public TypeAwareLinkingDiagnosticContext(ILinkingDiagnosticContext delegate, IResolvedTypes resolvedTypes) { this.delegate = delegate; this.resolvedTypes = resolvedTypes; }
Example #3
Source File: LazyLinkingResource.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
protected DiagnosticMessage createDiagnosticMessage(Triple<EObject, EReference, INode> triple) { ILinkingDiagnosticMessageProvider.ILinkingDiagnosticContext context = createDiagnosticMessageContext(triple); DiagnosticMessage message = diagnosticMessageProvider.getUnresolvedProxyMessage(context); return message; }
Example #4
Source File: LazyLinkingResource.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
protected ILinkingDiagnosticContext createDiagnosticMessageContext(Triple<EObject, EReference, INode> triple) { return new DiagnosticMessageContext(triple, linkingHelper); }
Example #5
Source File: Linker.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
protected ILinkingDiagnosticContext createDiagnosticContext(EObject obj, EReference eRef, INode node) { return new LinkingDiagnosticContext(obj, eRef, node, linkingHelper); }
Example #6
Source File: AbstractSCTResource.java From statecharts with Eclipse Public License 1.0 | 4 votes |
protected DiagnosticMessage createDiagnosticMessage(Triple<EObject, EReference, INode> triple) { ILinkingDiagnosticMessageProvider.ILinkingDiagnosticContext context = createDiagnosticMessageContext(triple); DiagnosticMessage message = diagnosticMessageProvider.getUnresolvedProxyMessage(context); return message; }
Example #7
Source File: AbstractSCTResource.java From statecharts with Eclipse Public License 1.0 | 4 votes |
protected ILinkingDiagnosticContext createDiagnosticMessageContext(Triple<EObject, EReference, INode> triple) { return new DiagnosticMessageContext(triple, linkingHelper); }