Program: 139526
Project: 139526
Buggy source:
@Override protected Control createContents(Composite parent){
  mainComposite=new Composite(parent,SWT.NONE);
  mainComposite.setLayout(new GridLayout());
  mainComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
  Group group1=new Group(mainComposite,SWT.SHADOW_ETCHED_IN);
  group1.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  GridLayout gridLayout1=new GridLayout();
  group1.setLayout(gridLayout1);
  GridData gridData1=new GridData(GridData.FILL_HORIZONTAL);
  group1.setLayoutData(gridData1);
  Label label1=new Label(group1,SWT.NONE);
  label1.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  button1=new Button(group1,SWT.RADIO);
  button1.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  button1.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    SelectionEvent arg0){
    }
    public void widgetSelected(    SelectionEvent arg0){
      setCurrentFolding(FOLDING_1);
    }
  }
);
  button2=new Button(group1,SWT.RADIO);
  button2.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  button2.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    SelectionEvent arg0){
    }
    public void widgetSelected(    SelectionEvent arg0){
      setCurrentFolding(FOLDING_2);
    }
  }
);
  button3=new Button(group1,SWT.RADIO);
  button3.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  button3.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    SelectionEvent arg0){
    }
    public void widgetSelected(    SelectionEvent arg0){
      setCurrentFolding(FOLDING_3);
    }
  }
);
  setCurrentFolding(ResourcesPlugin.getPlugin().getPluginPreferences().getInt(EDITOR_MASTER_PAGE_FOLDING));
switch (getCurrentFolding()) {
case FOLDING_1:
    button1.setSelection(true);
  break;
case FOLDING_2:
button2.setSelection(true);
break;
case FOLDING_3:
button3.setSelection(true);
break;
default :
button1.setSelection(true);
}
Group group2=new Group(mainComposite,SWT.SHADOW_ETCHED_IN);
group2.setText(DefaultMessagesImpl.getString("String_Node_Str"));
GridLayout gridLayout2=new GridLayout();
group2.setLayout(gridLayout2);
GridData gridData2=new GridData(GridData.FILL_HORIZONTAL);
group2.setLayoutData(gridData2);
Label label2=new Label(group2,SWT.NONE);
label2.setText(DefaultMessagesImpl.getString("String_Node_Str"));
button4=new Button(group2,SWT.CHECK);
button4.setText(DefaultMessagesImpl.getString("String_Node_Str"));
setCurrentAnalyzedElements(ResourcesPlugin.getPlugin().getPluginPreferences().getInt(EDITOR_RESULT_PAGE_ANALYZED_ELEMENTS) == 0 ? true : false);
button4.setSelection(isCurrentAnalyzedElements());
button4.addSelectionListener(new SelectionListener(){
public void widgetDefaultSelected(SelectionEvent arg0){
}
public void widgetSelected(SelectionEvent arg0){
setCurrentAnalyzedElements(button4.getSelection());
}
}
);
button5=new Button(group2,SWT.CHECK);
button5.setText(DefaultMessagesImpl.getString("String_Node_Str"));
setCurrentIndicators(ResourcesPlugin.getPlugin().getPluginPreferences().getInt(EDITOR_RESULT_PAGE_INDICATORS) == 0 ? true : false);
button5.setSelection(isCurrentIndicators());
button5.addSelectionListener(new SelectionListener(){
public void widgetDefaultSelected(SelectionEvent arg0){
}
public void widgetSelected(SelectionEvent arg0){
setCurrentIndicators(button5.getSelection());
}
}
);
Composite pageSizeComp=new Composite(mainComposite,SWT.NONE);
pageSizeComp.setLayout(new GridLayout(2,false));
Label dfofLable=new Label(pageSizeComp,SWT.NONE);
dfofLable.setText(DefaultMessagesImpl.getString("String_Node_Str"));
pageSizeText=new Text(pageSizeComp,SWT.BORDER);
String pageSize=ResourcesPlugin.getPlugin().getPluginPreferences().getString(ANALYZED_ITEMS_PER_PAGE);
if (pageSize == null || pageSize.equals("String_Node_Str")) {
pageSize=DEFAULT_PAGE_SIZE;
}
pageSizeText.setText(pageSize);
pageSizeText.setLayoutData(new GridData());
((GridData)pageSizeText.getLayoutData()).widthHint=100;
return mainComposite;
}

