boolean bText = cmbType.getText().equals("Text");
    public void widgetSelected(SelectionEvent e)    {        Object oSource = e.getSource();        if (oSource.equals(cmbType))        {            getGrouping().setGroupType(cmbType.getText());            boolean bEnableUI = btnEnabled.getSelection();            boolean bText = cmbType.getText().equals("Text");            boolean bDate = cmbType.getText().equals("Date/Time");            lblUnit.setEnabled(bEnableUI & bDate);            cmbUnit.setEnabled(bEnableUI & bDate);            lblInterval.setEnabled(bEnableUI & !bText);            iscInterval.setEnabled(bEnableUI & !bText);            lblAggregate.setEnabled(bEnableUI & !bText);            cmbAggregate.setEnabled(bEnableUI & !bText);        }        else if (oSource.equals(cmbUnit))        {            getGrouping().setGroupingUnit(cmbUnit.getText());        }        else if (oSource.equals(cmbAggregate))        {            getGrouping().setAggregateExpression(cmbAggregate.getText());        }        else if (oSource.equals(btnEnabled))        {            getGrouping().setEnabled(btnEnabled.getSelection());            boolean bEnableUI = btnEnabled.getSelection();            lblType.setEnabled(bEnableUI);            cmbType.setEnabled(bEnableUI);            boolean bText = cmbType.getText().equals("Text");            boolean bDate = cmbType.getText().equals("Date/Time");            lblUnit.setEnabled(bEnableUI & bDate);            cmbUnit.setEnabled(bEnableUI & bDate);            lblInterval.setEnabled(bEnableUI & !bText);            iscInterval.setEnabled(bEnableUI & !bText);            lblAggregate.setEnabled(bEnableUI & !bText);            cmbAggregate.setEnabled(bEnableUI & !bText);        }    }