Program: 66118
Project: 66118
Buggy source:
protected void getComponentLegendLeftArea(Composite cmpLegLeft){
  boolean bEnableUI=getBlockForProcessing().isVisible();
  Label lblOrientation=new Label(cmpLegLeft,SWT.NONE);
  lblOrientation.setText(Messages.getString("String_Node_Str"));
  lblOrientation.setEnabled(bEnableUI);
  cmbOrientation=new Combo(cmpLegLeft,SWT.DROP_DOWN | SWT.READ_ONLY);
  GridData gdCMBOrientation=new GridData(GridData.FILL_HORIZONTAL);
  gdCMBOrientation.horizontalSpan=2;
  cmbOrientation.setLayoutData(gdCMBOrientation);
  cmbOrientation.addSelectionListener(this);
  cmbOrientation.setEnabled(bEnableUI);
  Label lblPosition=new Label(cmpLegLeft,SWT.NONE);
  lblPosition.setText(Messages.getString("String_Node_Str"));
  lblPosition.setEnabled(bEnableUI);
  cmbPosition=new Combo(cmpLegLeft,SWT.DROP_DOWN | SWT.READ_ONLY);
  GridData gdCMBPosition=new GridData(GridData.FILL_HORIZONTAL);
  gdCMBPosition.horizontalSpan=2;
  cmbPosition.setLayoutData(gdCMBPosition);
  cmbPosition.addSelectionListener(this);
  cmbPosition.setEnabled(bEnableUI);
  Label lblAnchor=new Label(cmpLegLeft,SWT.NONE);
  lblAnchor.setText(Messages.getString("String_Node_Str"));
  lblAnchor.setEnabled(bEnableUI);
  cmbAnchor=new Combo(cmpLegLeft,SWT.DROP_DOWN | SWT.READ_ONLY);
  GridData gdCBAnchor=new GridData(GridData.FILL_HORIZONTAL);
  gdCBAnchor.horizontalSpan=2;
  cmbAnchor.setLayoutData(gdCBAnchor);
  cmbAnchor.addSelectionListener(this);
  cmbAnchor.setEnabled(bEnableUI);
  Label lblStretch=new Label(cmpLegLeft,SWT.NONE);
  lblStretch.setText(Messages.getString("String_Node_Str"));
  lblStretch.setEnabled(bEnableUI);
  cmbStretch=new Combo(cmpLegLeft,SWT.DROP_DOWN | SWT.READ_ONLY);
  GridData gdCBStretch=new GridData(GridData.FILL_HORIZONTAL);
  gdCBStretch.horizontalSpan=2;
  cmbStretch.setLayoutData(gdCBStretch);
  cmbStretch.addSelectionListener(this);
  cmbStretch.setEnabled(bEnableUI);
  Label lblBackground=new Label(cmpLegLeft,SWT.NONE);
  lblBackground.setText(Messages.getString("String_Node_Str"));
  lblBackground.setEnabled(bEnableUI);
  int fillOptions=FillChooserComposite.ENABLE_GRADIENT | FillChooserComposite.ENABLE_IMAGE | FillChooserComposite.ENABLE_AUTO| FillChooserComposite.ENABLE_TRANSPARENT| FillChooserComposite.ENABLE_TRANSPARENT_SLIDER;
  fccBackground=new FillChooserComposite(cmpLegLeft,SWT.NONE,fillOptions,getContext(),getBlockForProcessing().getBackground());
  GridData gdFCCBackground=new GridData(GridData.FILL_HORIZONTAL);
  gdFCCBackground.horizontalSpan=2;
  fccBackground.setLayoutData(gdFCCBackground);
  fccBackground.addListener(this);
  fccBackground.setEnabled(bEnableUI);
  fccBackground.setTextIndent(0);
  Label lblDirection=new Label(cmpLegLeft,SWT.NONE);
  lblDirection.setText(Messages.getString("String_Node_Str"));
  lblDirection.setEnabled(bEnableUI);
  cmbDirection=new Combo(cmpLegLeft,SWT.DROP_DOWN | SWT.READ_ONLY);
  GridData gdCMBDirection=new GridData(GridData.FILL_HORIZONTAL);
  gdCMBDirection.horizontalSpan=2;
  cmbDirection.setLayoutData(gdCMBDirection);
  cmbDirection.addSelectionListener(this);
  cmbDirection.setEnabled(bEnableUI);
  Label lblWrapping=new Label(cmpLegLeft,SWT.NONE);
  lblWrapping.setText(Messages.getString("String_Node_Str"));
  lblWrapping.setEnabled(bEnableUI);
  txtWrapping=new LocalizedNumberEditorComposite(cmpLegLeft,SWT.BORDER | SWT.SINGLE);
  new TextNumberEditorAssistField(txtWrapping.getTextControl(),null);
{
    GridData gd=new GridData(GridData.FILL_HORIZONTAL);
    txtWrapping.setLayoutData(gd);
    txtWrapping.setValue(getBlockForProcessing().getWrappingSize());
    txtWrapping.addModifyListener(this);
    txtWrapping.setEnabled(bEnableUI);
  }
  btnWrapping=new Button(cmpLegLeft,SWT.CHECK);
  btnWrapping.setText(ChartUIExtensionUtil.getAutoMessage());
  btnWrapping.setSelection(!getBlockForProcessing().isSetWrappingSize() && getBlockForProcessing().isSetWrappingSize());
  btnWrapping.addSelectionListener(this);
  spnMaxPercent=createSpinner(cmpLegLeft,Messages.getString("String_Node_Str"),getBlockForProcessing().getMaxPercent(),bEnableUI);
  btnMaxPercent=new Button(cmpLegLeft,SWT.CHECK);
  btnMaxPercent.setText(ChartUIExtensionUtil.getAutoMessage());
  btnMaxPercent.setSelection(!getBlockForProcessing().isSetMaxPercent());
  btnMaxPercent.addSelectionListener(this);
  spnTitlePercent=createSpinner(cmpLegLeft,Messages.getString("String_Node_Str"),getBlockForProcessing().getTitlePercent(),bEnableUI);
  btnTitlePercent=new Button(cmpLegLeft,SWT.CHECK);
  btnTitlePercent.setText(ChartUIExtensionUtil.getAutoMessage());
  btnTitlePercent.setSelection(!getBlockForProcessing().isSetTitlePercent());
  btnTitlePercent.addSelectionListener(this);
  updateUIState();
}

