Program: 65956
Project: 65956
Buggy source:
public void createControl(Composite parent){
  ChartUIUtil.bindHelp(parent,ChartHelpContextIds.SUBTASK_CHART);
  Chart defChart=ChartDefaultValueUtil.getDefaultValueChart(getChart());
  init();
  cmpContent=new Composite(parent,SWT.NONE);
{
    GridLayout glContent=new GridLayout(3,true);
    cmpContent.setLayout(glContent);
    GridData gd=new GridData(GridData.FILL_BOTH);
    cmpContent.setLayoutData(gd);
  }
  Composite cmpBasic=new Composite(cmpContent,SWT.NONE);
{
    cmpBasic.setLayout(new GridLayout(3,false));
    GridData gd=new GridData(GridData.FILL_BOTH);
    gd.horizontalSpan=2;
    cmpBasic.setLayoutData(gd);
  }
  initOptionUI(cmpBasic);
  Label lblBackground=new Label(cmpBasic,SWT.NONE);
  lblBackground.setText(Messages.getString("String_Node_Str"));
  cmbBackground=new FillChooserComposite(cmpBasic,SWT.NONE,getBackgroundFillStyles(),getContext(),getChart().getBlock().getBackground());
{
    GridData gridData=new GridData(GridData.FILL_HORIZONTAL);
    cmbBackground.setLayoutData(gridData);
    cmbBackground.addListener(this);
  }
  new Label(cmpBasic,SWT.NONE);
  if (hasWallAndFloor()) {
    Label lblWall=new Label(cmpBasic,SWT.NONE);
    lblWall.setLayoutData(new GridData());
    lblWall.setText(Messages.getString("String_Node_Str"));
    fccWall=new FillChooserComposite(cmpBasic,SWT.NONE,getContext(),((ChartWithAxes)getChart()).getWallFill(),true,true,true,true);
    GridData gdFCCWall=new GridData(GridData.FILL_HORIZONTAL);
    fccWall.setLayoutData(gdFCCWall);
    fccWall.addListener(this);
    new Label(cmpBasic,SWT.NONE);
    Label lblFloor=new Label(cmpBasic,SWT.NONE);
    lblFloor.setLayoutData(new GridData());
    lblFloor.setText(Messages.getString("String_Node_Str"));
    fccFloor=new FillChooserComposite(cmpBasic,SWT.NONE,getContext(),((ChartWithAxes)getChart()).getFloorFill(),true,true,true,true);
    GridData gdFCCFloor=new GridData(GridData.FILL_HORIZONTAL);
    fccFloor.setLayoutData(gdFCCFloor);
    fccFloor.addListener(this);
    new Label(cmpBasic,SWT.NONE);
  }
  createStyleNPreviewUI(cmpBasic);
  createAltMsgComposite(cmpBasic);
  Composite cmp3D=new Composite(cmpContent,SWT.NONE);
{
    cmp3D.setLayout(new GridLayout());
    cmp3D.setLayoutData(new GridData(GridData.FILL_BOTH));
  }
  if ((getChart() instanceof ChartWithAxes) && is3DEnabled()) {
    Group cmpRotation=new Group(cmp3D,SWT.NONE);
{
      GridLayout gl=new GridLayout();
      gl.marginTop=0;
      gl.verticalSpacing=0;
      cmpRotation.setLayout(gl);
      cmpRotation.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
      cmpRotation.setText(Messages.getString("String_Node_Str"));
    }
    xChooser=new AxisRotationChooser(ChartUIUtil.getAxisXForProcessing((ChartWithAxes)getChart()),AngleType.X);
    xChooser.placeComponents(cmpRotation);
    yChooser=new AxisRotationChooser(ChartUIUtil.getAxisYForProcessing((ChartWithAxes)getChart(),0),AngleType.Y);
    yChooser.placeComponents(cmpRotation);
    zChooser=new AxisRotationChooser(ChartUIUtil.getAxisZForProcessing((ChartWithAxes)getChart()),AngleType.Z);
    zChooser.placeComponents(cmpRotation);
    btnResetValue=new Button(cmpRotation,SWT.PUSH);
{
      btnResetValue.setText(Messages.getString("String_Node_Str"));
      btnResetValue.setSelection(ChartPreviewPainterBase.isProcessorEnabled());
      btnResetValue.addSelectionListener(this);
    }
  }
 else   if (getChart() instanceof ChartWithoutAxes) {
    ChartWithoutAxes cwa=(ChartWithoutAxes)getChart();
    new Label(cmpBasic,SWT.NONE).setText(Messages.getString("String_Node_Str"));
    Composite cmpCoverage=new Composite(cmpBasic,SWT.NONE);
{
      cmpCoverage.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
      GridLayout layout=new GridLayout(2,false);
      layout.verticalSpacing=0;
      layout.marginHeight=0;
      layout.marginWidth=0;
      cmpCoverage.setLayout(layout);
    }
    spnCorverage=getContext().getUIFactory().createChartSpinner(cmpCoverage,SWT.BORDER,cwa,"String_Node_Str",true,null,"String_Node_Str");
    spnCorverage.setRatio(100);
    GridData gd=new GridData(GridData.FILL_HORIZONTAL);
    gd.horizontalSpan=3;
    spnCorverage.setLayoutData(gd);
    int spnValue=(int)(cwa.getCoverage() * 100);
    if (!cwa.isSetCoverage()) {
      spnValue=DEFAULT_COVERAGE;
    }
    spnCorverage.getWidget().setValues(spnValue,1,100,0,1,10);
  }
  btnEnable=getContext().getUIFactory().createChartCheckbox(cmpBasic,SWT.NONE,defChart.getInteractivity().isEnable());
{
    GridData gridData=new GridData();
    gridData.horizontalSpan=3;
    btnEnable.setLayoutData(gridData);
    btnEnable.setText(Messages.getString("String_Node_Str"));
    btnEnable.setSelectionState(!getChart().getInteractivity().isSetEnable() ? ChartCheckbox.STATE_GRAYED : (getChart().getInteractivity().isEnable() ? ChartCheckbox.STATE_SELECTED : ChartCheckbox.STATE_UNSELECTED));
    btnEnable.addSelectionListener(this);
  }
  if (enableStudyLayout()) {
    btnStudyLayout=getContext().getUIFactory().createChartCheckbox(cmpBasic,SWT.NONE,((ChartWithAxes)defChart).isStudyLayout());
    GridData gridData=new GridData();
    gridData.horizontalSpan=3;
    btnStudyLayout.setLayoutData(gridData);
    btnStudyLayout.setText(Messages.getString("String_Node_Str"));
    btnStudyLayout.setSelectionState(((ChartWithAxes)getChart()).isSetStudyLayout() ? (((ChartWithAxes)getChart()).isStudyLayout() ? ChartCheckbox.STATE_SELECTED : ChartCheckbox.STATE_UNSELECTED) : ChartCheckbox.STATE_GRAYED);
    btnStudyLayout.addSelectionListener(this);
  }
  populateLists();
  createButtonGroup(cmpContent);
}

