Bug 209309 Show javascript errorposition
If a javascript expression has errors, the error message is shown in the last lines in the preview tab. But there is no info where the error occurs. In most cases you had to guess the error location. It would be very helpfull to display the error location.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExecutionContext.java
import org.mozilla.javascript.WrapFactory;
import com.ibm.icu.util.TimeZone;
import com.ibm.icu.util.ULocale;
/**
 * Captures the report execution context. This class is needed for accessing
 * global information during execution as well as for for scripting. It
 * implements the <code>report</code> Javascript object, as well as other
 * objects such as <code>report.params</code>,<code>report.config</code>,
 * <code>report.design</code>, etc.
 * 
 */
public class ExecutionContext
{
	public static final String PROPERTYSEPARATOR = File.pathSeparator;
	
	/**
	 * how many errors or exceptions will be registered.
	 */
	protected static final int ERROR_TOTAL_COUNT = 60;
	
	
	private IReportEngine engine;
	/**
	 * task which uses this context.
	 */
	private EngineTask task;
	/**
	 * logger used to log out the excepitons
	 */
	private Logger log;