case 0 : cm = ScriptCharts.createJChart_Axis( ); description.setText( "beforeDrawAxisLabel( Axis, Label, IChartScriptContext )" + "\nbeforeDrawAxisTitle( Axis, Label, IChartScriptContext )" ); break; case 1 : cm = ScriptCharts.createJChart_DataPoints( ); description.setText( "beforeDrawDataPointLabel( DataPointHint, Label, IChartScriptContext )" ); break; case 2 : cm = ScriptCharts.createJChart_Marker( ); description.setText( "beforeDrawMarkerLine( Axis, MarkerLine, IChartScriptContext )" + "\nbeforeDrawMarkerRange( Axis, MarkerRange, IChartScriptContext )" ); break; case 3 : cm = ScriptCharts.createJChart_Series( ); description.setText( "beforeDrawSeries( Series, ISeriesRenderer, IChartScriptContext )" ); break; case 4 : cm = ScriptCharts.createJChart_SeriesTitle( ); description.setText( "beforeDrawSeriesTitle( Series, Label, IChartScriptContext )" ); break; case 5 : cm = ScriptCharts.createJChart_Block( ); description.setText( "beforeDrawBlock( Block, IChartScriptContext )" ); break; case 6 : cm = ScriptCharts.createJChart_Legend( ); description.setText( "beforeDrawLegendEntry( Label, IChartScriptContext )" ); break;
int iSelection = cbType.getSelectionIndex( ); switch ( iSelection ) { case 0 : cm = ScriptCharts.createJChart_Axis( ); description.setText( "beforeDrawAxisLabel( Axis, Label, IChartScriptContext )" + "\nbeforeDrawAxisTitle( Axis, Label, IChartScriptContext )" ); break; case 1 : cm = ScriptCharts.createJChart_DataPoints( ); description.setText( "beforeDrawDataPointLabel( DataPointHint, Label, IChartScriptContext )" ); break; case 2 : cm = ScriptCharts.createJChart_Marker( ); description.setText( "beforeDrawMarkerLine( Axis, MarkerLine, IChartScriptContext )" + "\nbeforeDrawMarkerRange( Axis, MarkerRange, IChartScriptContext )" ); break; case 3 : cm = ScriptCharts.createJChart_Series( ); description.setText( "beforeDrawSeries( Series, ISeriesRenderer, IChartScriptContext )" ); break; case 4 : cm = ScriptCharts.createJChart_SeriesTitle( ); description.setText( "beforeDrawSeriesTitle( Series, Label, IChartScriptContext )" ); break; case 5 : cm = ScriptCharts.createJChart_Block( ); description.setText( "beforeDrawBlock( Block, IChartScriptContext )" ); break; case 6 : cm = ScriptCharts.createJChart_Legend( ); description.setText( "beforeDrawLegendEntry( Label, IChartScriptContext )" ); break; } bNeedsGeneration = true; this.redraw( );
	public void widgetSelected( SelectionEvent e )	{		int iSelection = cb.getSelectionIndex( );		switch ( iSelection )		{			case 0 :				cm = ScriptCharts.createJChart_Axis( );				description.setText( "beforeDrawAxisLabel( Axis, Label, IChartScriptContext )" //$NON-NLS-1$						+ "\nbeforeDrawAxisTitle( Axis, Label, IChartScriptContext )" ); //$NON-NLS-1$				break;			case 1 :				cm = ScriptCharts.createJChart_DataPoints( );				description.setText( "beforeDrawDataPointLabel( DataPointHint, Label, IChartScriptContext )" ); //$NON-NLS-1$				break;			case 2 :				cm = ScriptCharts.createJChart_Marker( );				description.setText( "beforeDrawMarkerLine( Axis, MarkerLine, IChartScriptContext )" //$NON-NLS-1$						+ "\nbeforeDrawMarkerRange( Axis, MarkerRange, IChartScriptContext )" ); //$NON-NLS-1$				break;			case 3 :				cm = ScriptCharts.createJChart_Series( );				description.setText( "beforeDrawSeries( Series, ISeriesRenderer, IChartScriptContext )" ); //$NON-NLS-1$				break;			case 4 :				cm = ScriptCharts.createJChart_SeriesTitle( );				description.setText( "beforeDrawSeriesTitle( Series, Label, IChartScriptContext )" ); //$NON-NLS-1$				break;			case 5 :				cm = ScriptCharts.createJChart_Block( );				description.setText( "beforeDrawBlock( Block, IChartScriptContext )" ); //$NON-NLS-1$				break;			case 6 :				cm = ScriptCharts.createJChart_Legend( );				description.setText( "beforeDrawLegendEntry( Label, IChartScriptContext )" ); //$NON-NLS-1$				break;		}		ca.redraw( );	}