Program: 75365
Project: 75365
Buggy source:
private void switchToDynamic(){
  Composite composite=new Composite(valueArea,SWT.NONE);
  GridData gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=2;
  composite.setLayoutData(gd);
  composite.setLayout(UIUtil.createGridLayoutWithoutMargin(3,false));
  createLabel(composite,LABEL_SELECT_DATA_SET);
  dataSetChooser=new Combo(composite,SWT.BORDER | SWT.READ_ONLY);
  dataSetChooser.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  dataSetChooser.addSelectionListener(new SelectionAdapter(){
    public void widgetDefaultSelected(    SelectionEvent e){
      refreshColumns(false);
    }
    public void widgetSelected(    SelectionEvent e){
      refreshColumns(false);
    }
  }
);
  createDataSet=new Button(composite,SWT.PUSH);
  createDataSet.setText(BUTTON_CREATE_DATA_SET);
  setButtonLayoutData(createDataSet);
  createDataSet.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      new NewDataSetAction().run();
      refreshDataSets();
    }
  }
);
  createLabel(composite,LABEL_SELECT_VALUE_COLUMN);
  columnChooser=new Combo(composite,SWT.BORDER | SWT.DROP_DOWN);
  columnChooser.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  columnChooser.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      updateButtons();
    }
  }
);
  Button valueColumnExprButton=new Button(composite,SWT.PUSH);
  UIUtil.setExpressionButtonImage(valueColumnExprButton);
  valueColumnExprButton.setToolTipText(Messages.getString("String_Node_Str"));
  valueColumnExprButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent event){
      ExpressionBuilder expressionBuilder=new ExpressionBuilder(getExpression(columnChooser.getText()));
      expressionBuilder.setExpressionProvier(new ParameterExpressionProvider(inputParameter,dataSetChooser.getText()));
      if (expressionBuilder.open() == OK) {
        setExpression(columnChooser,expressionBuilder.getResult().trim());
      }
    }
  }
);
  createLabel(composite,LABEL_SELECT_DISPLAY_TEXT);
  displayTextChooser=new Combo(composite,SWT.BORDER | SWT.DROP_DOWN);
  displayTextChooser.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  Button displayTextExprButton=new Button(composite,SWT.PUSH);
  UIUtil.setExpressionButtonImage(displayTextExprButton);
  displayTextExprButton.setToolTipText(Messages.getString("String_Node_Str"));
  displayTextExprButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent event){
      ExpressionBuilder expressionBuilder=new ExpressionBuilder(getExpression(displayTextChooser.getText()));
      expressionBuilder.setExpressionProvier(new ParameterExpressionProvider(inputParameter,dataSetChooser.getText()));
      if (expressionBuilder.open() == OK) {
        setExpression(displayTextChooser,expressionBuilder.getResult().trim());
      }
    }
  }
);
  createDefaultEditor();
  createSortingArea(valueArea);
  createLabel(valueArea,null);
  createPromptLine(valueArea);
  listLimit.setEditable(true);
}

Fixed version (ground truth):
private void switchToDynamic(){
  Composite composite=new Composite(valueArea,SWT.NONE);
  GridData gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=2;
  composite.setLayoutData(gd);
  composite.setLayout(UIUtil.createGridLayoutWithoutMargin(3,false));
  createLabel(composite,LABEL_SELECT_DATA_SET);
  dataSetChooser=new Combo(composite,SWT.BORDER | SWT.READ_ONLY);
  dataSetChooser.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  dataSetChooser.addSelectionListener(new SelectionAdapter(){
    public void widgetDefaultSelected(    SelectionEvent e){
      refreshColumns(false);
    }
    public void widgetSelected(    SelectionEvent e){
      refreshColumns(false);
    }
  }
);
  createDataSet=new Button(composite,SWT.PUSH);
  createDataSet.setText(BUTTON_CREATE_DATA_SET);
  setButtonLayoutData(createDataSet);
  createDataSet.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      new NewDataSetAction().run();
      refreshDataSets();
    }
  }
);
  createLabel(composite,LABEL_SELECT_VALUE_COLUMN);
  columnChooser=new Combo(composite,SWT.BORDER | SWT.DROP_DOWN);
  columnChooser.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  columnChooser.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      updateButtons();
    }
  }
);
  valueColumnExprButton=new Button(composite,SWT.PUSH);
  UIUtil.setExpressionButtonImage(valueColumnExprButton);
  valueColumnExprButton.setToolTipText(Messages.getString("String_Node_Str"));
  valueColumnExprButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent event){
      ExpressionBuilder expressionBuilder=new ExpressionBuilder(getExpression(columnChooser.getText()));
      expressionBuilder.setExpressionProvier(new ParameterExpressionProvider(inputParameter,dataSetChooser.getText()));
      if (expressionBuilder.open() == OK) {
        setExpression(columnChooser,expressionBuilder.getResult().trim());
      }
    }
  }
);
  createLabel(composite,LABEL_SELECT_DISPLAY_TEXT);
  displayTextChooser=new Combo(composite,SWT.BORDER | SWT.DROP_DOWN);
  displayTextChooser.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  Button displayTextExprButton=new Button(composite,SWT.PUSH);
  UIUtil.setExpressionButtonImage(displayTextExprButton);
  displayTextExprButton.setToolTipText(Messages.getString("String_Node_Str"));
  displayTextExprButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent event){
      ExpressionBuilder expressionBuilder=new ExpressionBuilder(getExpression(displayTextChooser.getText()));
      expressionBuilder.setExpressionProvier(new ParameterExpressionProvider(inputParameter,dataSetChooser.getText()));
      if (expressionBuilder.open() == OK) {
        setExpression(displayTextChooser,expressionBuilder.getResult().trim());
      }
    }
  }
);
  createDefaultEditor();
  createSortingArea(valueArea);
  createLabel(valueArea,null);
  createPromptLine(valueArea);
  listLimit.setEditable(true);
}