btnEnablePreview.setEnabled( false );
btnEnablePreview.setSelection( ChartPreviewPainter.isProcessorEnabled( ) ); btnEnablePreview.addSelectionListener( this );
	public void getComponent( Composite parent )	{		cmpContent = new Composite( parent, SWT.NONE );		{			GridLayout glContent = new GridLayout( 3, true );			cmpContent.setLayout( glContent );			GridData gd = new GridData( GridData.FILL_BOTH );			cmpContent.setLayoutData( gd );		}		Composite cmpBasic = new Composite( cmpContent, SWT.NONE );		{			cmpBasic.setLayout( new GridLayout( 3, false ) );			GridData gd = new GridData( GridData.FILL_HORIZONTAL );			gd.horizontalSpan = 2;			cmpBasic.setLayoutData( gd );		}		Label lblTitle = new Label( cmpBasic, SWT.NONE );		{			lblTitle.setText( Messages.getString( "ChartSheetImpl.Label.ChartTitle" ) ); //$NON-NLS-1$		}		List keys = null;		if ( serviceprovider != null )		{			keys = serviceprovider.getRegisteredKeys( );		}		txtTitle = new ExternalizedTextEditorComposite( cmpBasic,				SWT.BORDER,				-1,				-1,				keys,				serviceprovider,				getChart( ).getTitle( ).getLabel( ).getCaption( ).getValue( ) );		{			GridData gdTXTTitle = new GridData( GridData.FILL_HORIZONTAL );			gdTXTTitle.horizontalSpan = 2;			txtTitle.setLayoutData( gdTXTTitle );			txtTitle.addListener( this );		}		Label lblBackground = new Label( cmpBasic, SWT.NONE );		lblBackground.setText( Messages.getString( "ChartSheetImpl.Label.Background" ) ); //$NON-NLS-1$		cmbBackground = new FillChooserComposite( cmpBasic,				SWT.NONE,				getChart( ).getBlock( ).getBackground( ),				true,				true );		{			GridData gridData = new GridData( GridData.FILL_HORIZONTAL );			gridData.horizontalSpan = 2;			cmbBackground.setLayoutData( gridData );			cmbBackground.addListener( this );		}		new Label( cmpBasic, SWT.NONE ).setText( Messages.getString( "ChartSheetImpl.Label.Outline" ) ); //$NON-NLS-1$		btnVisible = new Button( cmpBasic, SWT.CHECK );		{			GridData gridData = new GridData( );			gridData.horizontalSpan = 2;			btnVisible.setLayoutData( gridData );			btnVisible.setText( Messages.getString( "ChartSheetImpl.Label.Visible" ) ); //$NON-NLS-1$			btnVisible.setSelection( getChart( ).getBlock( )					.getOutline( )					.isVisible( ) );			btnVisible.addSelectionListener( this );		}		new Label( cmpBasic, SWT.NONE ).setText( Messages.getString( "ChartSheetImpl.Label.ColorBy" ) ); //$NON-NLS-1$		cmbColorBy = new Combo( cmpBasic, SWT.DROP_DOWN | SWT.READ_ONLY );		{			GridData gridData = new GridData( GridData.FILL_HORIZONTAL );			gridData.horizontalSpan = 2;			cmbColorBy.setLayoutData( gridData );			NameSet ns = LiteralHelper.legendItemTypeSet;			cmbColorBy.setItems( ns.getDisplayNames( ) );			cmbColorBy.select( ns.getSafeNameIndex( getChart( ).getLegend( )					.getItemType( )					.getName( ) ) );			cmbColorBy.addSelectionListener( this );		}		new Label( cmpBasic, SWT.NONE ).setText( Messages.getString( "ChartSheetImpl.Label.Style" ) ); //$NON-NLS-1$		cmbStyle = new Combo( cmpBasic, SWT.DROP_DOWN | SWT.READ_ONLY );		{			GridData gridData = new GridData( GridData.FILL_HORIZONTAL );			cmbStyle.setLayoutData( gridData );			cmbStyle.addSelectionListener( this );		}		btnEnablePreview = new Button( cmpBasic, SWT.CHECK );		{			btnEnablePreview.setText( Messages.getString( "ChartSheetImpl.Label.EnableInPreview" ) ); //$NON-NLS-1$			btnEnablePreview.setEnabled( false );		}		populateLists( );		createButtonGroup( cmpContent );	}