Fixed version (ground truth):
protected void getComponentLegendLeftArea(Composite cmpLegLeft){
  Label lblOrientation=new Label(cmpLegLeft,SWT.NONE);
  lblOrientation.setText(Messages.getString("String_Node_Str"));
  cmbOrientation=new Combo(cmpLegLeft,SWT.DROP_DOWN | SWT.READ_ONLY);
  GridData gdCMBOrientation=new GridData(GridData.FILL_HORIZONTAL);
  gdCMBOrientation.horizontalSpan=2;
  cmbOrientation.setLayoutData(gdCMBOrientation);
  cmbOrientation.addSelectionListener(this);
  Label lblPosition=new Label(cmpLegLeft,SWT.NONE);
  lblPosition.setText(Messages.getString("String_Node_Str"));
  cmbPosition=new Combo(cmpLegLeft,SWT.DROP_DOWN | SWT.READ_ONLY);
  GridData gdCMBPosition=new GridData(GridData.FILL_HORIZONTAL);
  gdCMBPosition.horizontalSpan=2;
  cmbPosition.setLayoutData(gdCMBPosition);
  cmbPosition.addSelectionListener(this);
  Label lblAnchor=new Label(cmpLegLeft,SWT.NONE);
  lblAnchor.setText(Messages.getString("String_Node_Str"));
  cmbAnchor=new Combo(cmpLegLeft,SWT.DROP_DOWN | SWT.READ_ONLY);
  GridData gdCBAnchor=new GridData(GridData.FILL_HORIZONTAL);
  gdCBAnchor.horizontalSpan=2;
  cmbAnchor.setLayoutData(gdCBAnchor);
  cmbAnchor.addSelectionListener(this);
  Label lblStretch=new Label(cmpLegLeft,SWT.NONE);
  lblStretch.setText(Messages.getString("String_Node_Str"));
  cmbStretch=new Combo(cmpLegLeft,SWT.DROP_DOWN | SWT.READ_ONLY);
  GridData gdCBStretch=new GridData(GridData.FILL_HORIZONTAL);
  gdCBStretch.horizontalSpan=2;
  cmbStretch.setLayoutData(gdCBStretch);
  cmbStretch.addSelectionListener(this);
  Label lblBackground=new Label(cmpLegLeft,SWT.NONE);
  lblBackground.setText(Messages.getString("String_Node_Str"));
  int fillOptions=FillChooserComposite.ENABLE_GRADIENT | FillChooserComposite.ENABLE_IMAGE | FillChooserComposite.ENABLE_AUTO| FillChooserComposite.ENABLE_TRANSPARENT| FillChooserComposite.ENABLE_TRANSPARENT_SLIDER;
  fccBackground=new FillChooserComposite(cmpLegLeft,SWT.NONE,fillOptions,getContext(),getBlockForProcessing().getBackground());
  GridData gdFCCBackground=new GridData(GridData.FILL_HORIZONTAL);
  gdFCCBackground.horizontalSpan=2;
  fccBackground.setLayoutData(gdFCCBackground);
  fccBackground.addListener(this);
  fccBackground.setTextIndent(0);
  Label lblDirection=new Label(cmpLegLeft,SWT.NONE);
  lblDirection.setText(Messages.getString("String_Node_Str"));
  cmbDirection=new Combo(cmpLegLeft,SWT.DROP_DOWN | SWT.READ_ONLY);
  GridData gdCMBDirection=new GridData(GridData.FILL_HORIZONTAL);
  gdCMBDirection.horizontalSpan=2;
  cmbDirection.setLayoutData(gdCMBDirection);
  cmbDirection.addSelectionListener(this);
  Label lblWrapping=new Label(cmpLegLeft,SWT.NONE);
  lblWrapping.setText(Messages.getString("String_Node_Str"));
  txtWrapping=new LocalizedNumberEditorComposite(cmpLegLeft,SWT.BORDER | SWT.SINGLE);
  new TextNumberEditorAssistField(txtWrapping.getTextControl(),null);
{
    GridData gd=new GridData(GridData.FILL_HORIZONTAL);
    txtWrapping.setLayoutData(gd);
    txtWrapping.setValue(getBlockForProcessing().getWrappingSize());
    txtWrapping.addModifyListener(this);
    txtWrapping.setEnabled(getBlockForProcessing().isSetWrappingSize());
  }
  btnWrapping=new Button(cmpLegLeft,SWT.CHECK);
  btnWrapping.setText(ChartUIExtensionUtil.getAutoMessage());
  btnWrapping.setSelection(!getBlockForProcessing().isSetWrappingSize());
  btnWrapping.addSelectionListener(this);
  spnMaxPercent=createSpinner(cmpLegLeft,Messages.getString("String_Node_Str"),getBlockForProcessing().getMaxPercent(),getBlockForProcessing().isSetMaxPercent());
  btnMaxPercent=new Button(cmpLegLeft,SWT.CHECK);
  btnMaxPercent.setText(ChartUIExtensionUtil.getAutoMessage());
  btnMaxPercent.setSelection(!getBlockForProcessing().isSetMaxPercent());
  btnMaxPercent.addSelectionListener(this);
  spnTitlePercent=createSpinner(cmpLegLeft,Messages.getString("String_Node_Str"),getBlockForProcessing().getTitlePercent(),getBlockForProcessing().isSetTitlePercent());
  btnTitlePercent=new Button(cmpLegLeft,SWT.CHECK);
  btnTitlePercent.setText(ChartUIExtensionUtil.getAutoMessage());
  btnTitlePercent.setSelection(!getBlockForProcessing().isSetTitlePercent());
  btnTitlePercent.addSelectionListener(this);
}