Program: 68511
Project: 68511
Buggy source:
protected Composite getComponent(Composite parent){
  ChartUIUtil.bindHelp(parent,ChartHelpContextIds.POPUP_SERIES_CURVE_FITTING);
  cmpContent=new Composite(parent,SWT.NONE);
{
    GridLayout glMain=new GridLayout();
    glMain.numColumns=2;
    cmpContent.setLayout(glMain);
  }
  Composite cmpLeft=new Composite(cmpContent,SWT.NONE);
{
    GridLayout gl=new GridLayout();
    gl.numColumns=2;
    cmpLeft.setLayout(gl);
    GridData gd=new GridData(GridData.FILL_VERTICAL);
    cmpLeft.setLayoutData(gd);
  }
  lblValue=new Label(cmpLeft,SWT.NONE);
{
    GridData gd=new GridData();
    lblValue.setLayoutData(gd);
    lblValue.setText(Messages.getString("String_Node_Str"));
  }
  List keys=null;
  if (getContext().getUIServiceProvider() != null) {
    keys=getContext().getUIServiceProvider().getRegisteredKeys();
  }
  txtValue=new ExternalizedTextEditorComposite(cmpLeft,SWT.BORDER | SWT.SINGLE,-1,-1,keys,getContext().getUIServiceProvider(),getTrendline().getLabel().getCaption().getValue());
{
    GridData gd=new GridData();
    gd.widthHint=125;
    txtValue.setLayoutData(gd);
    txtValue.addListener(this);
  }
  lblAnchor=new Label(cmpLeft,SWT.NONE);
  GridData gdLBLAnchor=new GridData();
  lblAnchor.setLayoutData(gdLBLAnchor);
  lblAnchor.setText(Messages.getString("String_Node_Str"));
  cmbAnchor=new Combo(cmpLeft,SWT.DROP_DOWN | SWT.READ_ONLY);
  GridData gdCBAnchor=new GridData(GridData.FILL_HORIZONTAL);
  cmbAnchor.setLayoutData(gdCBAnchor);
  cmbAnchor.addSelectionListener(this);
  Composite cmpRight=new Composite(cmpContent,SWT.NONE);
{
    cmpRight.setLayout(new FillLayout());
    GridData gd=new GridData(GridData.FILL_HORIZONTAL);
    cmpRight.setLayoutData(gd);
  }
  trendLineText=new LineAttributesComposite(cmpRight,SWT.NONE,getContext(),getTrendline().getLineAttributes(),true,true,false);
  trendLineText.addListener(this);
  Group cmpLabel=new Group(cmpContent,SWT.NONE);
{
    GridLayout gl=new GridLayout(2,false);
    cmpLabel.setLayout(gl);
    GridData gd=new GridData(GridData.FILL_HORIZONTAL);
    gd.horizontalSpan=2;
    cmpLabel.setLayoutData(gd);
    cmpLabel.setText(Messages.getString("String_Node_Str"));
  }
  Composite cmpLabelInner=new Composite(cmpLabel,SWT.NONE);
{
    GridLayout gl=new GridLayout(2,false);
    cmpLabelInner.setLayout(gl);
    GridData gd=new GridData(GridData.FILL_BOTH);
    gd.verticalAlignment=SWT.BEGINNING;
    cmpLabelInner.setLayoutData(gd);
  }
  btnVisible=new Button(cmpLabelInner,SWT.CHECK);
  GridData gdCBVisible=new GridData(GridData.FILL_HORIZONTAL);
  gdCBVisible.horizontalSpan=2;
  btnVisible.setLayoutData(gdCBVisible);
  btnVisible.setSelection(getTrendline().getLabel().isVisible());
  btnVisible.setText(Messages.getString("String_Node_Str"));
  btnVisible.addSelectionListener(this);
  lblFont=new Label(cmpLabelInner,SWT.NONE);
  GridData gdLFont=new GridData();
  lblFont.setLayoutData(gdLFont);
  lblFont.setText(Messages.getString("String_Node_Str"));
  fdcFont=new FontDefinitionComposite(cmpLabelInner,SWT.NONE,getContext(),getTrendline().getLabel().getCaption().getFont(),getTrendline().getLabel().getCaption().getColor(),false);
  GridData gdFDCFont=new GridData(GridData.FILL_BOTH);
  gdFDCFont.widthHint=fdcFont.getPreferredSize().x;
  gdFDCFont.grabExcessVerticalSpace=false;
  fdcFont.setLayoutData(gdFDCFont);
  fdcFont.addListener(this);
  lblFill=new Label(cmpLabelInner,SWT.NONE);
  GridData gdLFill=new GridData();
  lblFill.setLayoutData(gdLFill);
  lblFill.setText(Messages.getString("String_Node_Str"));
  fccBackground=new FillChooserComposite(cmpLabelInner,SWT.NONE,getContext(),getTrendline().getLabel().getBackground(),false,false);
  GridData gdFCCBackground=new GridData(GridData.FILL_BOTH);
  gdFCCBackground.heightHint=fccBackground.getPreferredSize().y;
  fccBackground.setLayoutData(gdFCCBackground);
  fccBackground.addListener(this);
  lblShadow=new Label(cmpLabelInner,SWT.NONE);
  GridData gdLBLShadow=new GridData();
  lblShadow.setLayoutData(gdLBLShadow);
  lblShadow.setText(Messages.getString("String_Node_Str"));
  fccShadow=new FillChooserComposite(cmpLabelInner,SWT.NONE,getContext(),getTrendline().getLabel().getShadowColor(),false,false);
  GridData gdFCCShadow=new GridData(GridData.FILL_BOTH);
  fccShadow.setLayoutData(gdFCCShadow);
  fccShadow.addListener(this);
  Group grpOutline=new Group(cmpLabel,SWT.NONE);
  grpOutline.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  grpOutline.setLayout(new FillLayout());
  grpOutline.setText(Messages.getString("String_Node_Str"));
  outlineText=new LineAttributesComposite(grpOutline,SWT.NONE,getContext(),getTrendline().getLabel().getOutline(),true,true,true);
  outlineText.addListener(this);
  icLabel=new InsetsComposite(cmpLabel,SWT.NONE,1,getTrendline().getLabel().getInsets(),getChart().getUnits(),getContext().getUIServiceProvider());
  GridData gdICBlock=new GridData(GridData.FILL_HORIZONTAL);
  gdICBlock.horizontalSpan=2;
  icLabel.setLayoutData(gdICBlock);
  icLabel.addListener(this);
  populateLists();
  setState(btnVisible.getSelection());
  return cmpContent;
}

