btnEnableLive = new Button( cmpDetail, SWT.CHECK ); { GridData gd = new GridData( ); gd.horizontalSpan = 3; btnEnableLive.setLayoutData( gd ); btnEnableLive.setText( Messages.getString( "TaskSelectData.Label.EnableLivePreview" ) ); btnEnableLive.setSelection( ChartPreviewPainter.isLivePreviewEnabled( ) ); btnEnableLive.addSelectionListener( this ); }
	private void createDataSetArea( Composite parent )	{		Composite cmpDataSet = ChartUIUtil.createCompositeWrapper( parent );		{			cmpDataSet.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );		}		Label label = new Label( cmpDataSet, SWT.NONE );		{			label.setText( Messages.getString( "TaskSelectData.Label.SelectDataSet" ) ); //$NON-NLS-1$			label.setFont( JFaceResources.getBannerFont( ) );		}		Composite cmpDetail = new Composite( cmpDataSet, SWT.NONE );		{			GridLayout gridLayout = new GridLayout( 3, false );			gridLayout.marginWidth = 10;			gridLayout.marginHeight = 0;			cmpDetail.setLayout( gridLayout );			cmpDetail.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );		}		Composite comp = ChartUIUtil.createCompositeWrapper( cmpDetail );		btnUseReportData = new Button( comp, SWT.RADIO );		btnUseReportData.setText( Messages.getString( "TaskSelectData.Label.UseReportData" ) ); //$NON-NLS-1$		btnUseReportData.addSelectionListener( this );		btnUseDataSet = new Button( comp, SWT.RADIO );		btnUseDataSet.setText( Messages.getString( "TaskSelectData.Label.UseDataSet" ) ); //$NON-NLS-1$		btnUseDataSet.addSelectionListener( this );		cmbDataSet = new Combo( cmpDetail, SWT.DROP_DOWN | SWT.READ_ONLY );		cmbDataSet.setLayoutData( new GridData( GridData.VERTICAL_ALIGN_END				| GridData.FILL_HORIZONTAL ) );		cmbDataSet.addSelectionListener( this );		btnNewData = new Button( cmpDetail, SWT.NONE );		{			btnNewData.setLayoutData( new GridData( GridData.VERTICAL_ALIGN_END ) );			btnNewData.setText( Messages.getString( "TaskSelectData.Label.CreateNew" ) ); //$NON-NLS-1$			btnNewData.setToolTipText( Messages.getString( "TaskSelectData.Tooltip.CreateNewDataset" ) ); //$NON-NLS-1$			btnNewData.addSelectionListener( this );		}		btnEnableLive = new Button( cmpDetail, SWT.CHECK );		{			GridData gd = new GridData( );			gd.horizontalSpan = 3;			btnEnableLive.setLayoutData( gd );			btnEnableLive.setText( Messages.getString( "TaskSelectData.Label.EnableLivePreview" ) ); //$NON-NLS-1$			btnEnableLive.setSelection( ChartPreviewPainter.isLivePreviewEnabled( ) );			btnEnableLive.addSelectionListener( this );		}	}