btnType.setText( subType.getName( ) ); btnType.setData( subType.getDescription( ) );
btnType.setData( subType.getName( ) );
	private void createGroups( Vector vSubTypes )	{		vSubTypeNames = new Vector( );		if ( cmpTypeButtons != null && !cmpTypeButtons.isDisposed( ) )		{			// Remove existing buttons			cmpTypeButtons.dispose( );		}		cmpTypeButtons = new Composite( cmpSubTypes, SWT.NONE );		RowLayout rowLayout = new RowLayout( );		rowLayout.marginTop = 0;		rowLayout.marginLeft = 0;		rowLayout.marginBottom = 12;		rowLayout.marginRight = 12;		rowLayout.spacing = 4;		cmpTypeButtons.setLayout( rowLayout );		// Add new buttons for this type		for ( int iC = 0; iC < vSubTypes.size( ); iC++ )		{			IChartSubType subType = (IChartSubType) vSubTypes.get( iC );			vSubTypeNames.add( subType.getName( ) );			Button btnType = new Button( cmpTypeButtons, SWT.TOGGLE );			btnType.setText( subType.getName( ) );			btnType.setData( subType.getDescription( ) );			btnType.setImage( subType.getImage( ) );			btnType.setLayoutData( rowData );			btnType.addSelectionListener( this );			btnType.setToolTipText( subType.getDescription( ) );			btnType.getImage( ).setBackground( btnType.getBackground( ) );			btnType.setVisible( true );			cmpTypeButtons.layout( true );		}		cmpTypeButtons.setLayoutData( new GridData( GridData.FILL_BOTH ) );		cmpSubTypes.layout( true );	}