Label la = new Label( choicePanel, SWT.NONE ); la.setText( "Choose Scope: " );  Combo cbType = new Combo( choicePanel, SWT.DROP_DOWN | SWT.READ_ONLY );
la.setText( "Choose: " ); cbType = new Combo( cBottom, SWT.DROP_DOWN | SWT.READ_ONLY );
	public static void main( String[] args )	{		JavaScriptViewer jsViewer = new JavaScriptViewer( );		Display d = Display.getDefault( );		Shell sh = new Shell( Display.getDefault( ) );		sh.setSize( 500, 400 );		sh.setLayout( new GridLayout( ) );		sh.setText( jsViewer.getClass( ).getName( ) + " [device="//$NON-NLS-1$				+ jsViewer.idr.getClass( ).getName( )				+ "]" );//$NON-NLS-1$		Canvas cCenter = new Canvas( sh, SWT.NONE );		cCenter.setLayoutData( new GridData( GridData.FILL_BOTH ) );		cCenter.addPaintListener( jsViewer );		description = new Label( sh, SWT.NONE );		description.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );		description.setText( "beforeDrawAxisLabel( Axis, Label, IChartScriptContext )" //$NON-NLS-1$				+ "\nbeforeDrawAxisTitle( Axis, Label, IChartScriptContext )" ); //$NON-NLS-1$		Composite choicePanel = new Composite( sh, SWT.NONE );		choicePanel.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );		choicePanel.setLayout( new RowLayout( ) );		Label la = new Label( choicePanel, SWT.NONE );		la.setText( "Choose Scope: " );//$NON-NLS-1$		Combo cbType = new Combo( choicePanel, SWT.DROP_DOWN | SWT.READ_ONLY );		cbType.add( "Axis" );//$NON-NLS-1$		cbType.add( "DataPoints" );//$NON-NLS-1$		cbType.add( "Marker" );//$NON-NLS-1$		cbType.add( "Series" );//$NON-NLS-1$		cbType.add( "Series Title" ); //$NON-NLS-1$		cbType.add( "Block" );//$NON-NLS-1$		cbType.add( "Legend" ); //$NON-NLS-1$		cbType.select( 0 );		Button btn = new Button( choicePanel, SWT.NONE );		btn.setText( "Update" );//$NON-NLS-1$		btn.addSelectionListener( jsViewer );		jsViewer.cb = cbType;		jsViewer.ca = cCenter;		sh.open( );		while ( !sh.isDisposed( ) )		{			if ( !d.readAndDispatch( ) )			{				d.sleep( );			}		}	}