| /******************************************************************************* |
| * Copyright (c) 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 v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Adolfo Sanchez-Barbudo Herrera - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.qvtd.doc.linker; |
| |
| import java.util.List; |
| |
| import org.eclipse.emf.ecore.resource.Resource.Diagnostic; |
| import org.eclipse.xtext.resource.XtextSyntaxDiagnostic; |
| |
| public class LinkerUtil { |
| |
| public static boolean hasSyntaxError(List<Diagnostic> diagnostics) { |
| for (Diagnostic diagnostic : diagnostics) { |
| if (diagnostic instanceof XtextSyntaxDiagnostic) { |
| return true; |
| } |
| } |
| return false; |
| } |
| |
| } |