blob: 02b3879adfbb09ef0b9ae723c1ffa294b91581f1 [file] [log] [blame]
/**
* This file was copied and re-packaged automatically by
* org.eclipse.ocl.examples.build.GenerateAutoCSModels.mwe2
* from
* ..\..\..\org.eclipse.qvtd\plugins\org.eclipse.qvtd.runtime\src\org\eclipse\qvtd\runtime\internal\cs2as\CS2ASDiagnostic.java
*
* Do not edit this file.
*/
/*******************************************************************************
* Copyright (c) 2015 Willink Transformations Ltd, University of York 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 (UoY) - Initial API and implementation
*******************************************************************************/
package org.eclipse.ocl.xtext.base.cs2as.tx;
import org.eclipse.emf.common.util.BasicDiagnostic;
import org.eclipse.emf.common.util.Diagnostic;
import org.eclipse.emf.ecore.EObject;
public class CS2ASDiagnostic extends BasicDiagnostic {
private EObject csObject;
public CS2ASDiagnostic(EObject csObject, int severity, String source, int code, String message) {
super(severity, source, code, message, null);
this.csObject = csObject;
}
/**
* A simple (no source, code) CS2AS error diagnostic
* @param csObject the source CSObject
* @param message the erroneus situation
*/
public CS2ASDiagnostic(EObject csObject, String message) {
this(csObject, Diagnostic.ERROR, null, 0, message);
}
public EObject getCSObject() {
return csObject;
}
}