Program: 68128
Project: 68128
Buggy source:
protected Composite getComponent(Composite parent){
  ChartUIUtil.bindHelp(parent,ChartHelpContextIds.POPUP_AXIS_MARKERS);
  GridLayout glContent=new GridLayout();
  glContent.numColumns=2;
  glContent.horizontalSpacing=5;
  glContent.verticalSpacing=5;
  glContent.marginHeight=7;
  glContent.marginWidth=7;
  cmpContent=new Composite(parent,SWT.NONE);
  cmpContent.setLayout(glContent);
  GridLayout glList=new GridLayout();
  glList.numColumns=3;
  glList.horizontalSpacing=5;
  glList.verticalSpacing=5;
  glList.marginHeight=0;
  glList.marginWidth=0;
  cmpList=new Composite(cmpContent,SWT.NONE);
  GridData gdCMPList=new GridData(GridData.FILL_BOTH);
  gdCMPList.horizontalSpan=2;
  cmpList.setLayoutData(gdCMPList);
  cmpList.setLayout(glList);
  GridLayout glButtons=new GridLayout();
  glButtons.numColumns=3;
  glButtons.horizontalSpacing=5;
  glButtons.verticalSpacing=5;
  glButtons.marginHeight=5;
  glButtons.marginWidth=0;
  Composite cmpButtons=new Composite(cmpList,SWT.NONE);
  GridData gdCMPButtons=new GridData(GridData.FILL_HORIZONTAL);
  gdCMPButtons.horizontalSpan=3;
  cmpButtons.setLayoutData(gdCMPButtons);
  cmpButtons.setLayout(glButtons);
  btnAddLine=new Button(cmpButtons,SWT.PUSH);
  GridData gdBTNAddLine=new GridData(GridData.FILL_HORIZONTAL);
  btnAddLine.setLayoutData(gdBTNAddLine);
  btnAddLine.setText(Messages.getString("String_Node_Str"));
  btnAddLine.addSelectionListener(this);
  btnAddRange=new Button(cmpButtons,SWT.PUSH);
  GridData gdBTNAddRange=new GridData(GridData.FILL_HORIZONTAL);
  btnAddRange.setLayoutData(gdBTNAddRange);
  btnAddRange.setText(Messages.getString("String_Node_Str"));
  btnAddRange.addSelectionListener(this);
  btnRemove=new Button(cmpButtons,SWT.PUSH);
  GridData gdBTNRemove=new GridData(GridData.FILL_HORIZONTAL);
  btnRemove.setLayoutData(gdBTNRemove);
  btnRemove.setText(Messages.getString("String_Node_Str"));
  btnRemove.addSelectionListener(this);
  lstMarkers=new List(cmpList,SWT.BORDER | SWT.SINGLE | SWT.V_SCROLL);
  GridData gdLSTMarkers=new GridData(GridData.FILL_HORIZONTAL);
  gdLSTMarkers.horizontalSpan=3;
  gdLSTMarkers.heightHint=100;
  lstMarkers.setLayoutData(gdLSTMarkers);
  lstMarkers.addSelectionListener(this);
  slMarkers=new StackLayout();
  slMarkers.marginHeight=0;
  slMarkers.marginWidth=0;
  grpGeneral=new Group(cmpContent,SWT.NONE);
  GridData gdCMPGeneral=new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL);
  grpGeneral.setLayoutData(gdCMPGeneral);
  grpGeneral.setLayout(slMarkers);
  grpGeneral.setText(Messages.getString("String_Node_Str"));
  GridLayout glMarkerLine=new GridLayout();
  glMarkerLine.numColumns=3;
  glMarkerLine.horizontalSpacing=5;
  glMarkerLine.verticalSpacing=5;
  glMarkerLine.marginHeight=7;
  glMarkerLine.marginWidth=7;
  cmpLine=new Composite(grpGeneral,SWT.NONE);
  GridData gdGRPLine=new GridData(GridData.FILL_HORIZONTAL);
  cmpLine.setLayoutData(gdGRPLine);
  cmpLine.setLayout(glMarkerLine);
  lblValue=new Label(cmpLine,SWT.NONE);
  GridData gdLBLValue=new GridData();
  gdLBLValue.horizontalIndent=5;
  lblValue.setLayoutData(gdLBLValue);
  lblValue.setText(Messages.getString("String_Node_Str"));
  txtValue=createValuePicker(cmpLine,null);
  btnLineFormatSpecifier=new Button(cmpLine,SWT.PUSH);
  GridData gdBTNLineFormatSpecifier=new GridData();
  gdBTNLineFormatSpecifier.heightHint=20;
  btnLineFormatSpecifier.setLayoutData(gdBTNLineFormatSpecifier);
  btnLineFormatSpecifier.setToolTipText(Messages.getString("String_Node_Str"));
  btnLineFormatSpecifier.addSelectionListener(this);
  btnLineFormatSpecifier.setText(Messages.getString("String_Node_Str"));
  lblAnchor=new Label(cmpLine,SWT.NONE);
  GridData gdLBLAnchor=new GridData();
  gdLBLAnchor.horizontalIndent=5;
  lblAnchor.setLayoutData(gdLBLAnchor);
  lblAnchor.setText(Messages.getString("String_Node_Str"));
  cmbLineAnchor=new Combo(cmpLine,SWT.DROP_DOWN | SWT.READ_ONLY);
  GridData gdCMBAnchor=new GridData(GridData.FILL_HORIZONTAL);
  gdCMBAnchor.horizontalSpan=2;
  cmbLineAnchor.setLayoutData(gdCMBAnchor);
  cmbLineAnchor.addSelectionListener(this);
  cmbLineAnchor.setVisibleItemCount(30);
  grpMarkerLine=new Group(cmpLine,SWT.NONE);
  GridData gdGRPMarkerLine=new GridData(GridData.FILL_HORIZONTAL);
  gdGRPMarkerLine.horizontalSpan=3;
  grpMarkerLine.setLayoutData(gdGRPMarkerLine);
  grpMarkerLine.setLayout(new FillLayout());
  grpMarkerLine.setText(Messages.getString("String_Node_Str"));
  liacMarkerLine=new LineAttributesComposite(grpMarkerLine,SWT.NONE,getContext(),null,true,true,true);
  liacMarkerLine.addListener(this);
  btnLineTriggers=new Button(cmpLine,SWT.PUSH);
{
    GridData gd=new GridData();
    gd.horizontalSpan=2;
    btnLineTriggers.setLayoutData(gd);
    btnLineTriggers.setText(Messages.getString("String_Node_Str"));
    btnLineTriggers.addSelectionListener(this);
    btnLineTriggers.setEnabled(getChart().getInteractivity().isEnable());
  }
  GridLayout glMarkerRange=new GridLayout();
  glMarkerRange.numColumns=3;
  glMarkerRange.horizontalSpacing=5;
  glMarkerRange.verticalSpacing=5;
  glMarkerRange.marginHeight=7;
  glMarkerRange.marginWidth=7;
  cmpRange=new Composite(grpGeneral,SWT.NONE);
  GridData gdGRPRange=new GridData(GridData.FILL_HORIZONTAL);
  cmpRange.setLayoutData(gdGRPRange);
  cmpRange.setLayout(glMarkerRange);
  lblStartValue=new Label(cmpRange,SWT.NONE);
  GridData gdLBLStartValue=new GridData();
  gdLBLStartValue.horizontalIndent=5;
  lblStartValue.setLayoutData(gdLBLStartValue);
  lblStartValue.setText(Messages.getString("String_Node_Str"));
  txtStartValue=createValuePicker(cmpRange,null);
  btnStartFormatSpecifier=new Button(cmpRange,SWT.PUSH);
  GridData gdBTNStartFormatSpecifier=new GridData();
  gdBTNStartFormatSpecifier.heightHint=18;
  btnStartFormatSpecifier.setLayoutData(gdBTNStartFormatSpecifier);
  btnStartFormatSpecifier.setToolTipText(Messages.getString("String_Node_Str"));
  btnStartFormatSpecifier.addSelectionListener(this);
  btnStartFormatSpecifier.setText(Messages.getString("String_Node_Str"));
  lblEndValue=new Label(cmpRange,SWT.NONE);
  GridData gdLBLEndValue=new GridData();
  gdLBLEndValue.horizontalIndent=5;
  lblEndValue.setLayoutData(gdLBLEndValue);
  lblEndValue.setText(Messages.getString("String_Node_Str"));
  txtEndValue=createValuePicker(cmpRange,null);
  btnEndFormatSpecifier=new Button(cmpRange,SWT.PUSH);
  GridData gdBTNEndFormatSpecifier=new GridData();
  gdBTNEndFormatSpecifier.heightHint=18;
  btnEndFormatSpecifier.setLayoutData(gdBTNEndFormatSpecifier);
  btnEndFormatSpecifier.setToolTipText(Messages.getString("String_Node_Str"));
  btnEndFormatSpecifier.addSelectionListener(this);
  btnEndFormatSpecifier.setText(Messages.getString("String_Node_Str"));
  lblRangeAnchor=new Label(cmpRange,SWT.NONE);
  GridData gdLBLRangeAnchor=new GridData();
  gdLBLRangeAnchor.horizontalIndent=5;
  lblRangeAnchor.setLayoutData(gdLBLRangeAnchor);
  lblRangeAnchor.setText(Messages.getString("String_Node_Str"));
  cmbRangeAnchor=new Combo(cmpRange,SWT.DROP_DOWN | SWT.READ_ONLY);
  GridData gdCMBRangeAnchor=new GridData(GridData.FILL_HORIZONTAL);
  gdCMBRangeAnchor.horizontalSpan=2;
  cmbRangeAnchor.setLayoutData(gdCMBRangeAnchor);
  cmbRangeAnchor.addSelectionListener(this);
  cmbRangeAnchor.setVisibleItemCount(30);
  lblRangeFill=new Label(cmpRange,SWT.NONE);
  GridData gdLBLRangeFill=new GridData();
  gdLBLRangeFill.horizontalIndent=5;
  lblRangeFill.setLayoutData(gdLBLRangeFill);
  lblRangeFill.setText(Messages.getString("String_Node_Str"));
  fccRange=new FillChooserComposite(cmpRange,SWT.NONE,getContext(),null,true,true);
  GridData gdFCCRange=new GridData(GridData.FILL_HORIZONTAL);
  gdFCCRange.horizontalSpan=2;
  fccRange.setLayoutData(gdFCCRange);
  fccRange.addListener(this);
  grpMarkerRange=new Group(cmpRange,SWT.NONE);
  GridData gdGRPMarkerRange=new GridData(GridData.FILL_HORIZONTAL);
  gdGRPMarkerRange.horizontalSpan=3;
  grpMarkerRange.setLayoutData(gdGRPMarkerRange);
  grpMarkerRange.setLayout(new FillLayout());
  grpMarkerRange.setText(Messages.getString("String_Node_Str"));
  liacMarkerRange=new LineAttributesComposite(grpMarkerRange,SWT.NONE,getContext(),null,true,true,true);
  liacMarkerRange.addListener(this);
  btnRangeTriggers=new Button(cmpRange,SWT.PUSH);
{
    GridData gd=new GridData();
    gd.horizontalSpan=2;
    btnRangeTriggers.setLayoutData(gd);
    btnRangeTriggers.setText(Messages.getString("String_Node_Str"));
    btnRangeTriggers.addSelectionListener(this);
    btnRangeTriggers.setEnabled(getChart().getInteractivity().isEnable());
  }
  LabelAttributesContext attributesContext=new LabelAttributesContext();
  attributesContext.isPositionEnabled=false;
  attributesContext.isFontAlignmentEnabled=false;
  attributesContext.isLabelEnabled=true;
  lacLabel=new LabelAttributesComposite(cmpContent,SWT.NONE,getContext(),attributesContext,Messages.getString("String_Node_Str"),Position.ABOVE_LITERAL,LabelImpl.create(),getChart().getUnits());
  GridData gdLACLabel=new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL);
  lacLabel.setLayoutData(gdLACLabel);
  lacLabel.addListener(this);
  slMarkers.topControl=cmpLine;
  populateLists();
  refreshButtons();
  return cmpContent;
}

