Program: 68127
Project: 68127
Buggy source:
public void createControl(Composite parent){
  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);
  }
  Composite cmpBasic=new Composite(cmpContent,SWT.NONE);
{
    cmpBasic.setLayout(new GridLayout(3,false));
    cmpBasic.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  }
  if (getAxisAngleType() == AngleType.X) {
    btnCategoryAxis=new Button(cmpBasic,SWT.CHECK);
{
      btnCategoryAxis.setText(Messages.getString("String_Node_Str"));
      btnCategoryAxis.addSelectionListener(this);
      btnCategoryAxis.setSelection(getAxisForProcessing().isCategoryAxis());
      btnCategoryAxis.setEnabled(!AxisType.TEXT_LITERAL.equals(getAxisForProcessing().getType()));
    }
    btnReverse=new Button(cmpBasic,SWT.CHECK);
{
      GridData gd=new GridData();
      gd.horizontalSpan=2;
      btnCategoryAxis.setLayoutData(gd);
      btnReverse.setText(Messages.getString("String_Node_Str"));
      btnReverse.addSelectionListener(this);
      btnReverse.setSelection(((ChartWithAxes)getChart()).isReverseCategory());
      btnReverse.setEnabled(btnCategoryAxis.getSelection());
    }
  }
  Label lblTitle=new Label(cmpBasic,SWT.NONE);
  lblTitle.setText(Messages.getString("String_Node_Str"));
  List<String> keys=null;
  IUIServiceProvider serviceprovider=getContext().getUIServiceProvider();
  if (serviceprovider != null) {
    keys=serviceprovider.getRegisteredKeys();
  }
  txtTitle=new ExternalizedTextEditorComposite(cmpBasic,SWT.BORDER | SWT.SINGLE,-1,-1,keys,serviceprovider,getAxisForProcessing().getTitle().getCaption().getValue());
{
    GridData gd=new GridData();
    gd.widthHint=250;
    gd.horizontalIndent=5;
    txtTitle.setLayoutData(gd);
    txtTitle.addListener(this);
  }
  btnTitleVisible=new Button(cmpBasic,SWT.CHECK);
{
    btnTitleVisible.setText(Messages.getString("String_Node_Str"));
    btnTitleVisible.setSelection(getChart().getTitle().isVisible());
    btnTitleVisible.addSelectionListener(this);
    btnTitleVisible.setSelection(getAxisForProcessing().getTitle().isVisible());
  }
  if (getAxisAngleType() != AngleType.Z) {
    Label lblType=new Label(cmpBasic,SWT.NONE);
    lblType.setText(Messages.getString("String_Node_Str"));
    cmbTypes=new Combo(cmpBasic,SWT.DROP_DOWN | SWT.READ_ONLY);
{
      GridData gd=new GridData();
      gd.widthHint=220;
      gd.horizontalIndent=5;
      cmbTypes.setLayoutData(gd);
      cmbTypes.addSelectionListener(this);
    }
    btnFormatSpecifier=new Button(cmpBasic,SWT.PUSH);
{
      GridData gdBTNFormatSpecifier=new GridData();
      ChartUIUtil.setChartImageButtonHeightByPlatform(gdBTNFormatSpecifier);
      gdBTNFormatSpecifier.horizontalIndent=-3;
      btnFormatSpecifier.setLayoutData(gdBTNFormatSpecifier);
      btnFormatSpecifier.setToolTipText(Messages.getString("String_Node_Str"));
      btnFormatSpecifier.addSelectionListener(this);
      btnFormatSpecifier.setText(Messages.getString("String_Node_Str"));
    }
    if (getChart().getDimension().getValue() != ChartDimension.THREE_DIMENSIONAL) {
      Label lblOrigin=new Label(cmpBasic,SWT.NONE);
      lblOrigin.setText(Messages.getString("String_Node_Str"));
      cmbOrigin=new Combo(cmpBasic,SWT.DROP_DOWN | SWT.READ_ONLY);
{
        GridData gd=new GridData();
        gd.widthHint=220;
        gd.horizontalSpan=2;
        gd.horizontalIndent=5;
        cmbOrigin.setLayoutData(gd);
        cmbOrigin.addSelectionListener(this);
      }
      boolean bValueOrigin=false;
      if (getAxisForProcessing().getOrigin() != null) {
        if (getAxisForProcessing().getOrigin().getType().equals(IntersectionType.VALUE_LITERAL)) {
          bValueOrigin=true;
        }
      }
      lblValue=new Label(cmpBasic,SWT.NONE);
{
        lblValue.setText(Messages.getString("String_Node_Str"));
        lblValue.setEnabled(bValueOrigin);
      }
      txtValue=createDataElementComposite(cmpBasic);
{
        GridData gd=new GridData();
        gd.widthHint=245;
        gd.horizontalSpan=2;
        gd.horizontalIndent=5;
        txtValue.setLayoutData(gd);
        txtValue.addListener(this);
        txtValue.setEnabled(bValueOrigin);
      }
    }
    populateLists();
  }
  new Label(cmpBasic,SWT.NONE).setText(Messages.getString("String_Node_Str"));
  fdcFont=new FontDefinitionComposite(cmpBasic,SWT.NONE,getContext(),getAxisForProcessing().getLabel().getCaption().getFont(),getAxisForProcessing().getLabel().getCaption().getColor(),false);
{
    GridData gdFDCFont=new GridData();
    gdFDCFont.widthHint=250;
    gdFDCFont.horizontalIndent=5;
    fdcFont.setLayoutData(gdFDCFont);
    fdcFont.addListener(this);
  }
  Composite cmpLabel=new Composite(cmpBasic,SWT.NONE);
{
    GridLayout layout=new GridLayout(2,false);
    layout.marginHeight=0;
    layout.marginWidth=0;
    cmpLabel.setLayout(layout);
  }
  btnLabelVisible=new Button(cmpLabel,SWT.CHECK);
{
    btnLabelVisible.setText(Messages.getString("String_Node_Str"));
    GridData gd=new GridData(GridData.FILL_HORIZONTAL);
    btnLabelVisible.setLayoutData(gd);
    btnLabelVisible.addSelectionListener(this);
    btnLabelVisible.setSelection(getAxisForProcessing().getLabel().isVisible());
  }
  cbStaggered=new Button(cmpLabel,SWT.CHECK);
{
    Axis ax=getAxisForProcessing();
    boolean bStaggered=ax.isSetStaggered() && ax.isStaggered();
    boolean bNot3D=!isChart3D(ax);
    cbStaggered.setSelection(bNot3D && bStaggered);
    cbStaggered.setText(Messages.getString("String_Node_Str"));
    cbStaggered.addSelectionListener(this);
    cbStaggered.setEnabled(bNot3D);
  }
  if (getChart().getDimension().getValue() != ChartDimension.THREE_DIMENSIONAL) {
    Label l=new Label(cmpBasic,SWT.NONE);
    l.setText(Messages.getString("String_Node_Str"));
    FieldAssistHelper.getInstance().addRequiredFieldIndicator(l);
    Composite cmpEditorWithUnit=new Composite(cmpBasic,SWT.NONE);
{
      GridData gd=new GridData();
      gd.widthHint=250;
      cmpEditorWithUnit.setLayoutData(gd);
      GridLayout layout=new GridLayout(2,false);
      layout.marginWidth=0;
      layout.marginHeight=0;
      cmpEditorWithUnit.setLayout(layout);
    }
    lneLabelSpan=new LocalizedNumberEditorComposite(cmpEditorWithUnit,SWT.BORDER);
    new TextNumberEditorAssistField(lneLabelSpan.getTextControl(),null);
{
      lneLabelSpan.setValue(getAxisForProcessing().getLabelSpan());
      lneLabelSpan.addModifyListener(this);
      GridData gd=new GridData(GridData.FILL_HORIZONTAL);
      gd.horizontalIndent=5;
      lneLabelSpan.setLayoutData(gd);
      lneLabelSpan.setEnabled(getAxisForProcessing().isSetLabelSpan());
    }
    new Label(cmpEditorWithUnit,SWT.NONE).setText(Messages.getString("String_Node_Str"));
    btnFixLabelSpan=new Button(cmpBasic,SWT.CHECK);
{
      btnFixLabelSpan.setText(Messages.getString("String_Node_Str"));
      btnFixLabelSpan.addSelectionListener(this);
      btnFixLabelSpan.setSelection(getAxisForProcessing().isSetLabelSpan());
    }
  }
  createButtonGroup(cmpContent);
  setStateOfTitle();
  setStateOfLabel();
}

