Program: 66112
Project: 66112
Buggy source:
@Override protected Composite getComponent(Composite parent){
  ChartUIUtil.bindHelp(parent,ChartHelpContextIds.POPUP_LEGEND_BLOCK);
  cmpContent=new Composite(parent,SWT.NONE);
{
    GridLayout glMain=new GridLayout();
    glMain.horizontalSpacing=5;
    glMain.verticalSpacing=5;
    glMain.marginHeight=7;
    glMain.marginWidth=7;
    cmpContent.setLayout(glMain);
  }
  Group grpTxtArea=new Group(cmpContent,SWT.NONE);
{
    GridLayout layout=new GridLayout(3,false);
    layout.marginHeight=7;
    layout.marginWidth=7;
    grpTxtArea.setLayout(layout);
    grpTxtArea.setLayoutData(new GridData(GridData.FILL_BOTH));
    grpTxtArea.setText(Messages.getString("String_Node_Str"));
  }
  Label lblFormat=new Label(grpTxtArea,SWT.NONE);
{
    lblFormat.setText(Messages.getString("String_Node_Str"));
  }
  Composite cmpFormat=new Composite(grpTxtArea,SWT.BORDER);
{
    GridLayout layout=new GridLayout(2,false);
    layout.marginWidth=0;
    layout.marginHeight=0;
    layout.horizontalSpacing=0;
    cmpFormat.setLayout(layout);
    GridData gd=new GridData(GridData.FILL_HORIZONTAL);
    gd.horizontalSpan=2;
    cmpFormat.setLayoutData(gd);
    cmpFormat.setBackground(cmpFormat.getDisplay().getSystemColor(SWT.COLOR_WHITE));
  }
  fsp=new FormatSpecifierPreview(cmpFormat,SWT.NONE,false);
{
    GridData gd=new GridData();
    gd.grabExcessHorizontalSpace=true;
    gd.horizontalAlignment=SWT.CENTER;
    fsp.setLayoutData(gd);
    fsp.updatePreview(getChart().getLegend().getFormatSpecifier());
  }
  btnFormatSpecifier=new Button(cmpFormat,SWT.PUSH);
{
    GridData gd=new GridData();
    btnFormatSpecifier.setLayoutData(gd);
    btnFormatSpecifier.setToolTipText(Messages.getString("String_Node_Str"));
    btnFormatSpecifier.setText(Messages.getString("String_Node_Str"));
    btnFormatSpecifier.addListener(SWT.Selection,this);
  }
  new Label(grpTxtArea,SWT.NONE).setText(Messages.getString("String_Node_Str"));
  fdcFont=new FontDefinitionComposite(grpTxtArea,SWT.NONE,getContext(),getLegend().getText().getFont(),getLegend().getText().getColor(),false);
  GridData gdFDCFont=new GridData(GridData.FILL_HORIZONTAL);
  gdFDCFont.widthHint=fdcFont.getPreferredSize().x;
  gdFDCFont.grabExcessVerticalSpace=false;
  gdFDCFont.horizontalSpan=2;
  fdcFont.setLayoutData(gdFDCFont);
  fdcFont.addListener(this);
  new Label(grpTxtArea,SWT.NONE).setText(Messages.getString("String_Node_Str"));
  spnEllipsis=new Spinner(grpTxtArea,SWT.BORDER);
{
    GridData gd=new GridData(GridData.FILL_HORIZONTAL);
    spnEllipsis.setLayoutData(gd);
    spnEllipsis.setMinimum(0);
    spnEllipsis.setSelection(getLegend().getEllipsis());
    spnEllipsis.setToolTipText(Messages.getString("String_Node_Str"));
    spnEllipsis.addListener(SWT.Selection,this);
  }
  btnEllipsisAuto=new Button(grpTxtArea,SWT.CHECK);
  btnEllipsisAuto.setText(ChartUIExtensionUtil.getAutoMessage());
  btnEllipsisAuto.setSelection(!getLegend().isSetEllipsis());
  spnEllipsis.setEnabled(!btnEllipsisAuto.getSelection());
  btnEllipsisAuto.addListener(SWT.Selection,this);
  Label lblShadow=new Label(grpTxtArea,SWT.NONE);
  GridData gdLBLShadow=new GridData();
  lblShadow.setLayoutData(gdLBLShadow);
  lblShadow.setText(Messages.getString("String_Node_Str"));
  int fillStyles=FillChooserComposite.ENABLE_AUTO | FillChooserComposite.ENABLE_TRANSPARENT | FillChooserComposite.ENABLE_TRANSPARENT_SLIDER| FillChooserComposite.DISABLE_PATTERN_FILL;
  fccShadow=new FillChooserComposite(grpTxtArea,SWT.NONE,fillStyles,getContext(),getLegend().getClientArea().getShadowColor());
  GridData gdFCCShadow=new GridData(GridData.FILL_HORIZONTAL);
  gdFCCShadow.horizontalSpan=2;
  fccShadow.setLayoutData(gdFCCShadow);
  fccShadow.addListener(this);
  Label lblBackground=new Label(grpTxtArea,SWT.NONE);
  lblBackground.setText(Messages.getString("String_Node_Str"));
  fillStyles=FillChooserComposite.ENABLE_AUTO | FillChooserComposite.ENABLE_TRANSPARENT | FillChooserComposite.ENABLE_TRANSPARENT_SLIDER| FillChooserComposite.ENABLE_IMAGE| FillChooserComposite.ENABLE_GRADIENT;
  fccBackground=new FillChooserComposite(grpTxtArea,SWT.DROP_DOWN | SWT.READ_ONLY,fillStyles,getContext(),getChart().getLegend().getClientArea().getBackground());
{
    GridData gridData=new GridData(GridData.FILL_HORIZONTAL);
    gridData.horizontalSpan=2;
    fccBackground.setLayoutData(gridData);
    fccBackground.addListener(this);
  }
  Group grpOutline=new Group(grpTxtArea,SWT.NONE);
  GridData gdGRPOutline=new GridData(GridData.FILL_HORIZONTAL);
  gdGRPOutline.horizontalSpan=3;
  grpOutline.setLayoutData(gdGRPOutline);
  grpOutline.setLayout(new FillLayout());
  grpOutline.setText(Messages.getString("String_Node_Str"));
  int lineStyles=LineAttributesComposite.ENABLE_VISIBILITY | LineAttributesComposite.ENABLE_STYLES | LineAttributesComposite.ENABLE_WIDTH| LineAttributesComposite.ENABLE_COLOR| LineAttributesComposite.ENABLE_AUTO_COLOR;
  outlineText=new LineAttributesComposite(grpOutline,SWT.NONE,lineStyles,getContext(),getLegend().getClientArea().getOutline());
  outlineText.addListener(this);
  outlineText.setAttributesEnabled(true);
  icText=new InsetsComposite(grpTxtArea,SWT.NONE,getLegend().getClientArea().getInsets(),getChart().getUnits(),getContext().getUIServiceProvider());
  GridData gdInsets=new GridData(GridData.FILL_HORIZONTAL);
  gdInsets.horizontalSpan=3;
  icText.setLayoutData(gdInsets);
  icText.addListener(this);
  icText.setDefaultInsetsValue(DefaultValueProvider.defLegend().getClientArea().getInsets());
  Group grpSeparator=new Group(cmpContent,SWT.NONE);
{
    GridLayout layout=new GridLayout();
    layout.marginHeight=0;
    layout.marginWidth=5;
    grpSeparator.setLayout(layout);
    grpSeparator.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    grpSeparator.setText(Messages.getString("String_Node_Str"));
  }
  lineSeparator=new LineAttributesComposite(grpSeparator,SWT.NONE,lineStyles,getContext(),getLegend().getSeparator());
{
    lineSeparator.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    lineSeparator.addListener(this);
    lineSeparator.setAttributesEnabled(true);
  }
  return cmpContent;
}