Fixed version (ground truth):
public void createControl(Composite parent){
  ChartUIUtil.bindHelp(parent,ChartHelpContextIds.SUBTASK_CHART);
  Chart defChart=ChartDefaultValueUtil.getDefaultValueChart(getChart());
  init();
  cmpContent=new Composite(parent,SWT.NONE);
{
    GridLayout glContent=new GridLayout(3,true);
    cmpContent.setLayout(glContent);
    GridData gd=new GridData(GridData.FILL_BOTH);
    cmpContent.setLayoutData(gd);
  }
  Composite cmpBasic=new Composite(cmpContent,SWT.NONE);
{
    cmpBasic.setLayout(new GridLayout(3,false));
    GridData gd=new GridData(GridData.FILL_BOTH);
    gd.horizontalSpan=2;
    cmpBasic.setLayoutData(gd);
  }
  initOptionUI(cmpBasic);
  Label lblBackground=new Label(cmpBasic,SWT.NONE);
  lblBackground.setText(Messages.getString("String_Node_Str"));
  cmbBackground=new FillChooserComposite(cmpBasic,SWT.NONE,getBackgroundFillStyles(),getContext(),getChart().getBlock().getBackground());
{
    GridData gridData=new GridData(GridData.FILL_HORIZONTAL);
    cmbBackground.setLayoutData(gridData);
    cmbBackground.addListener(this);
  }
  new Label(cmpBasic,SWT.NONE);
  if (hasWallAndFloor()) {
    Label lblWall=new Label(cmpBasic,SWT.NONE);
    lblWall.setLayoutData(new GridData());
    lblWall.setText(Messages.getString("String_Node_Str"));
    fccWall=new FillChooserComposite(cmpBasic,SWT.NONE,getContext(),((ChartWithAxes)getChart()).getWallFill(),true,true,true,true);
    GridData gdFCCWall=new GridData(GridData.FILL_HORIZONTAL);
    fccWall.setLayoutData(gdFCCWall);
    fccWall.addListener(this);
    new Label(cmpBasic,SWT.NONE);
    Label lblFloor=new Label(cmpBasic,SWT.NONE);
    lblFloor.setLayoutData(new GridData());
    lblFloor.setText(Messages.getString("String_Node_Str"));
    fccFloor=new FillChooserComposite(cmpBasic,SWT.NONE,getContext(),((ChartWithAxes)getChart()).getFloorFill(),true,true,true,true);
    GridData gdFCCFloor=new GridData(GridData.FILL_HORIZONTAL);
    fccFloor.setLayoutData(gdFCCFloor);
    fccFloor.addListener(this);
    new Label(cmpBasic,SWT.NONE);
  }
  createStyleNPreviewUI(cmpBasic);
  createAltMsgComposite(cmpBasic);
  Composite cmp3D=new Composite(cmpContent,SWT.NONE);
{
    cmp3D.setLayout(new GridLayout());
    cmp3D.setLayoutData(new GridData(GridData.FILL_BOTH));
  }
  createAngleChooserComposite(cmp3D);
  createCoverageComposite(cmpBasic);
  btnEnable=getContext().getUIFactory().createChartCheckbox(cmpBasic,SWT.NONE,defChart.getInteractivity().isEnable());
{
    GridData gridData=new GridData();
    gridData.horizontalSpan=3;
    btnEnable.setLayoutData(gridData);
    btnEnable.setText(Messages.getString("String_Node_Str"));
    btnEnable.setSelectionState(!getChart().getInteractivity().isSetEnable() ? ChartCheckbox.STATE_GRAYED : (getChart().getInteractivity().isEnable() ? ChartCheckbox.STATE_SELECTED : ChartCheckbox.STATE_UNSELECTED));
    btnEnable.addSelectionListener(this);
  }
  if (enableStudyLayout()) {
    btnStudyLayout=getContext().getUIFactory().createChartCheckbox(cmpBasic,SWT.NONE,((ChartWithAxes)defChart).isStudyLayout());
    GridData gridData=new GridData();
    gridData.horizontalSpan=3;
    btnStudyLayout.setLayoutData(gridData);
    btnStudyLayout.setText(Messages.getString("String_Node_Str"));
    btnStudyLayout.setSelectionState(((ChartWithAxes)getChart()).isSetStudyLayout() ? (((ChartWithAxes)getChart()).isStudyLayout() ? ChartCheckbox.STATE_SELECTED : ChartCheckbox.STATE_UNSELECTED) : ChartCheckbox.STATE_GRAYED);
    btnStudyLayout.addSelectionListener(this);
  }
  populateLists();
  createButtonGroup(cmpContent);
}