chkBox.setSelection( readCheatSheetProperty( ) );
chkBox.setSelection( ReportPlugin.readCheatSheetPreference( ) );
	public void createControl( Composite parent )	{		Composite composite = new Composite( parent, SWT.NONE );		GridLayout gridLayout = new GridLayout( );		gridLayout.numColumns = 2;		gridLayout.marginHeight = 10;		gridLayout.marginWidth = 10;		gridLayout.horizontalSpacing = 10;		gridLayout.verticalSpacing = 10;		composite.setLayout( gridLayout );		Label label0 = new Label( composite, SWT.NONE );		label0.setText( MESSAGE_REPORT_TEMPLATES );		Label previewLabel = new Label( composite, SWT.NONE );		previewLabel.setText( MESSAGE_PREVIEW );		templateList = new List( composite, SWT.BORDER );		for ( int i = 0; i < templates.length; i++ )		{			templateList.add( templates[i].name );		}		GridData data = new GridData( GridData.BEGINNING				| GridData.FILL_VERTICAL );		data.widthHint = 170;		templateList.setLayoutData( data );		Composite previewPane = new Composite( composite, 0 );		data = new GridData( GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL );		previewPane.setLayoutData( data );		gridLayout = new GridLayout( );		gridLayout.verticalSpacing = 10;		previewPane.setLayout( gridLayout );		previewCanvas = new ImageCanvas( previewPane, SWT.BORDER				| SWT.H_SCROLL				| SWT.V_SCROLL );		data = new GridData( GridData.FILL_VERTICAL | GridData.FILL_HORIZONTAL );		data.grabExcessHorizontalSpace = true;		data.grabExcessVerticalSpace = true;		previewCanvas.setLayoutData( data );		Label descriptionTitle = new Label( previewPane, SWT.NONE );		descriptionTitle.setText( MESSAGE_DESCRIPTION );		data = new GridData( GridData.FILL_HORIZONTAL );		descriptionTitle.setLayoutData( data );		description = new Label( previewPane, SWT.WRAP );		data = new GridData( GridData.FILL_HORIZONTAL );		data.horizontalIndent = 20;		description.setLayoutData( data );		chkBox = new Button( composite, SWT.CHECK );		chkBox.setText( MESSAGE_SHOW_CHEATSHEET );		chkBox.setSelection( readCheatSheetProperty( ) );		chkBox.addSelectionListener( new SelectionListener( ) {			public void widgetSelected( SelectionEvent e )			{				setCheatSheetProperty( chkBox.getSelection( ) );			}			public void widgetDefaultSelected( SelectionEvent e )			{				setCheatSheetProperty( chkBox.getSelection( ) );			}		} );		hookListeners( );		templateList.select( 0 );		templateListener.handleEvent( new Event( ) );		setControl( composite );	}