liacLines = new LineAttributesComposite( cmpLines, SWT.NONE, grid.getLineAttributes( ), true, true, true ); liacLines.addListener( this );
cmpLines = new Composite( cmpContent, SWT.NONE ); GridData gdCMPLines = new GridData( GridData.FILL_BOTH ); gdCMPLines.horizontalSpan = 2; cmpLines.setLayoutData( gdCMPLines ); cmpLines.setLayout( flLines );   liacLines = new LineAttributesComposite( cmpLines, SWT.NONE, context, grid.getLineAttributes( ), true, true, true ); liacLines.addListener( this );
	private void placeComponents( )	{		// Layout for entire composite		FillLayout flMain = new FillLayout( );		flMain.marginHeight = 4;		flMain.marginWidth = 2;		// Layout for content composite		GridLayout glContent = new GridLayout( );		glContent.verticalSpacing = 5;		glContent.horizontalSpacing = 5;		glContent.marginHeight = 0;		glContent.marginWidth = 0;		glContent.numColumns = 2;		// Layout for Ticks group		GridLayout glTicks = new GridLayout( );		glTicks.marginHeight = 4;		glTicks.marginWidth = 4;		glTicks.verticalSpacing = 2;		glTicks.horizontalSpacing = 5;		glTicks.numColumns = 2;		this.setLayout( flMain );		// Content Composite		cmpContent = new Composite( this, SWT.NONE );		cmpContent.setLayout( glContent );		// Grid Lines group				if (bLineGroupEnabled)		{		// Layout for Grid Lines group		FillLayout flLines = new FillLayout( );		flLines.marginHeight = 1;		flLines.marginWidth = 1;				cmpLines = new Composite( cmpContent, SWT.NONE );		GridData gdCMPLines = new GridData( GridData.FILL_BOTH );		gdCMPLines.horizontalSpan = 2;		cmpLines.setLayoutData( gdCMPLines );		cmpLines.setLayout( flLines );		// Line Attributes for Grid Lines		liacLines = new LineAttributesComposite( cmpLines,				SWT.NONE,				grid.getLineAttributes( ),				true,				true,				true );		liacLines.addListener( this );		}		// Ticks group		grpTicks = new Group( cmpContent, SWT.NONE );		GridData gdGRPTicks = new GridData( GridData.FILL_BOTH );		gdGRPTicks.horizontalSpan = 2;		grpTicks.setLayoutData( gdGRPTicks );		grpTicks.setLayout( glTicks );		grpTicks.setText( Messages.getString( "GridAttributesComposite.Lbl.Ticks" ) ); //$NON-NLS-1$		// Line Attributes for Ticks		liacTicks = new LineAttributesComposite( grpTicks,				SWT.NONE,				grid.getTickAttributes( ),				false,				false,				true );		GridData gdLIACTicks = new GridData( GridData.FILL_HORIZONTAL );		gdLIACTicks.horizontalSpan = 2;		liacTicks.setLayoutData( gdLIACTicks );		liacTicks.addListener( this );		// Tick Styles		lblStyle = new Label( grpTicks, SWT.NONE );		GridData gdLBLStyle = new GridData( );		gdLBLStyle.horizontalIndent = 4;		lblStyle.setLayoutData( gdLBLStyle );		lblStyle.setText( Messages.getString( "GridAttributesComposite.Lbl.Style" ) ); //$NON-NLS-1$		lblStyle.setEnabled( grid.getTickAttributes( ).isVisible( ) );		cmbTickStyle = new Combo( grpTicks, SWT.DROP_DOWN | SWT.READ_ONLY );		GridData gdCMBTickStyle = new GridData( GridData.FILL_HORIZONTAL );		cmbTickStyle.setLayoutData( gdCMBTickStyle );		cmbTickStyle.addSelectionListener( this );		cmbTickStyle.setEnabled( grid.getTickAttributes( ).isVisible( ) );		populateLists( );		setDefaultSelections( );	}