lblAggregate.setEnabled(bEnableUI & !cmbType.getText().equals("Text")); cmbAggregate.setEnabled(bEnableUI & !cmbType.getText().equals("Text"));
    private void populateLists()    {        SeriesGrouping grouping = getGrouping();        // Populate grouping type combo        cmbType.add("Text"); //$NON-NLS-1$        cmbType.add("Number"); //$NON-NLS-1$        cmbType.add("Date/Time"); //$NON-NLS-1$        if (grouping.getGroupType() != null)        {            cmbType.setText(getGrouping().getGroupType());        }        else        {            cmbType.select(0);        }        // Populate grouping unit combo (applicable only if type is Date/Time        cmbUnit.add("Seconds"); //$NON-NLS-1$        cmbUnit.add("Minutes"); //$NON-NLS-1$        cmbUnit.add("Hours"); //$NON-NLS-1$        cmbUnit.add("Days"); //$NON-NLS-1$        cmbUnit.add("Weeks"); //$NON-NLS-1$        cmbUnit.add("Months"); //$NON-NLS-1$        cmbUnit.add("Quarters"); //$NON-NLS-1$        cmbUnit.add("Years"); //$NON-NLS-1$        if (grouping.getGroupType() != null && grouping.getGroupType().equals("Date/Time") //$NON-NLS-1$            && grouping.getGroupingUnit() != null)        {            cmbUnit.setText(grouping.getGroupingUnit());        }        else        {            cmbUnit.select(0);        }        // Populate grouping aggregate expression combo        cmbAggregate.add("Sum"); //$NON-NLS-1$        cmbAggregate.add("Average"); //$NON-NLS-1$        if (grouping.getAggregateExpression() != null)        {            cmbAggregate.setText(grouping.getAggregateExpression());        }        cmbAggregate.select(0);    }