Program: 65560
Project: 65560
Buggy source:
private Composite createMeasureArea(Composite parent){
  getShell().setText(Messages.getString("String_Node_Str"));
  Group group=new Group(parent,SWT.NONE);
  GridData gd=new GridData();
  gd.grabExcessHorizontalSpace=true;
  gd.horizontalAlignment=SWT.FILL;
  group.setLayoutData(gd);
  GridLayout layout=new GridLayout();
  layout.numColumns=3;
  group.setLayout(layout);
  Label nameLabel=new Label(group,SWT.NONE);
  nameLabel.setText(Messages.getString("String_Node_Str"));
  nameText=new Text(group,SWT.BORDER);
  gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=2;
  nameText.setLayoutData(gd);
  nameText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      checkOkButtonStatus();
    }
  }
);
  new Label(group,SWT.NONE);
  derivedMeasureBtn=new Button(group,SWT.CHECK);
  derivedMeasureBtn.setText(Messages.getString("String_Node_Str"));
  derivedMeasureBtn.setSelection(input.isCalculated());
  derivedMeasureBtn.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      updateDerivedMeasureStatus();
      if (!derivedMeasureBtn.getSelection()) {
        handleTypeSelectEvent();
      }
    }
  }
);
  new Label(group,SWT.NONE);
  Label functionLabel=new Label(group,SWT.NONE);
  functionLabel.setText(Messages.getString("String_Node_Str"));
  functionCombo=new Combo(group,SWT.BORDER | SWT.READ_ONLY);
  gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=2;
  functionCombo.setLayoutData(gd);
  functionCombo.setVisibleItemCount(30);
  functionCombo.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      handleFunctionSelectEvent();
      checkOkButtonStatus();
    }
  }
);
  functionCombo.setEnabled(!(derivedMeasureBtn.getSelection() || isAutoPrimaryKeyChecked));
  Label typeLabel=new Label(group,SWT.NONE);
  typeLabel.setText(Messages.getString("String_Node_Str"));
  typeCombo=new Combo(group,SWT.BORDER | SWT.READ_ONLY);
  gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=2;
  typeCombo.setLayoutData(gd);
  typeCombo.setVisibleItemCount(30);
  typeCombo.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      if (!derivedMeasureBtn.getSelection()) {
        handleTypeSelectEvent();
      }
      checkOkButtonStatus();
      if (formatHelper != null) {
        if (typeCombo.getSelectionIndex() > -1)         formatHelper.setProperty(BuilderConstants.FORMAT_VALUE_TYPE,getDataTypeNames()[typeCombo.getSelectionIndex()]);
        formatHelper.update(true);
      }
    }
  }
);
  Label expressionLabel=new Label(group,SWT.NONE);
  expressionLabel.setText(Messages.getString("String_Node_Str"));
  expressionText=new Text(group,SWT.WRAP | SWT.BORDER);
  gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.heightHint=expressionText.computeSize(SWT.DEFAULT,SWT.DEFAULT).y - expressionText.getBorderWidth() * 2;
  expressionText.setLayoutData(gd);
  expressionText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      checkOkButtonStatus();
    }
  }
);
  provider=new CubeMeasureExpressionProvider(input,input.isCalculated());
  exprBtn=ExpressionButtonUtil.createExpressionButton(group,expressionText,provider,input);
  new Label(group,SWT.NONE);
  exprDesc=new Label(group,SWT.NONE);
  gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=2;
  gd.grabExcessHorizontalSpace=true;
  exprDesc.setLayoutData(gd);
  exprDesc.setText(Messages.getString(Messages.getString(derivedMeasureBtn.getSelection() ? "String_Node_Str" : "String_Node_Str")));
  exprDesc.setForeground(ColorManager.getColor(128,128,128));
  createSecurityPart(group);
  createHyperLinkPart(group);
  createFormatPart(group);
  createAlignmentPart(group);
  return group;
}

