Program: 123582
Project: 123582
Buggy source:
protected void createExportTypeGroup(Composite parent){
  Group optionsGroup=new Group(parent,SWT.NONE);
  GridLayout layout=new GridLayout();
  optionsGroup.setLayout(layout);
  optionsGroup.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL));
  optionsGroup.setText(Messages.getString("String_Node_Str"));
  optionsGroup.setFont(parent.getFont());
  optionsGroup.setLayout(new GridLayout(1,true));
  Composite left=new Composite(optionsGroup,SWT.NONE);
  left.setLayoutData(new GridData(SWT.LEFT,SWT.TOP,true,false));
  left.setLayout(new GridLayout(3,false));
  Label label=new Label(left,SWT.NONE);
  label.setText(Messages.getString("String_Node_Str"));
  exportTypeCombo=new Combo(left,SWT.PUSH);
  GridData gd=new GridData();
  gd.horizontalSpan=1;
  exportTypeCombo.setLayoutData(gd);
  for (  JobExportType exportType : JobExportType.values()) {
    if (!Boolean.getBoolean("String_Node_Str" + exportType.toString() + "String_Node_Str")) {
      exportTypeCombo.add(exportType.label);
    }
  }
  exportTypeCombo.setText(getCurrentExportType1().label);
  if (exportTypeFixed != null) {
    left.setVisible(false);
    optionsGroup.setVisible(false);
    exportTypeCombo.setText(exportTypeFixed.label);
  }
  chkButton=new Button(left,SWT.CHECK);
  chkButton.setText(Messages.getString("String_Node_Str"));
  JobExportType comboType=JobExportType.getTypeFromString(exportTypeCombo.getText());
  if (comboType.equals(JobExportType.WSWAR) || comboType.equals(JobExportType.PETALSESB) || comboType.equals(JobExportType.OSGI)) {
    chkButton.setVisible(false);
    zipOption=null;
  }
 else {
    chkButton.setVisible(true);
    zipOption=String.valueOf(chkButton.getSelection());
  }
  chkButton.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      chkButton.setSelection(chkButton.getSelection());
      zipOption=String.valueOf(chkButton.getSelection());
    }
  }
);
  exportTypeCombo.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    SelectionEvent e){
    }
    public void widgetSelected(    SelectionEvent e){
      destinationNameFieldInnerComposite.dispose();
      GridLayout layout=new GridLayout();
      destinationNameFieldInnerComposite=new Composite(destinationNameFieldComposite,SWT.NONE);
      GridData gridData=new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL);
      destinationNameFieldInnerComposite.setLayoutData(gridData);
      destinationNameFieldInnerComposite.setLayout(layout);
      createDestinationGroup(destinationNameFieldInnerComposite);
      destinationNameFieldComposite.layout();
      optionsGroupComposite.dispose();
      createOptionsGroupButtons(pageComposite);
      pageComposite.layout();
      JobExportType comboType=JobExportType.getTypeFromString(exportTypeCombo.getText());
      if (comboType.equals(JobExportType.WSWAR) || comboType.equals(JobExportType.OSGI)) {
        chkButton.setVisible(false);
        zipOption=null;
      }
 else {
        chkButton.setVisible(true);
        zipOption=String.valueOf(chkButton.getSelection());
      }
      checkExport();
    }
  }
);
}

Fixed version (ground truth):
protected void createExportTypeGroup(Composite parent){
  Group optionsGroup=new Group(parent,SWT.NONE);
  GridLayout layout=new GridLayout();
  optionsGroup.setLayout(layout);
  optionsGroup.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL));
  optionsGroup.setText(Messages.getString("String_Node_Str"));
  optionsGroup.setFont(parent.getFont());
  optionsGroup.setLayout(new GridLayout(1,true));
  Composite left=new Composite(optionsGroup,SWT.NONE);
  left.setLayoutData(new GridData(SWT.LEFT,SWT.TOP,true,false));
  left.setLayout(new GridLayout(3,false));
  Label label=new Label(left,SWT.NONE);
  label.setText(Messages.getString("String_Node_Str"));
  exportTypeCombo=new Combo(left,SWT.PUSH);
  GridData gd=new GridData();
  gd.horizontalSpan=1;
  exportTypeCombo.setLayoutData(gd);
  for (  JobExportType exportType : JobExportType.values()) {
    if (!Boolean.getBoolean("String_Node_Str" + exportType.toString() + "String_Node_Str")) {
      exportTypeCombo.add(exportType.label);
    }
  }
  exportTypeCombo.setText(getCurrentExportType1().label);
  if (exportTypeFixed != null) {
    left.setVisible(false);
    optionsGroup.setVisible(false);
    exportTypeCombo.setText(exportTypeFixed.label);
  }
  chkButton=new Button(left,SWT.CHECK);
  chkButton.setText(Messages.getString("String_Node_Str"));
  JobExportType comboType=JobExportType.getTypeFromString(exportTypeCombo.getText());
  if (comboType.equals(JobExportType.WSWAR) || comboType.equals(JobExportType.PETALSESB) || comboType.equals(JobExportType.OSGI)) {
    chkButton.setVisible(false);
    zipOption=null;
  }
 else {
    chkButton.setVisible(true);
    zipOption=String.valueOf(chkButton.getSelection());
  }
  chkButton.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      chkButton.setSelection(chkButton.getSelection());
      zipOption=String.valueOf(chkButton.getSelection());
    }
  }
);
  exportTypeCombo.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    SelectionEvent e){
    }
    public void widgetSelected(    SelectionEvent e){
      destinationNameFieldInnerComposite.dispose();
      GridLayout layout=new GridLayout();
      destinationNameFieldInnerComposite=new Composite(destinationNameFieldComposite,SWT.NONE);
      GridData gridData=new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL);
      destinationNameFieldInnerComposite.setLayoutData(gridData);
      destinationNameFieldInnerComposite.setLayout(layout);
      createDestinationGroup(destinationNameFieldInnerComposite);
      destinationNameFieldComposite.layout();
      optionsGroupComposite.dispose();
      createOptionsGroupButtons(pageComposite);
      pageComposite.setSize(pageComposite.computeSize(SWT.DEFAULT,SWT.DEFAULT));
      pageComposite.layout();
      JobExportType comboType=JobExportType.getTypeFromString(exportTypeCombo.getText());
      if (comboType.equals(JobExportType.WSWAR) || comboType.equals(JobExportType.OSGI)) {
        chkButton.setVisible(false);
        zipOption=null;
      }
 else {
        chkButton.setVisible(true);
        zipOption=String.valueOf(chkButton.getSelection());
      }
      checkExport();
    }
  }
);
}