public void widgetSelected(SelectionEvent e) { Object oSource = e.getSource(); if (oSource.equals(btnEllipsis)) {  FontDefinitionDialog fontDlg = new FontDefinitionDialog(this.getShell(), fdCurrent, cdCurrent); fdCurrent = fontDlg.getFontDefinition(); cdCurrent = fontDlg.getFontColor(); cnvSelection.setFontDefinition(fdCurrent); cnvSelection.redraw(); fireEvent(); } }
public void widgetSelected( SelectionEvent e ) { Object oSource = e.getSource( ); if ( oSource.equals( btnEllipsis ) ) {  FontDefinitionDialog fontDlg = new FontDefinitionDialog( this.getShell( ), fdCurrent, cdCurrent ); if ( !fontDlg.wasCancelled( ) ) { fdCurrent = fontDlg.getFontDefinition( ); cdCurrent = fontDlg.getFontColor( ); cnvSelection.setFontDefinition( fdCurrent ); cnvSelection.redraw( ); fireEvent( ); } } }
    public void widgetSelected(SelectionEvent e)    {        Object oSource = e.getSource();        if (oSource.equals(btnEllipsis))        {            // Launch the font selection dialog            FontDefinitionDialog fontDlg = new FontDefinitionDialog(this.getShell(), fdCurrent, cdCurrent);            fdCurrent = fontDlg.getFontDefinition();            cdCurrent = fontDlg.getFontColor();            cnvSelection.setFontDefinition(fdCurrent);            cnvSelection.redraw();            fireEvent();        }    }