Bug 140620 Chart scripting errors are ignored
Write a chart with an invalid script, the execution simply ignores the script. This makes it difficult to debug scripting. The error message is also not precise and needs improvements.
chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/swing/SwingEventHandler.java
LineAttributes la = (LineAttributes) obj;
				if ( highlighted )
				{
					int[] ls = new int[5];
					ls[0] = la.getThickness( );
					ls[1] = la.getColor( ).getRed( );
					ls[2] = la.getColor( ).getGreen( );
					ls[3] = la.getColor( ).getBlue( );
					ls[4] = la.getColor( ).getTransparency( );
					lineContext.add( ls );
					la.setThickness( 3 );
					la.getColor( ).set( 255, 255, 255, 127 );
					changed = true;
				}
				else
				{
					if ( idx < lineContext.size( ) )
					{
						Object context = lineContext.get( idx );
						if ( context instanceof int[]
								&& ( (int[]) context ).length > 4 )
						{
							int[] ls = (int[]) context;
							la.setThickness( ls[0] );
							la.getColor( ).setRed( ls[1] );
							la.getColor( ).setGreen( ls[2] );
							la.getColor( ).setBlue( ls[3] );
							la.getColor( ).setTransparency( ls[4] );
							changed = true;
						}