Fixed version (ground truth):
private Composite createMeasureArea(Composite parent){
  getShell().setText(Messages.getString("String_Node_Str"));
  Group group=new Group(parent,SWT.NONE);
  GridData gd=new GridData();
  gd.grabExcessHorizontalSpace=true;
  gd.horizontalAlignment=SWT.FILL;
  group.setLayoutData(gd);
  GridLayout layout=new GridLayout();
  layout.numColumns=3;
  group.setLayout(layout);
  Label nameLabel=new Label(group,SWT.NONE);
  nameLabel.setText(Messages.getString("String_Node_Str"));
  nameText=new Text(group,SWT.BORDER);
  gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=2;
  nameText.setLayoutData(gd);
  nameText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      checkOkButtonStatus();
    }
  }
);
  Label displayNameLabel=new Label(group,SWT.NONE);
  displayNameLabel.setText(Messages.getString("String_Node_Str"));
  displayNameText=new Text(group,SWT.BORDER);
  gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=2;
  displayNameText.setLayoutData(gd);
  displayNameText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      checkOkButtonStatus();
    }
  }
);
  new Label(group,SWT.NONE);
  derivedMeasureBtn=new Button(group,SWT.CHECK);
  derivedMeasureBtn.setText(Messages.getString("String_Node_Str"));
  derivedMeasureBtn.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      updateDerivedMeasureStatus();
      if (!derivedMeasureBtn.getSelection()) {
        handleTypeSelectEvent();
      }
    }
  }
);
  new Label(group,SWT.NONE);
  Label functionLabel=new Label(group,SWT.NONE);
  functionLabel.setText(Messages.getString("String_Node_Str"));
  functionCombo=new Combo(group,SWT.BORDER | SWT.READ_ONLY);
  gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=2;
  functionCombo.setLayoutData(gd);
  functionCombo.setVisibleItemCount(30);
  functionCombo.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      handleFunctionSelectEvent();
      checkOkButtonStatus();
    }
  }
);
  functionCombo.setEnabled(!(derivedMeasureBtn.getSelection() || isAutoPrimaryKeyChecked));
  Label typeLabel=new Label(group,SWT.NONE);
  typeLabel.setText(Messages.getString("String_Node_Str"));
  typeCombo=new Combo(group,SWT.BORDER | SWT.READ_ONLY);
  gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=2;
  typeCombo.setLayoutData(gd);
  typeCombo.setVisibleItemCount(30);
  typeCombo.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      if (!derivedMeasureBtn.getSelection()) {
        handleTypeSelectEvent();
      }
      checkOkButtonStatus();
      if (formatHelper != null) {
        if (typeCombo.getSelectionIndex() > -1)         formatHelper.setProperty(BuilderConstants.FORMAT_VALUE_TYPE,getDataTypeNames()[typeCombo.getSelectionIndex()]);
        formatHelper.update(true);
      }
    }
  }
);
  Label expressionLabel=new Label(group,SWT.NONE);
  expressionLabel.setText(Messages.getString("String_Node_Str"));
  expressionText=new Text(group,SWT.WRAP | SWT.BORDER);
  gd=new GridData(GridData.FILL_HORIZONTAL);
  expressionText.setLayoutData(gd);
  expressionText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      checkOkButtonStatus();
    }
  }
);
  provider=new CubeMeasureExpressionProvider(input,input.isCalculated());
  ExpressionButtonUtil.createExpressionButton(group,expressionText,provider,input);
  new Label(group,SWT.NONE);
  exprDesc=new Label(group,SWT.NONE);
  gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=2;
  gd.grabExcessHorizontalSpace=true;
  exprDesc.setLayoutData(gd);
  exprDesc.setText(Messages.getString(Messages.getString(derivedMeasureBtn.getSelection() ? "String_Node_Str" : "String_Node_Str")));
  exprDesc.setForeground(ColorManager.getColor(128,128,128));
  createSecurityPart(group);
  createHyperLinkPart(group);
  createFormatPart(group);
  createAlignmentPart(group);
  return group;
}