Program: 69947
Project: 69947
Buggy source:
public void createControl(Composite parent){
  Composite composite=new Composite(parent,SWT.NONE);
  UIUtil.bindHelp(composite,IHelpContextIds.NEW_REPORT_COPY_WIZARD_ID);
  GridLayout gridLayout=new GridLayout();
  gridLayout.numColumns=2;
  gridLayout.marginHeight=10;
  gridLayout.marginWidth=10;
  gridLayout.horizontalSpacing=10;
  gridLayout.verticalSpacing=10;
  composite.setLayout(gridLayout);
  Label label0=new Label(composite,SWT.NONE);
  label0.setText(MESSAGE_REPORT_TEMPLATES);
  Label previewLabel=new Label(composite,SWT.NONE);
  previewLabel.setText(MESSAGE_PREVIEW);
  GridData data=new GridData(GridData.BEGINNING);
  previewLabel.setLayoutData(data);
  templateList=new TreeViewer(composite,SWT.BORDER | SWT.SINGLE);
  predefinedCount=templates.size();
  createCustomTemplateList();
  data=new GridData(GridData.BEGINNING | GridData.FILL_VERTICAL);
  data.widthHint=220;
  templateList.getTree().setLayoutData(data);
  previewPane=new Composite(composite,0);
  data=new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL);
  previewPane.setLayoutData(data);
  gridLayout=new GridLayout();
  gridLayout.verticalSpacing=10;
  previewPane.setLayout(gridLayout);
  Composite previewComposite=new Composite(previewPane,SWT.BORDER);
  data=new GridData(GridData.BEGINNING);
  data.heightHint=229;
  data.widthHint=184;
  previewComposite.setLayoutData(data);
  previewComposite.setLayout(new FormLayout());
  previewCanvas=new ImageCanvas(previewComposite);
  FormData formData=new FormData(184,229);
  formData.left=new FormAttachment(previewComposite);
  formData.top=new FormAttachment(previewComposite);
  previewCanvas.setLayoutData(formData);
  Label descriptionTitle=new Label(previewPane,SWT.NONE);
  descriptionTitle.setText(MESSAGE_DESCRIPTION);
  data=new GridData(GridData.FILL_HORIZONTAL);
  descriptionTitle.setLayoutData(data);
  description=new Label(previewPane,SWT.WRAP);
  data=new GridData(GridData.FILL_HORIZONTAL);
  data.widthHint=184;
  data.horizontalIndent=20;
  description.setLayoutData(data);
  new Label(previewPane,SWT.NONE);
  chkBox=new Button(composite,SWT.CHECK);
  chkBox.setText(MESSAGE_SHOW_CHEATSHEET);
  chkBox.setSelection(ReportPlugin.readCheatSheetPreference());
  chkBox.addSelectionListener(new SelectionListener(){
    public void widgetSelected(    SelectionEvent e){
      ReportPlugin.writeCheatSheetPreference(chkBox.getSelection());
    }
    public void widgetDefaultSelected(    SelectionEvent e){
      ReportPlugin.writeCheatSheetPreference(chkBox.getSelection());
    }
  }
);
  addBidiPart(composite);
  hookListeners();
  initTreeViewer();
  if (templates.size() > 0) {
    templateList.setSelection(new StructuredSelection(templates.get(0)));
    setPageComplete(true);
  }
 else {
    setPageComplete(false);
  }
  setControl(composite);
}

Fixed version (ground truth):
public void createControl(Composite parent){
  Composite composite=new Composite(parent,SWT.NONE);
  UIUtil.bindHelp(composite,IHelpContextIds.NEW_REPORT_COPY_WIZARD_ID);
  GridLayout gridLayout=new GridLayout();
  gridLayout.numColumns=2;
  gridLayout.marginHeight=10;
  gridLayout.marginWidth=10;
  gridLayout.horizontalSpacing=10;
  gridLayout.verticalSpacing=10;
  composite.setLayout(gridLayout);
  Label label0=new Label(composite,SWT.NONE);
  label0.setText(MESSAGE_REPORT_TEMPLATES);
  Label previewLabel=new Label(composite,SWT.NONE);
  previewLabel.setText(MESSAGE_PREVIEW);
  GridData data=new GridData(GridData.BEGINNING);
  previewLabel.setLayoutData(data);
  templateList=new TreeViewer(composite,SWT.BORDER | SWT.SINGLE);
  predefinedCount=templates.size();
  createCustomTemplateList();
  data=new GridData(GridData.BEGINNING | GridData.FILL_VERTICAL);
  data.widthHint=220;
  templateList.getTree().setLayoutData(data);
  previewPane=new Composite(composite,0);
  data=new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL);
  previewPane.setLayoutData(data);
  gridLayout=new GridLayout();
  gridLayout.verticalSpacing=10;
  previewPane.setLayout(gridLayout);
  Composite previewComposite=new Composite(previewPane,SWT.BORDER);
  data=new GridData(GridData.BEGINNING);
  data.heightHint=229;
  data.widthHint=184;
  previewComposite.setLayoutData(data);
  previewComposite.setLayout(new FormLayout());
  previewCanvas=new ImageCanvas(previewComposite);
  FormData formData=new FormData(184,229);
  formData.left=new FormAttachment(previewComposite);
  formData.top=new FormAttachment(previewComposite);
  previewCanvas.setLayoutData(formData);
  Label descriptionTitle=new Label(previewPane,SWT.NONE);
  descriptionTitle.setText(MESSAGE_DESCRIPTION);
  data=new GridData(GridData.FILL_HORIZONTAL);
  descriptionTitle.setLayoutData(data);
  description=new Label(previewPane,SWT.WRAP);
  data=new GridData(GridData.FILL_HORIZONTAL);
  data.widthHint=184;
  data.horizontalIndent=20;
  description.setLayoutData(data);
  new Label(previewPane,SWT.NONE);
  chkBox=new Button(composite,SWT.CHECK);
  chkBox.setText(MESSAGE_SHOW_CHEATSHEET);
  chkBox.setSelection(ReportPlugin.readCheatSheetPreference());
  chkBox.addSelectionListener(new SelectionListener(){
    public void widgetSelected(    SelectionEvent e){
      ReportPlugin.writeCheatSheetPreference(chkBox.getSelection());
    }
    public void widgetDefaultSelected(    SelectionEvent e){
      ReportPlugin.writeCheatSheetPreference(chkBox.getSelection());
    }
  }
);
  hookListeners();
  initTreeViewer();
  if (templates.size() > 0) {
    templateList.setSelection(new StructuredSelection(templates.get(0)));
    setPageComplete(true);
  }
 else {
    setPageComplete(false);
  }
  setControl(composite);
}