Program: 72773
Project: 72773
Buggy source:
public void createControl(Composite parent){
  ChartUIUtil.bindHelp(parent,ChartHelpContextIds.SUBTASK_LEGEND);
  init();
  cmpContent=new Composite(parent,SWT.NONE);
{
    GridLayout glContent=new GridLayout(2,false);
    cmpContent.setLayout(glContent);
    GridData gd=new GridData(GridData.FILL_BOTH);
    cmpContent.setLayoutData(gd);
  }
  Group cmpBasic=new Group(cmpContent,SWT.NONE);
{
    GridLayout layout=new GridLayout(3,false);
    layout.marginWidth=10;
    layout.marginHeight=10;
    cmpBasic.setLayout(layout);
    GridData gd=new GridData(GridData.FILL_HORIZONTAL);
    cmpBasic.setLayoutData(gd);
    cmpBasic.setText(Messages.getString("String_Node_Str"));
  }
  btnVisible=new Button(cmpBasic,SWT.CHECK);
{
    GridData gdBTNVisible=new GridData();
    gdBTNVisible.horizontalSpan=3;
    btnVisible.setLayoutData(gdBTNVisible);
    btnVisible.setText(Messages.getString("String_Node_Str"));
    btnVisible.setSelection(getChart().getLegend().isVisible());
    btnVisible.addSelectionListener(this);
  }
  lblTitle=new Label(cmpBasic,SWT.NONE);
  lblTitle.setText(Messages.getString("String_Node_Str"));
  List keys=null;
  if (getContext().getUIServiceProvider() != null) {
    keys=getContext().getUIServiceProvider().getRegisteredKeys();
  }
  txtTitle=new ExternalizedTextEditorComposite(cmpBasic,SWT.BORDER,-1,-1,keys,getContext().getUIServiceProvider(),getChart().getLegend().getTitle().getCaption().getValue());
{
    GridData gd=new GridData();
    gd.widthHint=180;
    txtTitle.setLayoutData(gd);
    txtTitle.addListener(this);
  }
  btnTitleVisible=new Button(cmpBasic,SWT.CHECK);
{
    btnTitleVisible.setText(Messages.getString("String_Node_Str"));
    btnTitleVisible.addSelectionListener(this);
    btnTitleVisible.setSelection(getChart().getLegend().getTitle().isVisible());
  }
  lblLegendBehavior=new Label(cmpBasic,SWT.NONE);
{
    lblLegendBehavior.setText(Messages.getString("String_Node_Str"));
  }
  cmbLegendBehavior=new Combo(cmpBasic,SWT.DROP_DOWN | SWT.READ_ONLY);
{
    GridData gridData=new GridData();
    gridData.widthHint=150;
    cmbLegendBehavior.setLayoutData(gridData);
    cmbLegendBehavior.addSelectionListener(this);
  }
  new Label(cmpBasic,SWT.NONE);
  if (isShowValueEnabled()) {
    lblShowValue=new Label(cmpBasic,SWT.NONE);
    lblShowValue.setText(Messages.getString("String_Node_Str"));
    btnShowValue=new Button(cmpBasic,SWT.CHECK);
{
      GridData gdShowValue=new GridData();
      gdShowValue.horizontalSpan=2;
      btnShowValue.setLayoutData(gdShowValue);
      btnShowValue.setText(Messages.getString("String_Node_Str"));
      btnShowValue.setToolTipText(Messages.getString("String_Node_Str"));
      btnShowValue.addSelectionListener(this);
      btnShowValue.setSelection(getChart().getLegend().isShowValue());
    }
  }
  populateLists();
  createButtonGroup(cmpContent);
  setState(getChart().getLegend().isVisible());
}

Fixed version (ground truth):
public void createControl(Composite parent){
  ChartUIUtil.bindHelp(parent,ChartHelpContextIds.SUBTASK_LEGEND);
  init();
  cmpContent=new Composite(parent,SWT.NONE);
{
    GridLayout glContent=new GridLayout(2,false);
    cmpContent.setLayout(glContent);
    GridData gd=new GridData(GridData.FILL_BOTH);
    cmpContent.setLayoutData(gd);
  }
  Group cmpBasic=new Group(cmpContent,SWT.NONE);
{
    GridLayout layout=new GridLayout(3,false);
    layout.marginWidth=10;
    layout.marginHeight=10;
    cmpBasic.setLayout(layout);
    GridData gd=new GridData(GridData.FILL_HORIZONTAL);
    cmpBasic.setLayoutData(gd);
    cmpBasic.setText(Messages.getString("String_Node_Str"));
  }
  btnVisible=new Button(cmpBasic,SWT.CHECK);
{
    GridData gdBTNVisible=new GridData();
    gdBTNVisible.horizontalSpan=3;
    btnVisible.setLayoutData(gdBTNVisible);
    btnVisible.setText(Messages.getString("String_Node_Str"));
    btnVisible.setSelection(getChart().getLegend().isVisible());
    btnVisible.addSelectionListener(this);
  }
  lblTitle=new Label(cmpBasic,SWT.NONE);
  lblTitle.setText(Messages.getString("String_Node_Str"));
  List keys=null;
  if (getContext().getUIServiceProvider() != null) {
    keys=getContext().getUIServiceProvider().getRegisteredKeys();
  }
  txtTitle=new ExternalizedTextEditorComposite(cmpBasic,SWT.BORDER,-1,-1,keys,getContext().getUIServiceProvider(),getChart().getLegend().getTitle().getCaption().getValue());
{
    GridData gd=new GridData();
    gd.widthHint=180;
    txtTitle.setLayoutData(gd);
    txtTitle.addListener(this);
  }
  btnTitleVisible=new Button(cmpBasic,SWT.CHECK);
{
    btnTitleVisible.setText(Messages.getString("String_Node_Str"));
    btnTitleVisible.addSelectionListener(this);
    btnTitleVisible.setSelection(getChart().getLegend().getTitle().isVisible());
  }
  lblLegendBehavior=new Label(cmpBasic,SWT.NONE);
{
    lblLegendBehavior.setText(Messages.getString("String_Node_Str"));
  }
  cmbLegendBehavior=new Combo(cmpBasic,SWT.DROP_DOWN | SWT.READ_ONLY);
{
    GridData gridData=new GridData();
    gridData.widthHint=150;
    cmbLegendBehavior.setLayoutData(gridData);
    cmbLegendBehavior.addSelectionListener(this);
    cmbLegendBehavior.setEnabled(getChart().getInteractivity().isEnable());
  }
  new Label(cmpBasic,SWT.NONE);
  if (isShowValueEnabled()) {
    lblShowValue=new Label(cmpBasic,SWT.NONE);
    lblShowValue.setText(Messages.getString("String_Node_Str"));
    btnShowValue=new Button(cmpBasic,SWT.CHECK);
{
      GridData gdShowValue=new GridData();
      gdShowValue.horizontalSpan=2;
      btnShowValue.setLayoutData(gdShowValue);
      btnShowValue.setText(Messages.getString("String_Node_Str"));
      btnShowValue.setToolTipText(Messages.getString("String_Node_Str"));
      btnShowValue.addSelectionListener(this);
      btnShowValue.setSelection(getChart().getLegend().isShowValue());
    }
  }
  populateLists();
  createButtonGroup(cmpContent);
  setState(getChart().getLegend().isVisible());
}