/**
 * 
 */
package edu.kit.iti.formal.pse.worthwhile.interpreter;

import edu.kit.iti.formal.pse.worthwhile.model.ast.Statement;
import edu.kit.iti.formal.pse.worthwhile.model.ast.util.AstNodeToStringHelper;

/**
 * The Class StatementInterpreterError.
 */
public class StatementInterpreterError extends InterpreterError {

	/**
	 * The statement.
	 */
	private Statement statement;

	/**
	 * The name of the error as shown in the UI.
	 */
	private String name;

	/**
	 * Sets the name of the error as it appears in the UI.
	 * 
	 * @param statement
	 *            the statement which produced the error
	 */
	public StatementInterpreterError(final Statement statement) {
		this.statement = statement;
		this.name = "Statement interpreter error";
	}

	/**
	 * Sets the name of the error as it appears in the UI.
	 * 
	 * @param statement
	 *            the statement which produced the error
	 * @param name
	 *            the name of the error as shown in the UI
	 */
	public StatementInterpreterError(final Statement statement,
			final String name) {
		this.statement = statement;
		this.name = name;
	}

	/**
	 * Gets the statement.
	 * 
	 * @return the statement
	 */
	public final Statement getStatement() {
		// begin-user-code
		return statement;
		// end-user-code
	}

	/**
	 * Sets the statement.
	 * 
	 * @param statement
	 *            the statement to set
	 */
	public final void setStatement(final Statement statement) {
		// begin-user-code
		this.statement = statement;
		// end-user-code
	}

	/**
	 * Gets the description of the error.
	 * 
	 * @return the description
	 */
	@Override
	public final String getDescription() {
		// begin-user-code
		return this.name + " at statement: "
				+ AstNodeToStringHelper.toString(statement);
		// end-user-code
	}
}
@@ -1214,65 +1214,25 @@
 %7B%0A%09%09
-// begin-user-code%0A%09%09return statement;%0A%09%09// end-user-code
+return statement;
 %0A%09%7D%0A
@@ -1389,37 +1389,16 @@
 ment) %7B%0A
-%09%09// begin-user-code%0A
 %09%09this.s
@@ -1419,35 +1419,16 @@
 tement;%0A
-%09%09// end-user-code%0A
 %09%7D%0A%0A%09/**
@@ -1560,29 +1560,8 @@
 ) %7B%0A
-%09%09// begin-user-code%0A
 %09%09re
@@ -1595,16 +1595,16 @@
 ment: %22%0A
+
 %09%09%09%09+ As
@@ -1648,27 +1648,8 @@
 t);%0A
-%09%09// end-user-code%0A
 %09%7D%0A%7D

Remove stupid generated comments