Fixed version (ground truth):
protected Composite getComponent(Composite parent){
  ChartUIUtil.bindHelp(parent,ChartHelpContextIds.POPUP_AXIS_MARKERS);
  GridLayout glContent=new GridLayout();
  glContent.numColumns=2;
  glContent.horizontalSpacing=5;
  glContent.verticalSpacing=5;
  glContent.marginHeight=7;
  glContent.marginWidth=7;
  cmpContent=new Composite(parent,SWT.NONE);
  cmpContent.setLayout(glContent);
  GridLayout glList=new GridLayout();
  glList.numColumns=3;
  glList.horizontalSpacing=5;
  glList.verticalSpacing=5;
  glList.marginHeight=0;
  glList.marginWidth=0;
  cmpList=new Composite(cmpContent,SWT.NONE);
  GridData gdCMPList=new GridData(GridData.FILL_BOTH);
  gdCMPList.horizontalSpan=2;
  cmpList.setLayoutData(gdCMPList);
  cmpList.setLayout(glList);
  GridLayout glButtons=new GridLayout();
  glButtons.numColumns=3;
  glButtons.horizontalSpacing=5;
  glButtons.verticalSpacing=5;
  glButtons.marginHeight=5;
  glButtons.marginWidth=0;
  Composite cmpButtons=new Composite(cmpList,SWT.NONE);
  GridData gdCMPButtons=new GridData(GridData.FILL_HORIZONTAL);
  gdCMPButtons.horizontalSpan=3;
  cmpButtons.setLayoutData(gdCMPButtons);
  cmpButtons.setLayout(glButtons);
  btnAddLine=new Button(cmpButtons,SWT.PUSH);
  GridData gdBTNAddLine=new GridData(GridData.FILL_HORIZONTAL);
  btnAddLine.setLayoutData(gdBTNAddLine);
  btnAddLine.setText(Messages.getString("String_Node_Str"));
  btnAddLine.addSelectionListener(this);
  btnAddRange=new Button(cmpButtons,SWT.PUSH);
  GridData gdBTNAddRange=new GridData(GridData.FILL_HORIZONTAL);
  btnAddRange.setLayoutData(gdBTNAddRange);
  btnAddRange.setText(Messages.getString("String_Node_Str"));
  btnAddRange.addSelectionListener(this);
  btnRemove=new Button(cmpButtons,SWT.PUSH);
  GridData gdBTNRemove=new GridData(GridData.FILL_HORIZONTAL);
  btnRemove.setLayoutData(gdBTNRemove);
  btnRemove.setText(Messages.getString("String_Node_Str"));
  btnRemove.addSelectionListener(this);
  lstMarkers=new List(cmpList,SWT.BORDER | SWT.SINGLE | SWT.V_SCROLL);
  GridData gdLSTMarkers=new GridData(GridData.FILL_HORIZONTAL);
  gdLSTMarkers.horizontalSpan=3;
  gdLSTMarkers.heightHint=100;
  lstMarkers.setLayoutData(gdLSTMarkers);
  lstMarkers.addSelectionListener(this);
  slMarkers=new StackLayout();
  slMarkers.marginHeight=0;
  slMarkers.marginWidth=0;
  grpGeneral=new Group(cmpContent,SWT.NONE);
  GridData gdCMPGeneral=new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL);
  grpGeneral.setLayoutData(gdCMPGeneral);
  grpGeneral.setLayout(slMarkers);
  grpGeneral.setText(Messages.getString("String_Node_Str"));
  GridLayout glMarkerLine=new GridLayout();
  glMarkerLine.numColumns=3;
  glMarkerLine.horizontalSpacing=5;
  glMarkerLine.verticalSpacing=5;
  glMarkerLine.marginHeight=7;
  glMarkerLine.marginWidth=7;
  cmpLine=new Composite(grpGeneral,SWT.NONE);
  GridData gdGRPLine=new GridData(GridData.FILL_HORIZONTAL);
  cmpLine.setLayoutData(gdGRPLine);
  cmpLine.setLayout(glMarkerLine);
  lblValue=new Label(cmpLine,SWT.NONE);
  GridData gdLBLValue=new GridData();
  gdLBLValue.horizontalIndent=5;
  lblValue.setLayoutData(gdLBLValue);
  lblValue.setText(Messages.getString("String_Node_Str"));
  txtValue=createValuePicker(cmpLine,null);
  btnLineFormatSpecifier=new Button(cmpLine,SWT.PUSH);
  GridData gdBTNLineFormatSpecifier=new GridData();
  btnLineFormatSpecifier.setLayoutData(gdBTNLineFormatSpecifier);
  btnLineFormatSpecifier.setToolTipText(Messages.getString("String_Node_Str"));
  btnLineFormatSpecifier.addSelectionListener(this);
  btnLineFormatSpecifier.setText(Messages.getString("String_Node_Str"));
  lblAnchor=new Label(cmpLine,SWT.NONE);
  GridData gdLBLAnchor=new GridData();
  gdLBLAnchor.horizontalIndent=5;
  lblAnchor.setLayoutData(gdLBLAnchor);
  lblAnchor.setText(Messages.getString("String_Node_Str"));
  cmbLineAnchor=new Combo(cmpLine,SWT.DROP_DOWN | SWT.READ_ONLY);
  GridData gdCMBAnchor=new GridData(GridData.FILL_HORIZONTAL);
  gdCMBAnchor.horizontalSpan=2;
  cmbLineAnchor.setLayoutData(gdCMBAnchor);
  cmbLineAnchor.addSelectionListener(this);
  cmbLineAnchor.setVisibleItemCount(30);
  grpMarkerLine=new Group(cmpLine,SWT.NONE);
  GridData gdGRPMarkerLine=new GridData(GridData.FILL_HORIZONTAL);
  gdGRPMarkerLine.horizontalSpan=3;
  grpMarkerLine.setLayoutData(gdGRPMarkerLine);
  grpMarkerLine.setLayout(new FillLayout());
  grpMarkerLine.setText(Messages.getString("String_Node_Str"));
  liacMarkerLine=new LineAttributesComposite(grpMarkerLine,SWT.NONE,getContext(),null,true,true,true);
  liacMarkerLine.addListener(this);
  btnLineTriggers=new Button(cmpLine,SWT.PUSH);
{
    GridData gd=new GridData();
    gd.horizontalSpan=2;
    btnLineTriggers.setLayoutData(gd);
    btnLineTriggers.setText(Messages.getString("String_Node_Str"));
    btnLineTriggers.addSelectionListener(this);
    btnLineTriggers.setEnabled(getChart().getInteractivity().isEnable());
  }
  GridLayout glMarkerRange=new GridLayout();
  glMarkerRange.numColumns=3;
  glMarkerRange.horizontalSpacing=5;
  glMarkerRange.verticalSpacing=5;
  glMarkerRange.marginHeight=7;
  glMarkerRange.marginWidth=7;
  cmpRange=new Composite(grpGeneral,SWT.NONE);
  GridData gdGRPRange=new GridData(GridData.FILL_HORIZONTAL);
  cmpRange.setLayoutData(gdGRPRange);
  cmpRange.setLayout(glMarkerRange);
  lblStartValue=new Label(cmpRange,SWT.NONE);
  GridData gdLBLStartValue=new GridData();
  gdLBLStartValue.horizontalIndent=5;
  lblStartValue.setLayoutData(gdLBLStartValue);
  lblStartValue.setText(Messages.getString("String_Node_Str"));
  txtStartValue=createValuePicker(cmpRange,null);
  btnStartFormatSpecifier=new Button(cmpRange,SWT.PUSH);
  GridData gdBTNStartFormatSpecifier=new GridData();
  gdBTNStartFormatSpecifier.heightHint=18;
  btnStartFormatSpecifier.setLayoutData(gdBTNStartFormatSpecifier);
  btnStartFormatSpecifier.setToolTipText(Messages.getString("String_Node_Str"));
  btnStartFormatSpecifier.addSelectionListener(this);
  btnStartFormatSpecifier.setText(Messages.getString("String_Node_Str"));
  lblEndValue=new Label(cmpRange,SWT.NONE);
  GridData gdLBLEndValue=new GridData();
  gdLBLEndValue.horizontalIndent=5;
  lblEndValue.setLayoutData(gdLBLEndValue);
  lblEndValue.setText(Messages.getString("String_Node_Str"));
  txtEndValue=createValuePicker(cmpRange,null);
  btnEndFormatSpecifier=new Button(cmpRange,SWT.PUSH);
  GridData gdBTNEndFormatSpecifier=new GridData();
  gdBTNEndFormatSpecifier.heightHint=18;
  btnEndFormatSpecifier.setLayoutData(gdBTNEndFormatSpecifier);
  btnEndFormatSpecifier.setToolTipText(Messages.getString("String_Node_Str"));
  btnEndFormatSpecifier.addSelectionListener(this);
  btnEndFormatSpecifier.setText(Messages.getString("String_Node_Str"));
  lblRangeAnchor=new Label(cmpRange,SWT.NONE);
  GridData gdLBLRangeAnchor=new GridData();
  gdLBLRangeAnchor.horizontalIndent=5;
  lblRangeAnchor.setLayoutData(gdLBLRangeAnchor);
  lblRangeAnchor.setText(Messages.getString("String_Node_Str"));
  cmbRangeAnchor=new Combo(cmpRange,SWT.DROP_DOWN | SWT.READ_ONLY);
  GridData gdCMBRangeAnchor=new GridData(GridData.FILL_HORIZONTAL);
  gdCMBRangeAnchor.horizontalSpan=2;
  cmbRangeAnchor.setLayoutData(gdCMBRangeAnchor);
  cmbRangeAnchor.addSelectionListener(this);
  cmbRangeAnchor.setVisibleItemCount(30);
  lblRangeFill=new Label(cmpRange,SWT.NONE);
  GridData gdLBLRangeFill=new GridData();
  gdLBLRangeFill.horizontalIndent=5;
  lblRangeFill.setLayoutData(gdLBLRangeFill);
  lblRangeFill.setText(Messages.getString("String_Node_Str"));
  fccRange=new FillChooserComposite(cmpRange,SWT.NONE,getContext(),null,true,true);
  GridData gdFCCRange=new GridData(GridData.FILL_HORIZONTAL);
  gdFCCRange.horizontalSpan=2;
  fccRange.setLayoutData(gdFCCRange);
  fccRange.addListener(this);
  grpMarkerRange=new Group(cmpRange,SWT.NONE);
  GridData gdGRPMarkerRange=new GridData(GridData.FILL_HORIZONTAL);
  gdGRPMarkerRange.horizontalSpan=3;
  grpMarkerRange.setLayoutData(gdGRPMarkerRange);
  grpMarkerRange.setLayout(new FillLayout());
  grpMarkerRange.setText(Messages.getString("String_Node_Str"));
  liacMarkerRange=new LineAttributesComposite(grpMarkerRange,SWT.NONE,getContext(),null,true,true,true);
  liacMarkerRange.addListener(this);
  btnRangeTriggers=new Button(cmpRange,SWT.PUSH);
{
    GridData gd=new GridData();
    gd.horizontalSpan=2;
    btnRangeTriggers.setLayoutData(gd);
    btnRangeTriggers.setText(Messages.getString("String_Node_Str"));
    btnRangeTriggers.addSelectionListener(this);
    btnRangeTriggers.setEnabled(getChart().getInteractivity().isEnable());
  }
  LabelAttributesContext attributesContext=new LabelAttributesContext();
  attributesContext.isPositionEnabled=false;
  attributesContext.isFontAlignmentEnabled=false;
  attributesContext.isLabelEnabled=true;
  lacLabel=new LabelAttributesComposite(cmpContent,SWT.NONE,getContext(),attributesContext,Messages.getString("String_Node_Str"),Position.ABOVE_LITERAL,LabelImpl.create(),getChart().getUnits());
  GridData gdLACLabel=new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL);
  lacLabel.setLayoutData(gdLACLabel);
  lacLabel.addListener(this);
  slMarkers.topControl=cmpLine;
  populateLists();
  refreshButtons();
  return cmpContent;
}