Program: 122862
Project: 122862
Buggy source:
private void addItemsOption(Composite parent){
  Group option=new Group(parent,SWT.NONE);
  option.setLayout(new GridLayout());
  option.setText(Messages.getString("String_Node_Str"));
  GridDataFactory.swtDefaults().align(SWT.FILL,SWT.CENTER).applyTo(option);
  fixedVersionBtn=new Button(option,SWT.RADIO);
  fixedVersionBtn.setText(Messages.getString("String_Node_Str"));
  fixedVersionBtn.setSelection(true);
  IBrandingService brandingService=(IBrandingService)GlobalServiceRegister.getDefault().getService(IBrandingService.class);
  allowVerchange=brandingService.getBrandingConfiguration().isAllowChengeVersion();
  Composite versionComposit=new Composite(option,SWT.NONE);
  GridLayout layout=new GridLayout(8,false);
  layout.horizontalSpacing=1;
  layout.verticalSpacing=0;
  layout.marginHeight=0;
  layout.marginWidth=0;
  versionComposit.setLayout(layout);
  GridDataFactory.swtDefaults().align(SWT.FILL,SWT.BEGINNING).applyTo(versionComposit);
  maxVersionText=new Text(versionComposit,SWT.BORDER | SWT.READ_ONLY);
  GridData data=new GridData();
  data.widthHint=50;
  data.minimumWidth=50;
  maxVersionText.setLayoutData(data);
  maxVersionText.setEnabled(false);
  maxVersionText.setText(VersionUtils.DEFAULT_VERSION);
  majorBtn=new Button(versionComposit,SWT.NONE);
  majorBtn.setText("String_Node_Str");
  majorBtn.setToolTipText(Messages.getString("String_Node_Str"));
  majorBtn.setEnabled(allowVerchange);
  minorBtn=new Button(versionComposit,SWT.NONE);
  minorBtn.setText("String_Node_Str");
  minorBtn.setToolTipText(Messages.getString("String_Node_Str"));
  minorBtn.setEnabled(allowVerchange);
  Label label=new Label(versionComposit,SWT.NONE);
  label.setText("String_Node_Str");
  data=new GridData();
  data.minimumWidth=20;
  data.widthHint=20;
  label.setLayoutData(data);
  label.setVisible(false);
  revertBtn=new Button(versionComposit,SWT.NONE);
  revertBtn.setText(Messages.getString("String_Node_Str"));
  revertBtn.setToolTipText(Messages.getString("String_Node_Str"));
  Label bLabel=new Label(versionComposit,SWT.NONE);
  bLabel.setText("String_Node_Str");
  data=new GridData();
  data.minimumWidth=20;
  data.widthHint=20;
  bLabel.setLayoutData(data);
  bLabel.setVisible(false);
  alldependcies=new Button(versionComposit,SWT.NONE);
  alldependcies.setText(Messages.getString("String_Node_Str"));
  subjobs=new Button(versionComposit,SWT.NONE);
  subjobs.setText(Messages.getString("String_Node_Str"));
  eachVersionBtn=new Button(option,SWT.RADIO);
  eachVersionBtn.setText(Messages.getString("String_Node_Str"));
  eachVersionBtn.setEnabled(allowVerchange);
  versionLatest=new Button(option,SWT.CHECK);
  versionLatest.setText(Messages.getString("String_Node_Str"));
  versionLatest.setToolTipText(Messages.getString("String_Node_Str"));
  fixedVersionBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      checkFixedButtons();
      researchMaxVersion();
      refreshTableItems();
    }
  }
);
  alldependcies.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      selectAllDependencies();
    }
  }
);
  subjobs.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      selectSubjob();
    }
  }
);
  versionLatest.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      versionLatest();
    }
  }
);
  majorBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      String version=maxVersionText.getText();
      version=VersionUtils.upMajor(version);
      maxVersionText.setText(version);
      refreshTableItems();
    }
  }
);
  minorBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      String version=maxVersionText.getText();
      version=VersionUtils.upMinor(version);
      maxVersionText.setText(version);
      refreshTableItems();
    }
  }
);
  revertBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      maxVersionText.setText(VersionUtils.DEFAULT_VERSION);
      researchMaxVersion();
      refreshTableItems();
    }
  }
);
  eachVersionBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      checkFixedButtons();
      refreshTableItems();
    }
  }
);
  checkFixedButtons();
}