Fixed version (ground truth):
protected Composite getComponent(Composite parent){
  ChartUIUtil.bindHelp(parent,ChartHelpContextIds.POPUP_SERIES_CURVE_FITTING);
  cmpContent=new Composite(parent,SWT.NONE);
{
    GridLayout glMain=new GridLayout();
    glMain.numColumns=2;
    cmpContent.setLayout(glMain);
  }
  Composite cmpLeft=new Composite(cmpContent,SWT.NONE);
{
    GridLayout gl=new GridLayout();
    gl.numColumns=2;
    cmpLeft.setLayout(gl);
    GridData gd=new GridData(GridData.FILL_VERTICAL);
    cmpLeft.setLayoutData(gd);
  }
  lblValue=new Label(cmpLeft,SWT.NONE);
{
    GridData gd=new GridData();
    lblValue.setLayoutData(gd);
    lblValue.setText(Messages.getString("String_Node_Str"));
  }
  List keys=null;
  if (getContext().getUIServiceProvider() != null) {
    keys=getContext().getUIServiceProvider().getRegisteredKeys();
  }
  txtValue=new ExternalizedTextEditorComposite(cmpLeft,SWT.BORDER | SWT.SINGLE,-1,-1,keys,getContext().getUIServiceProvider(),getTrendline().getLabel().getCaption().getValue());
{
    GridData gd=new GridData();
    gd.widthHint=125;
    txtValue.setLayoutData(gd);
    txtValue.addListener(this);
  }
  lblAnchor=new Label(cmpLeft,SWT.NONE);
  GridData gdLBLAnchor=new GridData();
  lblAnchor.setLayoutData(gdLBLAnchor);
  lblAnchor.setText(Messages.getString("String_Node_Str"));
  cmbAnchor=new Combo(cmpLeft,SWT.DROP_DOWN | SWT.READ_ONLY);
  GridData gdCBAnchor=new GridData(GridData.FILL_HORIZONTAL);
  cmbAnchor.setLayoutData(gdCBAnchor);
  cmbAnchor.addSelectionListener(this);
  cmbAnchor.setVisibleItemCount(30);
  Composite cmpRight=new Composite(cmpContent,SWT.NONE);
{
    cmpRight.setLayout(new FillLayout());
    GridData gd=new GridData(GridData.FILL_HORIZONTAL);
    cmpRight.setLayoutData(gd);
  }
  trendLineText=new LineAttributesComposite(cmpRight,SWT.NONE,getContext(),getTrendline().getLineAttributes(),true,true,false);
  trendLineText.addListener(this);
  Group cmpLabel=new Group(cmpContent,SWT.NONE);
{
    GridLayout gl=new GridLayout(2,false);
    cmpLabel.setLayout(gl);
    GridData gd=new GridData(GridData.FILL_HORIZONTAL);
    gd.horizontalSpan=2;
    cmpLabel.setLayoutData(gd);
    cmpLabel.setText(Messages.getString("String_Node_Str"));
  }
  Composite cmpLabelInner=new Composite(cmpLabel,SWT.NONE);
{
    GridLayout gl=new GridLayout(2,false);
    cmpLabelInner.setLayout(gl);
    GridData gd=new GridData(GridData.FILL_BOTH);
    gd.verticalAlignment=SWT.BEGINNING;
    cmpLabelInner.setLayoutData(gd);
  }
  btnVisible=new Button(cmpLabelInner,SWT.CHECK);
  GridData gdCBVisible=new GridData(GridData.FILL_HORIZONTAL);
  gdCBVisible.horizontalSpan=2;
  btnVisible.setLayoutData(gdCBVisible);
  btnVisible.setSelection(getTrendline().getLabel().isVisible());
  btnVisible.setText(Messages.getString("String_Node_Str"));
  btnVisible.addSelectionListener(this);
  lblFont=new Label(cmpLabelInner,SWT.NONE);
  GridData gdLFont=new GridData();
  lblFont.setLayoutData(gdLFont);
  lblFont.setText(Messages.getString("String_Node_Str"));
  fdcFont=new FontDefinitionComposite(cmpLabelInner,SWT.NONE,getContext(),getTrendline().getLabel().getCaption().getFont(),getTrendline().getLabel().getCaption().getColor(),false);
  GridData gdFDCFont=new GridData(GridData.FILL_BOTH);
  gdFDCFont.widthHint=fdcFont.getPreferredSize().x;
  gdFDCFont.grabExcessVerticalSpace=false;
  fdcFont.setLayoutData(gdFDCFont);
  fdcFont.addListener(this);
  lblFill=new Label(cmpLabelInner,SWT.NONE);
  GridData gdLFill=new GridData();
  lblFill.setLayoutData(gdLFill);
  lblFill.setText(Messages.getString("String_Node_Str"));
  fccBackground=new FillChooserComposite(cmpLabelInner,SWT.NONE,getContext(),getTrendline().getLabel().getBackground(),false,false);
  GridData gdFCCBackground=new GridData(GridData.FILL_BOTH);
  gdFCCBackground.heightHint=fccBackground.getPreferredSize().y;
  fccBackground.setLayoutData(gdFCCBackground);
  fccBackground.addListener(this);
  lblShadow=new Label(cmpLabelInner,SWT.NONE);
  GridData gdLBLShadow=new GridData();
  lblShadow.setLayoutData(gdLBLShadow);
  lblShadow.setText(Messages.getString("String_Node_Str"));
  fccShadow=new FillChooserComposite(cmpLabelInner,SWT.NONE,getContext(),getTrendline().getLabel().getShadowColor(),false,false);
  GridData gdFCCShadow=new GridData(GridData.FILL_BOTH);
  fccShadow.setLayoutData(gdFCCShadow);
  fccShadow.addListener(this);
  Group grpOutline=new Group(cmpLabel,SWT.NONE);
  grpOutline.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  grpOutline.setLayout(new FillLayout());
  grpOutline.setText(Messages.getString("String_Node_Str"));
  outlineText=new LineAttributesComposite(grpOutline,SWT.NONE,getContext(),getTrendline().getLabel().getOutline(),true,true,true);
  outlineText.addListener(this);
  icLabel=new InsetsComposite(cmpLabel,SWT.NONE,1,getTrendline().getLabel().getInsets(),getChart().getUnits(),getContext().getUIServiceProvider());
  GridData gdICBlock=new GridData(GridData.FILL_HORIZONTAL);
  gdICBlock.horizontalSpan=2;
  icLabel.setLayoutData(gdICBlock);
  icLabel.addListener(this);
  populateLists();
  setState(btnVisible.getSelection());
  return cmpContent;
}