if ( cb.getSelectionIndex( ) == 7 )
if ( cbType.getSelectionIndex( ) == 7 )
	public void widgetSelected( SelectionEvent e )	{		int iSelection = cb.getSelectionIndex( );		switch ( iSelection )		{			case 0 :				cm = PrimitiveCharts.createBarChart( );				break;			case 1 :				cm = PrimitiveCharts.createMultiBarChart( );				break;			case 2 :				cm = PrimitiveCharts.createPieChart( );				break;			case 3 :				cm = PrimitiveCharts.createMultiPieChart( );				break;			case 4 :				cm = PrimitiveCharts.createLineChart( );				break;			case 5 :				cm = PrimitiveCharts.createStackedChart( );				break;			case 6 :				cm = PrimitiveCharts.createScatterChart( );				break;			case 7 :				cm = PrimitiveCharts.createStockChart( );				break;			case 8 :				cm = PrimitiveCharts.createAreaChart( );				break;		}		if ( cm instanceof ChartWithAxes )		{			cbTransposed.setEnabled( true );			cbLogarithmic.setEnabled( true );			cbPercent.setEnabled( true );			ChartWithAxes cwa = ( (ChartWithAxes) cm );			cwa.setTransposed( cbTransposed.getSelection( ) );			Axis ax = cwa.getPrimaryOrthogonalAxis( cwa.getPrimaryBaseAxes( )[0] );			if ( cbLogarithmic.getSelection( ) )			{				if ( ax.getType( ) == AxisType.LINEAR_LITERAL )				{					ax.setType( AxisType.LOGARITHMIC_LITERAL );				}			}			else			{				if ( ax.getType( ) == AxisType.LOGARITHMIC_LITERAL )				{					ax.setType( AxisType.LINEAR_LITERAL );				}			}			if ( cbPercent.getSelection( ) == true )			{				ax.setFormatSpecifier( JavaNumberFormatSpecifierImpl.create( "0'%'" ) );//$NON-NLS-1$			}			else			{				ax.setFormatSpecifier( null );			}		}		else if ( cm instanceof ChartWithoutAxes )		{			cbTransposed.setEnabled( false );			cbLogarithmic.setEnabled( false );			cbPercent.setEnabled( false );		}		if ( cb.getSelectionIndex( ) == 7 )		{			cm.setDimension( ChartDimension.TWO_DIMENSIONAL_LITERAL );		}		else		{			switch ( cbDimension.getSelectionIndex( ) )			{				case 0 :					cm.setDimension( ChartDimension.TWO_DIMENSIONAL_LITERAL );					break;				case 1 :					cm.setDimension( ChartDimension.TWO_DIMENSIONAL_WITH_DEPTH_LITERAL );					break;			}		}		ca.redraw( );	}