Fixed version (ground truth):
@Override protected Control createContents(Composite parent){
  mainComposite=new Composite(parent,SWT.NONE);
  mainComposite.setLayout(new GridLayout());
  mainComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
  Group group1=new Group(mainComposite,SWT.SHADOW_ETCHED_IN);
  group1.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  GridLayout gridLayout1=new GridLayout();
  group1.setLayout(gridLayout1);
  GridData gridData1=new GridData(GridData.FILL_HORIZONTAL);
  group1.setLayoutData(gridData1);
  Label label1=new Label(group1,SWT.NONE);
  label1.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  button1=new Button(group1,SWT.RADIO);
  button1.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  button1.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    SelectionEvent arg0){
    }
    public void widgetSelected(    SelectionEvent arg0){
      setCurrentFolding(FOLDING_1);
    }
  }
);
  button2=new Button(group1,SWT.RADIO);
  button2.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  button2.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    SelectionEvent arg0){
    }
    public void widgetSelected(    SelectionEvent arg0){
      setCurrentFolding(FOLDING_2);
    }
  }
);
  button3=new Button(group1,SWT.RADIO);
  button3.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  button3.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    SelectionEvent arg0){
    }
    public void widgetSelected(    SelectionEvent arg0){
      setCurrentFolding(FOLDING_3);
    }
  }
);
switch (getCurrentFolding()) {
case FOLDING_1:
    button1.setSelection(true);
  break;
case FOLDING_2:
button2.setSelection(true);
break;
case FOLDING_3:
button3.setSelection(true);
break;
default :
button1.setSelection(true);
}
Group group2=new Group(mainComposite,SWT.SHADOW_ETCHED_IN);
group2.setText(DefaultMessagesImpl.getString("String_Node_Str"));
GridLayout gridLayout2=new GridLayout();
group2.setLayout(gridLayout2);
GridData gridData2=new GridData(GridData.FILL_HORIZONTAL);
group2.setLayoutData(gridData2);
Label label2=new Label(group2,SWT.NONE);
label2.setText(DefaultMessagesImpl.getString("String_Node_Str"));
button4=new Button(group2,SWT.CHECK);
button4.setText(DefaultMessagesImpl.getString("String_Node_Str"));
setCurrentAnalyzedElements(ResourcesPlugin.getPlugin().getPluginPreferences().getInt(EDITOR_RESULT_PAGE_ANALYZED_ELEMENTS) == 0 ? true : false);
button4.setSelection(isCurrentAnalyzedElements());
button4.addSelectionListener(new SelectionListener(){
public void widgetDefaultSelected(SelectionEvent arg0){
}
public void widgetSelected(SelectionEvent arg0){
setCurrentAnalyzedElements(button4.getSelection());
}
}
);
button5=new Button(group2,SWT.CHECK);
button5.setText(DefaultMessagesImpl.getString("String_Node_Str"));
setCurrentIndicators(ResourcesPlugin.getPlugin().getPluginPreferences().getInt(EDITOR_RESULT_PAGE_INDICATORS) == 0 ? true : false);
button5.setSelection(isCurrentIndicators());
button5.addSelectionListener(new SelectionListener(){
public void widgetDefaultSelected(SelectionEvent arg0){
}
public void widgetSelected(SelectionEvent arg0){
setCurrentIndicators(button5.getSelection());
}
}
);
Composite pageSizeComp=new Composite(mainComposite,SWT.NONE);
pageSizeComp.setLayout(new GridLayout(2,false));
Label dfofLable=new Label(pageSizeComp,SWT.NONE);
dfofLable.setText(DefaultMessagesImpl.getString("String_Node_Str"));
pageSizeText=new Text(pageSizeComp,SWT.BORDER);
String pageSize=ResourcesPlugin.getPlugin().getPluginPreferences().getString(ANALYZED_ITEMS_PER_PAGE);
if (pageSize == null || pageSize.equals("String_Node_Str")) {
pageSize=DEFAULT_PAGE_SIZE;
}
pageSizeText.setText(pageSize);
pageSizeText.setLayoutData(new GridData());
((GridData)pageSizeText.getLayoutData()).widthHint=100;
return mainComposite;
}