Fixed version (ground truth):
public void createControl(Composite parent){
  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);
  }
  Composite cmpBasic=new Composite(cmpContent,SWT.NONE);
{
    cmpBasic.setLayout(new GridLayout(3,false));
    cmpBasic.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  }
  if (getAxisAngleType() == AngleType.X) {
    btnCategoryAxis=new Button(cmpBasic,SWT.CHECK);
{
      btnCategoryAxis.setText(Messages.getString("String_Node_Str"));
      btnCategoryAxis.addSelectionListener(this);
      btnCategoryAxis.setSelection(getAxisForProcessing().isCategoryAxis());
      btnCategoryAxis.setEnabled(!AxisType.TEXT_LITERAL.equals(getAxisForProcessing().getType()));
    }
    btnReverse=new Button(cmpBasic,SWT.CHECK);
{
      GridData gd=new GridData();
      gd.horizontalSpan=2;
      btnCategoryAxis.setLayoutData(gd);
      btnReverse.setText(Messages.getString("String_Node_Str"));
      btnReverse.addSelectionListener(this);
      btnReverse.setSelection(((ChartWithAxes)getChart()).isReverseCategory());
      btnReverse.setEnabled(btnCategoryAxis.getSelection());
    }
  }
  Label lblTitle=new Label(cmpBasic,SWT.NONE);
  lblTitle.setText(Messages.getString("String_Node_Str"));
  List<String> keys=null;
  IUIServiceProvider serviceprovider=getContext().getUIServiceProvider();
  if (serviceprovider != null) {
    keys=serviceprovider.getRegisteredKeys();
  }
  txtTitle=new ExternalizedTextEditorComposite(cmpBasic,SWT.BORDER | SWT.SINGLE,-1,-1,keys,serviceprovider,getAxisForProcessing().getTitle().getCaption().getValue());
{
    GridData gd=new GridData();
    gd.widthHint=250;
    gd.horizontalIndent=5;
    txtTitle.setLayoutData(gd);
    txtTitle.addListener(this);
  }
  btnTitleVisible=new Button(cmpBasic,SWT.CHECK);
{
    btnTitleVisible.setText(Messages.getString("String_Node_Str"));
    btnTitleVisible.setSelection(getChart().getTitle().isVisible());
    btnTitleVisible.addSelectionListener(this);
    btnTitleVisible.setSelection(getAxisForProcessing().getTitle().isVisible());
  }
  if (getAxisAngleType() != AngleType.Z) {
    Label lblType=new Label(cmpBasic,SWT.NONE);
    lblType.setText(Messages.getString("String_Node_Str"));
    cmbTypes=new Combo(cmpBasic,SWT.DROP_DOWN | SWT.READ_ONLY);
{
      GridData gd=new GridData();
      gd.widthHint=220;
      gd.horizontalIndent=5;
      cmbTypes.setLayoutData(gd);
      cmbTypes.addSelectionListener(this);
    }
    btnFormatSpecifier=new Button(cmpBasic,SWT.PUSH);
{
      GridData gdBTNFormatSpecifier=new GridData();
      gdBTNFormatSpecifier.horizontalIndent=-3;
      btnFormatSpecifier.setLayoutData(gdBTNFormatSpecifier);
      btnFormatSpecifier.setToolTipText(Messages.getString("String_Node_Str"));
      btnFormatSpecifier.addSelectionListener(this);
      btnFormatSpecifier.setText(Messages.getString("String_Node_Str"));
    }
    if (getChart().getDimension().getValue() != ChartDimension.THREE_DIMENSIONAL) {
      Label lblOrigin=new Label(cmpBasic,SWT.NONE);
      lblOrigin.setText(Messages.getString("String_Node_Str"));
      cmbOrigin=new Combo(cmpBasic,SWT.DROP_DOWN | SWT.READ_ONLY);
{
        GridData gd=new GridData();
        gd.widthHint=220;
        gd.horizontalSpan=2;
        gd.horizontalIndent=5;
        cmbOrigin.setLayoutData(gd);
        cmbOrigin.addSelectionListener(this);
      }
      boolean bValueOrigin=false;
      if (getAxisForProcessing().getOrigin() != null) {
        if (getAxisForProcessing().getOrigin().getType().equals(IntersectionType.VALUE_LITERAL)) {
          bValueOrigin=true;
        }
      }
      lblValue=new Label(cmpBasic,SWT.NONE);
{
        lblValue.setText(Messages.getString("String_Node_Str"));
        lblValue.setEnabled(bValueOrigin);
      }
      txtValue=createDataElementComposite(cmpBasic);
{
        GridData gd=new GridData();
        gd.widthHint=245;
        gd.horizontalSpan=2;
        gd.horizontalIndent=5;
        txtValue.setLayoutData(gd);
        txtValue.addListener(this);
        txtValue.setEnabled(bValueOrigin);
      }
    }
    populateLists();
  }
  new Label(cmpBasic,SWT.NONE).setText(Messages.getString("String_Node_Str"));
  fdcFont=new FontDefinitionComposite(cmpBasic,SWT.NONE,getContext(),getAxisForProcessing().getLabel().getCaption().getFont(),getAxisForProcessing().getLabel().getCaption().getColor(),false);
{
    GridData gdFDCFont=new GridData();
    gdFDCFont.widthHint=250;
    gdFDCFont.horizontalIndent=5;
    fdcFont.setLayoutData(gdFDCFont);
    fdcFont.addListener(this);
  }
  Composite cmpLabel=new Composite(cmpBasic,SWT.NONE);
{
    GridLayout layout=new GridLayout(2,false);
    layout.marginHeight=0;
    layout.marginWidth=0;
    cmpLabel.setLayout(layout);
  }
  btnLabelVisible=new Button(cmpLabel,SWT.CHECK);
{
    btnLabelVisible.setText(Messages.getString("String_Node_Str"));
    GridData gd=new GridData(GridData.FILL_HORIZONTAL);
    btnLabelVisible.setLayoutData(gd);
    btnLabelVisible.addSelectionListener(this);
    btnLabelVisible.setSelection(getAxisForProcessing().getLabel().isVisible());
  }
  cbStaggered=new Button(cmpLabel,SWT.CHECK);
{
    Axis ax=getAxisForProcessing();
    boolean bStaggered=ax.isSetStaggered() && ax.isStaggered();
    boolean bNot3D=!isChart3D(ax);
    cbStaggered.setSelection(bNot3D && bStaggered);
    cbStaggered.setText(Messages.getString("String_Node_Str"));
    cbStaggered.addSelectionListener(this);
    cbStaggered.setEnabled(bNot3D);
  }
  if (getChart().getDimension().getValue() != ChartDimension.THREE_DIMENSIONAL) {
    Label l=new Label(cmpBasic,SWT.NONE);
    l.setText(Messages.getString("String_Node_Str"));
    FieldAssistHelper.getInstance().addRequiredFieldIndicator(l);
    Composite cmpEditorWithUnit=new Composite(cmpBasic,SWT.NONE);
{
      GridData gd=new GridData();
      gd.widthHint=250;
      cmpEditorWithUnit.setLayoutData(gd);
      GridLayout layout=new GridLayout(2,false);
      layout.marginWidth=0;
      layout.marginHeight=0;
      cmpEditorWithUnit.setLayout(layout);
    }
    lneLabelSpan=new LocalizedNumberEditorComposite(cmpEditorWithUnit,SWT.BORDER);
    new TextNumberEditorAssistField(lneLabelSpan.getTextControl(),null);
{
      lneLabelSpan.setValue(getAxisForProcessing().getLabelSpan());
      lneLabelSpan.addModifyListener(this);
      GridData gd=new GridData(GridData.FILL_HORIZONTAL);
      gd.horizontalIndent=5;
      lneLabelSpan.setLayoutData(gd);
      lneLabelSpan.setEnabled(getAxisForProcessing().isSetLabelSpan());
    }
    new Label(cmpEditorWithUnit,SWT.NONE).setText(Messages.getString("String_Node_Str"));
    btnFixLabelSpan=new Button(cmpBasic,SWT.CHECK);
{
      btnFixLabelSpan.setText(Messages.getString("String_Node_Str"));
      btnFixLabelSpan.addSelectionListener(this);
      btnFixLabelSpan.setSelection(getAxisForProcessing().isSetLabelSpan());
    }
  }
  createButtonGroup(cmpContent);
  setStateOfTitle();
  setStateOfLabel();
}