| /******************************************************************************* |
| * Copyright (c) 2011, 2018 Willink Transformations and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v2.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v20.html |
| * |
| * Contributors: |
| * E.D.Willink - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.ocl.xtext.base.services; |
| |
| import org.eclipse.emf.ecore.EObject; |
| import org.eclipse.emf.ecore.EReference; |
| import org.eclipse.ocl.xtext.base.cs2as.CS2AS; |
| import org.eclipse.xtext.diagnostics.DiagnosticMessage; |
| import org.eclipse.xtext.linking.impl.LinkingDiagnosticMessageProvider; |
| |
| public class BaseLinkingDiagnosticMessageProvider extends LinkingDiagnosticMessageProvider |
| { |
| @Override |
| public DiagnosticMessage getUnresolvedProxyMessage(ILinkingDiagnosticContext context) { |
| EObject csContext = context.getContext(); |
| String linkText = context.getLinkText(); |
| EReference eReference = context.getReference(); |
| assert (eReference != null) && (csContext != null) && (linkText != null); |
| return CS2AS.getUnresolvedProxyMessage(eReference, csContext, linkText); |
| } |
| } |