Fixed version (ground truth):
@Override protected Composite getComponent(Composite parent){
  ChartUIUtil.bindHelp(parent,ChartHelpContextIds.POPUP_LEGEND_BLOCK);
  cmpContent=new Composite(parent,SWT.NONE);
{
    GridLayout glMain=new GridLayout();
    glMain.horizontalSpacing=5;
    glMain.verticalSpacing=5;
    glMain.marginHeight=7;
    glMain.marginWidth=7;
    cmpContent.setLayout(glMain);
  }
  Group grpTxtArea=new Group(cmpContent,SWT.NONE);
{
    GridLayout layout=new GridLayout(3,false);
    layout.marginHeight=7;
    layout.marginWidth=7;
    grpTxtArea.setLayout(layout);
    grpTxtArea.setLayoutData(new GridData(GridData.FILL_BOTH));
    grpTxtArea.setText(Messages.getString("String_Node_Str"));
  }
  Label lblFormat=new Label(grpTxtArea,SWT.NONE);
{
    lblFormat.setText(Messages.getString("String_Node_Str"));
  }
  Composite cmpFormat=new Composite(grpTxtArea,SWT.BORDER);
{
    GridLayout layout=new GridLayout(2,false);
    layout.marginWidth=0;
    layout.marginHeight=0;
    layout.horizontalSpacing=0;
    cmpFormat.setLayout(layout);
    GridData gd=new GridData(GridData.FILL_HORIZONTAL);
    gd.horizontalSpan=2;
    cmpFormat.setLayoutData(gd);
    cmpFormat.setBackground(cmpFormat.getDisplay().getSystemColor(SWT.COLOR_WHITE));
  }
  fsp=new FormatSpecifierPreview(cmpFormat,SWT.NONE,false);
{
    GridData gd=new GridData();
    gd.grabExcessHorizontalSpace=true;
    gd.horizontalAlignment=SWT.CENTER;
    fsp.setLayoutData(gd);
    fsp.updatePreview(getChart().getLegend().getFormatSpecifier());
  }
  btnFormatSpecifier=new Button(cmpFormat,SWT.PUSH);
{
    GridData gd=new GridData();
    btnFormatSpecifier.setLayoutData(gd);
    btnFormatSpecifier.setToolTipText(Messages.getString("String_Node_Str"));
    btnFormatSpecifier.setText(Messages.getString("String_Node_Str"));
    btnFormatSpecifier.addListener(SWT.Selection,this);
  }
  new Label(grpTxtArea,SWT.NONE).setText(Messages.getString("String_Node_Str"));
  fdcFont=new FontDefinitionComposite(grpTxtArea,SWT.NONE,getContext(),getLegend().getText().getFont(),getLegend().getText().getColor(),false);
  GridData gdFDCFont=new GridData(GridData.FILL_HORIZONTAL);
  gdFDCFont.widthHint=fdcFont.getPreferredSize().x;
  gdFDCFont.grabExcessVerticalSpace=false;
  gdFDCFont.horizontalSpan=2;
  fdcFont.setLayoutData(gdFDCFont);
  fdcFont.addListener(this);
  new Label(grpTxtArea,SWT.NONE).setText(Messages.getString("String_Node_Str"));
  spnEllipsis=new Spinner(grpTxtArea,SWT.BORDER);
{
    GridData gd=new GridData(GridData.FILL_HORIZONTAL);
    spnEllipsis.setLayoutData(gd);
    spnEllipsis.setMinimum(0);
    spnEllipsis.setSelection(getLegend().getEllipsis());
    spnEllipsis.setToolTipText(Messages.getString("String_Node_Str"));
    spnEllipsis.addListener(SWT.Selection,this);
  }
  btnEllipsisAuto=new Button(grpTxtArea,SWT.CHECK);
  btnEllipsisAuto.setText(ChartUIExtensionUtil.getAutoMessage());
  btnEllipsisAuto.setSelection(!getLegend().isSetEllipsis());
  spnEllipsis.setEnabled(!btnEllipsisAuto.getSelection());
  btnEllipsisAuto.addListener(SWT.Selection,this);
  Label lblShadow=new Label(grpTxtArea,SWT.NONE);
  GridData gdLBLShadow=new GridData();
  lblShadow.setLayoutData(gdLBLShadow);
  lblShadow.setText(Messages.getString("String_Node_Str"));
  int fillStyles=FillChooserComposite.ENABLE_AUTO | FillChooserComposite.ENABLE_TRANSPARENT | FillChooserComposite.ENABLE_TRANSPARENT_SLIDER| FillChooserComposite.DISABLE_PATTERN_FILL;
  fccShadow=new FillChooserComposite(grpTxtArea,SWT.NONE,fillStyles,getContext(),getLegend().getClientArea().getShadowColor());
  GridData gdFCCShadow=new GridData(GridData.FILL_HORIZONTAL);
  gdFCCShadow.horizontalSpan=2;
  fccShadow.setLayoutData(gdFCCShadow);
  fccShadow.addListener(this);
  Label lblBackground=new Label(grpTxtArea,SWT.NONE);
  lblBackground.setText(Messages.getString("String_Node_Str"));
  fillStyles=FillChooserComposite.ENABLE_AUTO | FillChooserComposite.ENABLE_TRANSPARENT | FillChooserComposite.ENABLE_TRANSPARENT_SLIDER| FillChooserComposite.ENABLE_IMAGE| FillChooserComposite.ENABLE_GRADIENT;
  fccBackground=new FillChooserComposite(grpTxtArea,SWT.DROP_DOWN | SWT.READ_ONLY,fillStyles,getContext(),getChart().getLegend().getClientArea().getBackground());
{
    GridData gridData=new GridData(GridData.FILL_HORIZONTAL);
    gridData.horizontalSpan=2;
    fccBackground.setLayoutData(gridData);
    fccBackground.addListener(this);
  }
  Group grpOutline=new Group(grpTxtArea,SWT.NONE);
  GridData gdGRPOutline=new GridData(GridData.FILL_HORIZONTAL);
  gdGRPOutline.horizontalSpan=3;
  grpOutline.setLayoutData(gdGRPOutline);
  grpOutline.setLayout(new FillLayout());
  grpOutline.setText(Messages.getString("String_Node_Str"));
  int lineStyles=LineAttributesComposite.ENABLE_VISIBILITY | LineAttributesComposite.ENABLE_STYLES | LineAttributesComposite.ENABLE_WIDTH| LineAttributesComposite.ENABLE_COLOR| LineAttributesComposite.ENABLE_AUTO_COLOR;
  outlineText=new LineAttributesComposite(grpOutline,SWT.NONE,lineStyles,getContext(),getLegend().getClientArea().getOutline());
  outlineText.addListener(this);
  outlineText.setAttributesEnabled(true);
  icText=new InsetsComposite(grpTxtArea,SWT.NONE,getLegend().getClientArea().getInsets(),getChart().getUnits(),getContext().getUIServiceProvider(),getContext());
  GridData gdInsets=new GridData(GridData.FILL_HORIZONTAL);
  gdInsets.horizontalSpan=3;
  icText.setLayoutData(gdInsets);
  icText.addListener(this);
  icText.setDefaultInsetsValue(DefaultValueProvider.defLegend().getClientArea().getInsets());
  Group grpSeparator=new Group(cmpContent,SWT.NONE);
{
    GridLayout layout=new GridLayout();
    layout.marginHeight=0;
    layout.marginWidth=5;
    grpSeparator.setLayout(layout);
    grpSeparator.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    grpSeparator.setText(Messages.getString("String_Node_Str"));
  }
  lineSeparator=new LineAttributesComposite(grpSeparator,SWT.NONE,lineStyles,getContext(),getLegend().getSeparator());
{
    lineSeparator.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    lineSeparator.addListener(this);
    lineSeparator.setAttributesEnabled(true);
  }
  return cmpContent;
}