Program: 66144
Project: 66144
Buggy source:
@Override 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(4,false));
    cmpBasic.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  }
  if (getAxisAngleType() == AngleType.X) {
    btnCategoryAxis=new TristateCheckbox(cmpBasic,SWT.NONE);
    btnCategoryAxis.setText(Messages.getString("String_Node_Str"));
    GridData gd=new GridData();
    gd.horizontalSpan=2;
    btnCategoryAxis.setLayoutData(gd);
    btnCategoryAxis.setSelectionState(getAxisForProcessing().isSetCategoryAxis() ? (getAxisForProcessing().isCategoryAxis() ? TristateCheckbox.STATE_SELECTED : TristateCheckbox.STATE_UNSELECTED) : TristateCheckbox.STATE_GRAYED);
    updateCategoryAxisUI(!getAxisForProcessing().isSetType() || !AxisType.TEXT_LITERAL.equals(getAxisForProcessing().getType()));
    btnCategoryAxis.addSelectionListener(this);
    btnReverse=new TristateCheckbox(cmpBasic,SWT.NONE);
    btnReverse.setText(Messages.getString("String_Node_Str"));
    gd=new GridData();
    gd.horizontalSpan=2;
    btnReverse.setLayoutData(gd);
    btnReverse.setSelectionState(((ChartWithAxes)getChart()).isSetReverseCategory() ? (((ChartWithAxes)getChart()).isReverseCategory() ? TristateCheckbox.STATE_SELECTED : TristateCheckbox.STATE_UNSELECTED) : TristateCheckbox.STATE_GRAYED);
    updateReverseUI(ChartUIExtensionUtil.canEnableUI(btnCategoryAxis));
    btnReverse.addSelectionListener(this);
  }
  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,getTitleValue());
{
    GridData gd=new GridData();
    gd.widthHint=230;
    gd.horizontalIndent=5;
    txtTitle.setLayoutData(gd);
    txtTitle.addListener(this);
  }
  btnTitleVisible=new TristateCheckbox(cmpBasic,SWT.NONE);
  btnTitleVisible.setText(Messages.getString("String_Node_Str"));
  btnTitleVisible.setSelectionState(getAxisForProcessing().getTitle().isSetVisible() ? (getAxisForProcessing().getTitle().isVisible() ? TristateCheckbox.STATE_SELECTED : TristateCheckbox.STATE_UNSELECTED) : TristateCheckbox.STATE_GRAYED);
  btnTitleVisible.addSelectionListener(this);
  btnTitleContentAuto=new Button(cmpBasic,SWT.CHECK);
  btnTitleContentAuto.setText(ChartUIExtensionUtil.getAutoMessage());
  btnTitleContentAuto.setSelection(getAxisForProcessing().getTitle().getCaption().getValue() == null);
  btnTitleContentAuto.addSelectionListener(this);
  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;
      gdBTNFormatSpecifier.horizontalSpan=2;
      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=3;
        gd.horizontalIndent=5;
        cmbOrigin.setLayoutData(gd);
        cmbOrigin.addSelectionListener(this);
      }
      boolean bValueOrigin=false;
      if (getAxisForProcessing().getOrigin() != null) {
        if (getAxisForProcessing().getOrigin().isSetType() && 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=1;
        gd.horizontalIndent=5;
        txtValue.setLayoutData(gd);
        txtValue.addListener(this);
        txtValue.setEnabled(bValueOrigin);
      }
      btnTxtValueAuto=new Button(cmpBasic,SWT.CHECK);
      GridData gd=new GridData();
      gd.horizontalSpan=2;
      btnTxtValueAuto.setLayoutData(gd);
      btnTxtValueAuto.setText(ChartUIExtensionUtil.getAutoMessage());
      btnTxtValueAuto.setSelection(!bValueOrigin || getAxisForProcessing().getOrigin().getValue() == null);
      btnTxtValueAuto.setEnabled(bValueOrigin);
      txtValue.setEnabled(bValueOrigin && !btnTxtValueAuto.getSelection());
      btnTxtValueAuto.addSelectionListener(this);
    }
    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);
  GridData gd=new GridData();
  gd.horizontalSpan=2;
  cmpLabel.setLayoutData(gd);
{
    GridLayout layout=new GridLayout(2,false);
    layout.marginHeight=0;
    layout.marginWidth=0;
    cmpLabel.setLayout(layout);
  }
  btnLabelVisible=new TristateCheckbox(cmpLabel,SWT.NONE);
  btnLabelVisible.setText(Messages.getString("String_Node_Str"));
  gd=new GridData(GridData.FILL_HORIZONTAL);
  btnLabelVisible.setLayoutData(gd);
  btnLabelVisible.setSelectionState(getAxisForProcessing().getLabel().isSetVisible() ? (getAxisForProcessing().getLabel().isVisible() ? TristateCheckbox.STATE_SELECTED : TristateCheckbox.STATE_UNSELECTED) : TristateCheckbox.STATE_GRAYED);
  btnLabelVisible.addSelectionListener(this);
  btnStaggered=new TristateCheckbox(cmpLabel,SWT.NONE);
  btnStaggered.setText(Messages.getString("String_Node_Str"));
{
    Axis ax=getAxisForProcessing();
    boolean bNot3D=!isChart3D();
    btnStaggered.setSelectionState(ax.isSetStaggered() ? ((ax.isStaggered() && bNot3D) ? TristateCheckbox.STATE_SELECTED : TristateCheckbox.STATE_UNSELECTED) : TristateCheckbox.STATE_GRAYED);
    btnStaggered.setEnabled(bNot3D);
    btnStaggered.addSelectionListener(this);
  }
  createLabelSpan(cmpBasic);
  createButtonGroup(cmpContent);
  setStateOfTitle();
  setStateOfLabel();
}

