Program: 75478
Project: 75478
Buggy source:
private void createSortingArea(Composite parent){
  sorttingArea=new Composite(parent,SWT.NONE);
  GridData sorttingAreaGridData=new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_END);
  sorttingAreaGridData.horizontalSpan=2;
  sorttingArea.setLayoutData(sorttingAreaGridData);
  sorttingArea.setLayout(UIUtil.createGridLayoutWithoutMargin(1,false));
  Group sortGroup=new Group(sorttingArea,SWT.NONE);
  sortGroup.setText(LABEL_SORT_GROUP);
  sortGroup.setLayout(new GridLayout(2,false));
  sortGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  Composite sortKeyArea=new Composite(sortGroup,SWT.NONE);
  sortKeyArea.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  sortKeyArea.setLayout(new GridLayout(2,false));
  sortKeyLabel=new Label(sortKeyArea,SWT.NONE);
  sortKeyLabel.setText(LABEL_SORT_KEY);
  sortKeyChooser=new Combo(sortKeyArea,SWT.BORDER);
  sortKeyChooser.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  sortKeyChooser.add(CHOICE_NONE);
  sortKeyChooser.add(CHOICE_DISPLAY_TEXT);
  sortKeyChooser.add(CHOICE_VALUE_COLUMN);
  sortKeyChooser.setText(CHOICE_NONE);
  sortKeyChooser.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    SelectionEvent e){
    }
    public void widgetSelected(    SelectionEvent e){
      if (!((Combo)e.widget).getText().equals(CHOICE_NONE)) {
        sortDirectionLabel.setEnabled(true);
        sortDirectionChooser.setEnabled(true);
        distinct.setEnabled(true);
      }
 else {
        sortDirectionLabel.setEnabled(false);
        sortDirectionChooser.setEnabled(false);
        distinct.setEnabled(false);
      }
    }
  }
);
  Composite sortDirectionArea=new Composite(sortGroup,SWT.NONE);
  sortDirectionArea.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  sortDirectionArea.setLayout(new GridLayout(2,false));
  sortDirectionLabel=new Label(sortDirectionArea,SWT.NONE);
  sortDirectionLabel.setText(LABEL_SORT_KEY);
  sortDirectionChooser=new Combo(sortDirectionArea,SWT.BORDER);
  sortDirectionChooser.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  sortDirectionChooser.add(CHOICE_ASCENDING);
  sortDirectionChooser.add(CHOICE_DESCENDING);
  sortDirectionChooser.setText(CHOICE_ASCENDING);
  Composite distinctBtnArea=new Composite(sortGroup,SWT.NONE);
  distinctBtnArea.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  distinctBtnArea.setLayout(new GridLayout());
  distinct=new Button(distinctBtnArea,SWT.CHECK);
  distinct.setText(CHECKBOX_DISTINCT);
  distinct.setSelection(true);
}

Fixed version (ground truth):
private void createSortingArea(Composite parent){
  sorttingArea=new Composite(parent,SWT.NONE);
  GridData sorttingAreaGridData=new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_END);
  sorttingAreaGridData.horizontalSpan=2;
  sorttingArea.setLayoutData(sorttingAreaGridData);
  sorttingArea.setLayout(UIUtil.createGridLayoutWithoutMargin(1,false));
  Group sortGroup=new Group(sorttingArea,SWT.NONE);
  sortGroup.setText(LABEL_SORT_GROUP);
  sortGroup.setLayout(new GridLayout(2,false));
  sortGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  Composite sortKeyArea=new Composite(sortGroup,SWT.NONE);
  sortKeyArea.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  sortKeyArea.setLayout(new GridLayout(2,false));
  sortKeyLabel=new Label(sortKeyArea,SWT.NONE);
  sortKeyLabel.setText(LABEL_SORT_KEY);
  sortKeyChooser=new Combo(sortKeyArea,SWT.BORDER);
  sortKeyChooser.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  sortKeyChooser.add(CHOICE_NONE);
  sortKeyChooser.add(CHOICE_DISPLAY_TEXT);
  sortKeyChooser.add(CHOICE_VALUE_COLUMN);
  sortKeyChooser.setText(CHOICE_NONE);
  sortKeyChooser.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    SelectionEvent e){
    }
    public void widgetSelected(    SelectionEvent e){
      if (!((Combo)e.widget).getText().equals(CHOICE_NONE)) {
        sortDirectionLabel.setEnabled(true);
        sortDirectionChooser.setEnabled(true);
        distinct.setEnabled(true);
      }
 else {
        sortDirectionLabel.setEnabled(false);
        sortDirectionChooser.setEnabled(false);
        distinct.setEnabled(false);
      }
    }
  }
);
  Composite sortDirectionArea=new Composite(sortGroup,SWT.NONE);
  sortDirectionArea.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  sortDirectionArea.setLayout(new GridLayout(2,false));
  sortDirectionLabel=new Label(sortDirectionArea,SWT.NONE);
  sortDirectionLabel.setText(LABEL_SORT_DIRECTION);
  sortDirectionChooser=new Combo(sortDirectionArea,SWT.BORDER);
  sortDirectionChooser.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  sortDirectionChooser.add(CHOICE_ASCENDING);
  sortDirectionChooser.add(CHOICE_DESCENDING);
  sortDirectionChooser.setText(CHOICE_ASCENDING);
  Composite distinctBtnArea=new Composite(sortGroup,SWT.NONE);
  distinctBtnArea.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  distinctBtnArea.setLayout(new GridLayout());
  distinct=new Button(distinctBtnArea,SWT.CHECK);
  distinct.setText(CHECKBOX_DISTINCT);
  distinct.setSelection(true);
}