bWasCancelled = true;
bWasCancelled = false;
    public void widgetSelected(SelectionEvent e)    {        if (e.getSource().equals(cbCyclic))        {            gCurrent.setCyclic(cbCyclic.getSelection());        }        else if (e.getSource().equals(btnAccept))        {            bWasCancelled = true;            shell.dispose();        }        else if (e.getSource().equals(btnCancel))        {            gCurrent = gBackup;            shell.dispose();        }    }