Fixed version (ground truth):
@Override 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(4,false));
    cmpBasic.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  }
  if (getAxisAngleType() == AngleType.X) {
    btnCategoryAxis=new TristateCheckbox(cmpBasic,SWT.NONE);
    btnCategoryAxis.setText(Messages.getString("String_Node_Str"));
    GridData gd=new GridData();
    gd.horizontalSpan=2;
    btnCategoryAxis.setLayoutData(gd);
    btnCategoryAxis.setSelectionState(getAxisForProcessing().isSetCategoryAxis() ? (getAxisForProcessing().isCategoryAxis() ? TristateCheckbox.STATE_SELECTED : TristateCheckbox.STATE_UNSELECTED) : TristateCheckbox.STATE_GRAYED);
    updateCategoryAxisUI(!getAxisForProcessing().isSetType() || !AxisType.TEXT_LITERAL.equals(getAxisForProcessing().getType()));
    btnCategoryAxis.addSelectionListener(this);
    btnReverse=new TristateCheckbox(cmpBasic,SWT.NONE);
    btnReverse.setText(Messages.getString("String_Node_Str"));
    gd=new GridData();
    gd.horizontalSpan=2;
    btnReverse.setLayoutData(gd);
    btnReverse.setSelectionState(((ChartWithAxes)getChart()).isSetReverseCategory() ? (((ChartWithAxes)getChart()).isReverseCategory() ? TristateCheckbox.STATE_SELECTED : TristateCheckbox.STATE_UNSELECTED) : TristateCheckbox.STATE_GRAYED);
    updateReverseUI(ChartUIExtensionUtil.canEnableUI(btnCategoryAxis));
    btnReverse.addSelectionListener(this);
  }
  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,getTitleValue());
{
    GridData gd=new GridData();
    gd.widthHint=230;
    gd.horizontalIndent=5;
    txtTitle.setLayoutData(gd);
    txtTitle.addListener(this);
  }
  btnTitleVisible=new TristateCheckbox(cmpBasic,SWT.NONE);
  btnTitleVisible.setText(Messages.getString("String_Node_Str"));
  btnTitleVisible.setSelectionState(getAxisForProcessing().getTitle().isSetVisible() ? (getAxisForProcessing().getTitle().isVisible() ? TristateCheckbox.STATE_SELECTED : TristateCheckbox.STATE_UNSELECTED) : TristateCheckbox.STATE_GRAYED);
  btnTitleVisible.addSelectionListener(this);
  btnTitleContentAuto=new Button(cmpBasic,SWT.CHECK);
  btnTitleContentAuto.setText(ChartUIExtensionUtil.getAutoMessage());
  btnTitleContentAuto.setSelection(getAxisForProcessing().getTitle().getCaption().getValue() == null);
  btnTitleContentAuto.addSelectionListener(this);
  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;
      gdBTNFormatSpecifier.horizontalSpan=2;
      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=3;
        gd.horizontalIndent=5;
        cmbOrigin.setLayoutData(gd);
        cmbOrigin.addSelectionListener(this);
      }
      boolean bValueOrigin=false;
      if (getAxisForProcessing().getOrigin() != null) {
        if (!getAxisForProcessing().getOrigin().isSetType() || (getAxisForProcessing().getOrigin().isSetType() && 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=1;
        gd.horizontalIndent=5;
        txtValue.setLayoutData(gd);
        txtValue.addListener(this);
        txtValue.setEnabled(bValueOrigin);
      }
      btnTxtValueAuto=new Button(cmpBasic,SWT.CHECK);
      GridData gd=new GridData();
      gd.horizontalSpan=2;
      btnTxtValueAuto.setLayoutData(gd);
      btnTxtValueAuto.setText(ChartUIExtensionUtil.getAutoMessage());
      btnTxtValueAuto.setSelection(getAxisForProcessing().getOrigin().getValue() == null);
      btnTxtValueAuto.setEnabled(bValueOrigin);
      txtValue.setEnabled(bValueOrigin && !btnTxtValueAuto.getSelection());
      btnTxtValueAuto.addSelectionListener(this);
    }
    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);
  GridData gd=new GridData();
  gd.horizontalSpan=2;
  cmpLabel.setLayoutData(gd);
{
    GridLayout layout=new GridLayout(2,false);
    layout.marginHeight=0;
    layout.marginWidth=0;
    cmpLabel.setLayout(layout);
  }
  btnLabelVisible=new TristateCheckbox(cmpLabel,SWT.NONE);
  btnLabelVisible.setText(Messages.getString("String_Node_Str"));
  gd=new GridData(GridData.FILL_HORIZONTAL);
  btnLabelVisible.setLayoutData(gd);
  btnLabelVisible.setSelectionState(getAxisForProcessing().getLabel().isSetVisible() ? (getAxisForProcessing().getLabel().isVisible() ? TristateCheckbox.STATE_SELECTED : TristateCheckbox.STATE_UNSELECTED) : TristateCheckbox.STATE_GRAYED);
  btnLabelVisible.addSelectionListener(this);
  btnStaggered=new TristateCheckbox(cmpLabel,SWT.NONE);
  btnStaggered.setText(Messages.getString("String_Node_Str"));
{
    Axis ax=getAxisForProcessing();
    boolean bNot3D=!isChart3D();
    btnStaggered.setSelectionState(ax.isSetStaggered() ? ((ax.isStaggered() && bNot3D) ? TristateCheckbox.STATE_SELECTED : TristateCheckbox.STATE_UNSELECTED) : TristateCheckbox.STATE_GRAYED);
    btnStaggered.setEnabled(bNot3D);
    btnStaggered.addSelectionListener(this);
  }
  createLabelSpan(cmpBasic);
  createButtonGroup(cmpContent);
  setStateOfTitle();
  setStateOfLabel();
}