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
null ),
				new ChartPropertyDefinitionImpl( null,
						"script", "property.script", false, 
						IPropertyType.STRING_TYPE,
						null,
						null,
						null ),
		};
	}
	public IMethodInfo[] getMethods( String scriptName )
	{
		if ( scriptName != null && scriptName.equals( "onRender" ) ) 
		{
			ScriptClassInfo info = new ScriptClassInfo( IChartEventHandler.class );
			List list = info.getMethods( );
			Collections.sort( list, new Comparator( ) {
				public int compare( Object arg0, Object arg1 )
				{
					if ( arg0 instanceof IMethodInfo
							&& arg1 instanceof IMethodInfo )
					{
						String name0 = ( (IMethodInfo) arg0 ).getName( );
						String name1 = ( (IMethodInfo) arg1 ).getName( );
						if ( name0.startsWith( "before" ) && name1.startsWith( "after" ) ) 
						{
							return -1;
						}
						if ( name0.startsWith( "after" ) && name1.startsWith( "before" ) ) 
						{
							return 1;