btnAxisTitle = new Button( cmp, SWT.TOGGLE ); { GridData gd = new GridData( GridData.FILL_HORIZONTAL ); btnAxisTitle.setLayoutData( gd ); btnAxisTitle.setText( Messages.getString( "AxisYSheetImpl.Label.AxisText" ) ); btnAxisTitle.addSelectionListener( this ); }
btnAxisTitle = createToggleButton( cmp, Messages.getString( "AxisYSheetImpl.Label.AxisText" ) ); btnAxisTitle.addSelectionListener( this );
	private void createButtonGroup( Composite parent )	{		Composite cmp = new Composite( parent, SWT.NONE );		{			cmp.setLayout( new GridLayout( 5, true ) );			GridData gridData = new GridData( GridData.FILL_HORIZONTAL );			gridData.horizontalSpan = 2;			gridData.grabExcessVerticalSpace = true;			gridData.verticalAlignment = SWT.END;			cmp.setLayoutData( gridData );		}		btnScale = new Button( cmp, SWT.TOGGLE );		{			GridData gd = new GridData( GridData.FILL_HORIZONTAL );			btnScale.setLayoutData( gd );			btnScale.setText( Messages.getString( "AxisYSheetImpl.Label.Scale" ) ); //$NON-NLS-1$			btnScale.addSelectionListener( this );		}		btnAxisTitle = new Button( cmp, SWT.TOGGLE );		{			GridData gd = new GridData( GridData.FILL_HORIZONTAL );			btnAxisTitle.setLayoutData( gd );			btnAxisTitle.setText( Messages.getString( "AxisYSheetImpl.Label.AxisText" ) ); //$NON-NLS-1$			btnAxisTitle.addSelectionListener( this );		}		btnGridlines = new Button( cmp, SWT.TOGGLE );		{			GridData gd = new GridData( GridData.FILL_HORIZONTAL );			btnGridlines.setLayoutData( gd );			btnGridlines.setText( Messages.getString( "AxisYSheetImpl.Label.Gridlines" ) ); //$NON-NLS-1$			btnGridlines.addSelectionListener( this );		}		btnMarkers = new Button( cmp, SWT.TOGGLE );		{			GridData gd = new GridData( GridData.FILL_HORIZONTAL );			btnMarkers.setLayoutData( gd );			btnMarkers.setText( Messages.getString( "AxisYSheetImpl.Label.Markers" ) ); //$NON-NLS-1$			btnMarkers.addSelectionListener( this );		}	}