paintCanvas.addControlListener( preview );
	private void placeComponent( )	{		/** * Create principal GUI layout elements ** */		mainComposite.setLayoutData( new GridData( GridData.FILL_VERTICAL				| GridData.FILL_HORIZONTAL ) );		mainComposite.setLayout( new GridLayout( 3, true ) );		// selector frame		Group sGroup = new Group( mainComposite, SWT.NONE );		sGroup.setLayout( new GridLayout( ) );		sGroup.setLayoutData( new GridData( GridData.FILL_VERTICAL				| GridData.FILL_HORIZONTAL ) );		sGroup.setText( "Select Examples" ); //$NON-NLS-1$		createTree( sGroup );		// preview and description frame		Composite rComp = new Composite( mainComposite, SWT.NONE );		GridData gridData = new GridData( GridData.FILL_VERTICAL				| GridData.FILL_HORIZONTAL );		gridData.horizontalSpan = 2;		rComp.setLayout( new GridLayout( ) );		rComp.setLayoutData( gridData );		// preview canvas		Group preGroup = new Group( rComp, SWT.NONE );		preGroup.setLayout( new GridLayout( ) );		preGroup.setLayoutData( new GridData( GridData.FILL_VERTICAL				| GridData.FILL_HORIZONTAL ) );		preGroup.setText( "Preview" ); //$NON-NLS-1$		gridData = new GridData( GridData.FILL_VERTICAL				| GridData.HORIZONTAL_ALIGN_FILL );		preGroup.setLayoutData( gridData );		paintCanvas = new Canvas( preGroup, SWT.BORDER );		paintCanvas.setLayoutData( new GridData( GridData.FILL_BOTH ) );		paintCanvas.setBackground( Display.getDefault( )				.getSystemColor( SWT.COLOR_WHITE ) );		preview = new ChartPreview( );		paintCanvas.addPaintListener( preview );		preview.setPreview( paintCanvas );		// description		Group desGroup = new Group( rComp, SWT.NONE );		desGroup.setLayout( new GridLayout( ) );		gridData = new GridData( GridData.FILL_HORIZONTAL );		gridData.heightHint = 60;		desGroup.setLayoutData( gridData );		desGroup.setText( "Description" ); //$NON-NLS-1$		description = new Label( desGroup, SWT.WRAP );		description.setLayoutData( new GridData( GridData.FILL_VERTICAL				| GridData.FILL_HORIZONTAL ) );		description.setText( icp.getDefaultDescription( ) );	}