Bug 211186 [Regression] All chart script does not work [13]
Description: All chart script does not work. Build number: 2.3.0.v20071128-0800 Steps to reproduce: 1. New a chart, select the chart and change to Script tab, add some functions. 2. Preview. Expected result: The scripts works. Actual result: The scripts does not work. Error log: N/A
chart/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/ChartReportItemImpl.java
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.RhinoException;
/**
 * ChartReportItemImpl
 */
public final class ChartReportItemImpl extends ReportItem implements
		ICompatibleReportItem
{
	private Chart cm = null;
	private Object oDesignerRepresentation = null;
	private static final List liLegendPositions = new LinkedList( );
	private static final List liLegendAnchors = new LinkedList( );
	private static final List liChartDimensions = new LinkedList( );
	private transient DesignElementHandle handle = null;
	private static ILogger logger = Logger.getLogger( "org.eclipse.birt.chart.reportitem/trace" ); 
	static
	{
		
		
		
		List li = Position.VALUES;
		Iterator it = li.iterator( );
		IChoiceDefinition icd;
		String sName, sLowercaseName;
		while ( it.hasNext( ) )
		{
			sName = ( (Position) it.next( ) ).getName( );
			sLowercaseName = sName.toLowerCase( Locale.US );