bCancelled = false;
    public void widgetSelected(SelectionEvent e)    {        Object oSource = e.getSource();        if (oSource.equals(btnBold))        {            fdCurrent.setBold(btnBold.getSelection());            updatePreview();        }        else if (oSource.equals(btnItalic))        {            fdCurrent.setItalic(btnItalic.getSelection());            updatePreview();        }        else if (oSource.equals(btnUnderline))        {            fdCurrent.setUnderline(btnUnderline.getSelection());            updatePreview();        }        else if (oSource.equals(cbStrikethru))        {            fdCurrent.setStrikethrough(cbStrikethru.getSelection());            updatePreview();        }        else if (oSource.equals(cbWrap))        {            fdCurrent.setWordWrap(cbWrap.getSelection());            updatePreview();        }        else if (oSource.equals(cmbFontNames))        {            fdCurrent.setName(cmbFontNames.getText());            updatePreview();        }        else if (oSource.equals(btnAccept))        {            shell.dispose();        }        else if (oSource.equals(btnCancel))        {            this.fdCurrent = this.fdBackup;            this.cdCurrent = this.cdBackup;            shell.dispose();        }        else if (oSource.equals(this.btnATopLeft))        {            fdCurrent.getAlignment().setHorizontalAlignment(HorizontalAlignment.LEFT_LITERAL);            fdCurrent.getAlignment().setVerticalAlignment(VerticalAlignment.TOP_LITERAL);            updatePreview();        }        else if (oSource.equals(this.btnACenterLeft))        {            fdCurrent.getAlignment().setHorizontalAlignment(HorizontalAlignment.LEFT_LITERAL);            fdCurrent.getAlignment().setVerticalAlignment(VerticalAlignment.CENTER_LITERAL);            updatePreview();        }        else if (oSource.equals(this.btnABottomLeft))        {            fdCurrent.getAlignment().setHorizontalAlignment(HorizontalAlignment.LEFT_LITERAL);            fdCurrent.getAlignment().setVerticalAlignment(VerticalAlignment.BOTTOM_LITERAL);            updatePreview();        }        else if (oSource.equals(this.btnATopCenter))        {            fdCurrent.getAlignment().setHorizontalAlignment(HorizontalAlignment.CENTER_LITERAL);            fdCurrent.getAlignment().setVerticalAlignment(VerticalAlignment.TOP_LITERAL);            updatePreview();        }        else if (oSource.equals(this.btnACenter))        {            fdCurrent.getAlignment().setHorizontalAlignment(HorizontalAlignment.CENTER_LITERAL);            fdCurrent.getAlignment().setVerticalAlignment(VerticalAlignment.CENTER_LITERAL);            updatePreview();        }        else if (oSource.equals(this.btnABottomCenter))        {            fdCurrent.getAlignment().setHorizontalAlignment(HorizontalAlignment.CENTER_LITERAL);            fdCurrent.getAlignment().setVerticalAlignment(VerticalAlignment.BOTTOM_LITERAL);            updatePreview();        }        else if (oSource.equals(this.btnATopRight))        {            fdCurrent.getAlignment().setHorizontalAlignment(HorizontalAlignment.RIGHT_LITERAL);            fdCurrent.getAlignment().setVerticalAlignment(VerticalAlignment.TOP_LITERAL);            updatePreview();        }        else if (oSource.equals(this.btnACenterRight))        {            fdCurrent.getAlignment().setHorizontalAlignment(HorizontalAlignment.RIGHT_LITERAL);            fdCurrent.getAlignment().setVerticalAlignment(VerticalAlignment.CENTER_LITERAL);            updatePreview();        }        else if (oSource.equals(this.btnABottomRight))        {            fdCurrent.getAlignment().setHorizontalAlignment(HorizontalAlignment.RIGHT_LITERAL);            fdCurrent.getAlignment().setVerticalAlignment(VerticalAlignment.BOTTOM_LITERAL);            updatePreview();        }    }