Fixed version (ground truth):
private void addItemsOption(Composite parent){
  Group option=new Group(parent,SWT.NONE);
  option.setLayout(new GridLayout());
  option.setText(Messages.getString("String_Node_Str"));
  GridDataFactory.swtDefaults().align(SWT.FILL,SWT.CENTER).applyTo(option);
  fixedVersionBtn=new Button(option,SWT.RADIO);
  fixedVersionBtn.setText(Messages.getString("String_Node_Str"));
  fixedVersionBtn.setSelection(true);
  IBrandingService brandingService=(IBrandingService)GlobalServiceRegister.getDefault().getService(IBrandingService.class);
  allowVerchange=brandingService.getBrandingConfiguration().isAllowChengeVersion();
  Composite versionComposit=new Composite(option,SWT.NONE);
  GridLayout layout=new GridLayout(8,false);
  layout.horizontalSpacing=1;
  layout.verticalSpacing=0;
  layout.marginHeight=0;
  layout.marginWidth=0;
  versionComposit.setLayout(layout);
  GridDataFactory.swtDefaults().align(SWT.FILL,SWT.BEGINNING).applyTo(versionComposit);
  maxVersionText=new Text(versionComposit,SWT.BORDER | SWT.READ_ONLY);
  GridData data=new GridData();
  data.widthHint=50;
  data.minimumWidth=50;
  maxVersionText.setLayoutData(data);
  maxVersionText.setEnabled(false);
  maxVersionText.setText(VersionUtils.DEFAULT_VERSION);
  majorBtn=new Button(versionComposit,SWT.NONE);
  majorBtn.setText("String_Node_Str");
  majorBtn.setToolTipText(Messages.getString("String_Node_Str"));
  majorBtn.setEnabled(allowVerchange);
  minorBtn=new Button(versionComposit,SWT.NONE);
  minorBtn.setText("String_Node_Str");
  minorBtn.setToolTipText(Messages.getString("String_Node_Str"));
  minorBtn.setEnabled(allowVerchange);
  Label label=new Label(versionComposit,SWT.NONE);
  label.setText("String_Node_Str");
  data=new GridData();
  data.minimumWidth=20;
  data.widthHint=20;
  label.setLayoutData(data);
  label.setVisible(false);
  revertBtn=new Button(versionComposit,SWT.NONE);
  revertBtn.setText(Messages.getString("String_Node_Str"));
  revertBtn.setToolTipText(Messages.getString("String_Node_Str"));
  Label bLabel=new Label(versionComposit,SWT.NONE);
  bLabel.setText("String_Node_Str");
  data=new GridData();
  data.minimumWidth=20;
  data.widthHint=20;
  bLabel.setLayoutData(data);
  bLabel.setVisible(false);
  alldependcies=new Button(versionComposit,SWT.NONE);
  alldependcies.setText(Messages.getString("String_Node_Str"));
  alldependcies.setEnabled(false);
  subjobs=new Button(versionComposit,SWT.NONE);
  subjobs.setText(Messages.getString("String_Node_Str"));
  subjobs.setEnabled(false);
  eachVersionBtn=new Button(option,SWT.RADIO);
  eachVersionBtn.setText(Messages.getString("String_Node_Str"));
  eachVersionBtn.setEnabled(allowVerchange);
  versionLatest=new Button(option,SWT.CHECK);
  versionLatest.setText(Messages.getString("String_Node_Str"));
  versionLatest.setToolTipText(Messages.getString("String_Node_Str"));
  fixedVersionBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      checkFixedButtons();
      researchMaxVersion();
      refreshTableItems();
    }
  }
);
  alldependcies.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      selectAllDependencies();
    }
  }
);
  subjobs.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      selectSubjob();
    }
  }
);
  versionLatest.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      versionLatest();
    }
  }
);
  majorBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      String version=maxVersionText.getText();
      version=VersionUtils.upMajor(version);
      maxVersionText.setText(version);
      refreshTableItems();
    }
  }
);
  minorBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      String version=maxVersionText.getText();
      version=VersionUtils.upMinor(version);
      maxVersionText.setText(version);
      refreshTableItems();
    }
  }
);
  revertBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      maxVersionText.setText(VersionUtils.DEFAULT_VERSION);
      researchMaxVersion();
      refreshTableItems();
    }
  }
);
  eachVersionBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      checkFixedButtons();
      refreshTableItems();
    }
  }
);
  checkFixedButtons();
}