Program: 123258
Project: 123258
Buggy source:
private void createTosProjectArea(final Composite parent){
  tosProjectComposite=toolkit.createComposite(parent);
  tosProjectComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  tosProjectComposite.setLayout(new FormLayout());
  tosProjectComposite.setBackgroundMode(SWT.INHERIT_DEFAULT);
  tosProjectComposite.setBackground(parent.getBackground());
  openProjectBtn=toolkit.createButton(tosProjectComposite,null,SWT.PUSH);
  openProjectBtn.setText(Messages.getString("String_Node_Str"));
  openProjectBtn.setToolTipText(Messages.getString("String_Node_Str"));
  Image image=ImageProvider.getImage(ERepositoryImages.OPEN_PROJECT_ICON);
  openProjectBtn.setImage(image);
  openProjectBtn.setVisible(false);
  Label createProjectLabel=toolkit.createLabel(tosProjectComposite,Messages.getString("String_Node_Str"));
  createProjectBtn=toolkit.createButton(tosProjectComposite,null,SWT.PUSH);
  createProjectBtn.setBackground(tosProjectComposite.getBackground());
  createProjectBtn.setText(Messages.getString("String_Node_Str"));
  FormData data=new FormData();
  data.top=new FormAttachment(createProjectLabel,-HORIZONTAL_SPACE,SWT.CENTER);
  data.right=new FormAttachment(90,-HORIZONTAL_TWO_SPACE);
  data.bottom=new FormAttachment(0,28 + HORIZONTAL_SPACE);
  createProjectBtn.setLayoutData(data);
  createProjectBtn.setEnabled(true);
  GC gc=new GC(createProjectLabel);
  Point labelSize=gc.stringExtent(Messages.getString("String_Node_Str"));
  gc.dispose();
  data=new FormData();
  data.top=new FormAttachment(0,10);
  data.left=new FormAttachment(10,HORIZONTAL_SPACE);
  data.right=new FormAttachment(10,HORIZONTAL_THREE_SPACE + labelSize.x + 1);
  data.bottom=new FormAttachment(createProjectBtn,-1,SWT.BOTTOM);
  createProjectLabel.setLayoutData(data);
  projectText=toolkit.createText(tosProjectComposite,"String_Node_Str",SWT.BORDER);
  data=new FormData();
  data.top=new FormAttachment(createProjectLabel,0,SWT.TOP);
  data.left=new FormAttachment(createProjectLabel,10,SWT.RIGHT);
  data.bottom=new FormAttachment(createProjectLabel,0,SWT.BOTTOM);
  Point btPoint=createProjectBtn.computeSize(SWT.DEFAULT,SWT.DEFAULT);
  data.right=new FormAttachment(100,-HORIZONTAL_THREE_SPACE - btPoint.x - 50);
  projectText.setLayoutData(data);
  projectText.setText(DEFAULT_PROJECT_NAME);
  projectText.setBackground(GREY_COLOR);
  projectText.addFocusListener(new FocusAdapter(){
    public void focusGained(    FocusEvent e){
      if (projectText.getText().equals(DEFAULT_PROJECT_NAME)) {
        projectText.setBackground(null);
        projectText.setText("String_Node_Str");
      }
    }
    public void focusLost(    FocusEvent e){
      if (projectText.getText() == "String_Node_Str") {
        projectText.setText(DEFAULT_PROJECT_NAME);
        projectText.setBackground(GREY_COLOR);
      }
    }
  }
);
  advanced=toolkit.createButton(tosProjectComposite,null,SWT.PUSH);
  advanced.setText(Messages.getString("String_Node_Str"));
  advanced.setBackground(tosProjectComposite.getBackground());
  data=new FormData();
  data.top=new FormAttachment(createProjectLabel,HORIZONTAL_TWO_SPACE);
  data.left=new FormAttachment(createProjectLabel,HORIZONTAL_TWO_SPACE - 1,SWT.RIGHT);
  data.bottom=new FormAttachment(createProjectLabel,HORIZONTAL_TWO_SPACE + 50);
  advanced.setLayoutData(data);
  createProjectBtn.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      Project project=null;
      NewProjectWizard newPrjWiz=new NewProjectWizard(new Project[]{});
      newPrjWiz.setDefaultProjectName(projectText.getText());
      WizardDialog newProjectDialog=new WizardDialog(getShell(),newPrjWiz);
      newProjectDialog.setTitle(Messages.getString("String_Node_Str"));
      if (newProjectDialog.open() == Window.OK) {
        project=newPrjWiz.getProject();
        populateProjectList();
        projectText.setText(project.getLabel());
        dialog.advanced();
      }
    }
  }
);
  advanced.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      dialog.advanced();
    }
  }
);
}

Fixed version (ground truth):
private void createTosProjectArea(final Composite parent){
  tosProjectComposite=toolkit.createComposite(parent);
  tosProjectComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  tosProjectComposite.setLayout(new FormLayout());
  tosProjectComposite.setBackgroundMode(SWT.INHERIT_DEFAULT);
  tosProjectComposite.setBackground(parent.getBackground());
  openProjectBtn=toolkit.createButton(tosProjectComposite,null,SWT.PUSH);
  openProjectBtn.setText(Messages.getString("String_Node_Str"));
  openProjectBtn.setToolTipText(Messages.getString("String_Node_Str"));
  Image image=ImageProvider.getImage(ERepositoryImages.OPEN_PROJECT_ICON);
  openProjectBtn.setImage(image);
  openProjectBtn.setVisible(false);
  Label createProjectLabel=toolkit.createLabel(tosProjectComposite,Messages.getString("String_Node_Str"));
  createProjectBtn=toolkit.createButton(tosProjectComposite,null,SWT.PUSH);
  createProjectBtn.setBackground(tosProjectComposite.getBackground());
  createProjectBtn.setText(Messages.getString("String_Node_Str"));
  FormData data=new FormData();
  data.top=new FormAttachment(createProjectLabel,-HORIZONTAL_SPACE,SWT.CENTER);
  data.right=new FormAttachment(90,-HORIZONTAL_TWO_SPACE);
  data.bottom=new FormAttachment(0,28 + HORIZONTAL_SPACE);
  createProjectBtn.setLayoutData(data);
  createProjectBtn.setEnabled(true);
  GC gc=new GC(createProjectLabel);
  Point labelSize=gc.stringExtent(Messages.getString("String_Node_Str"));
  gc.dispose();
  data=new FormData();
  data.top=new FormAttachment(0,10);
  data.left=new FormAttachment(10,HORIZONTAL_SPACE);
  data.right=new FormAttachment(10,HORIZONTAL_THREE_SPACE + labelSize.x + 1);
  data.bottom=new FormAttachment(createProjectBtn,-1,SWT.BOTTOM);
  createProjectLabel.setLayoutData(data);
  projectText=toolkit.createText(tosProjectComposite,"String_Node_Str",SWT.BORDER);
  data=new FormData();
  data.top=new FormAttachment(createProjectLabel,0,SWT.TOP);
  data.left=new FormAttachment(createProjectLabel,10,SWT.RIGHT);
  data.bottom=new FormAttachment(createProjectLabel,0,SWT.BOTTOM);
  Point btPoint=createProjectBtn.computeSize(SWT.DEFAULT,SWT.DEFAULT);
  data.right=new FormAttachment(100,-HORIZONTAL_THREE_SPACE - btPoint.x - 50);
  projectText.setLayoutData(data);
  projectText.setText(DEFAULT_PROJECT_NAME);
  projectText.setBackground(GREY_COLOR);
  projectText.addFocusListener(new FocusAdapter(){
    @Override public void focusGained(    FocusEvent e){
      if (projectText.getText().equals(DEFAULT_PROJECT_NAME)) {
        projectText.setBackground(null);
        projectText.setText("String_Node_Str");
      }
    }
    @Override public void focusLost(    FocusEvent e){
      if (projectText.getText() == "String_Node_Str") {
        projectText.setText(DEFAULT_PROJECT_NAME);
        projectText.setBackground(GREY_COLOR);
      }
    }
  }
);
  advanced=toolkit.createButton(tosProjectComposite,null,SWT.PUSH);
  advanced.setText(Messages.getString("String_Node_Str"));
  advanced.setBackground(tosProjectComposite.getBackground());
  data=new FormData();
  data.top=new FormAttachment(createProjectLabel,HORIZONTAL_TWO_SPACE);
  data.left=new FormAttachment(createProjectLabel,HORIZONTAL_TWO_SPACE - 1,SWT.RIGHT);
  data.bottom=new FormAttachment(createProjectLabel,HORIZONTAL_TWO_SPACE + 50);
  advanced.setLayoutData(data);
  createProjectBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      Project project=null;
      NewProjectWizard newPrjWiz=new NewProjectWizard(new Project[]{});
      newPrjWiz.setDefaultProjectName(projectText.getText());
      WizardDialog newProjectDialog=new WizardDialog(getShell(),newPrjWiz);
      newProjectDialog.setTitle(Messages.getString("String_Node_Str"));
      if (newProjectDialog.open() == Window.OK) {
        project=newPrjWiz.getProject();
        populateProjectList();
        projectText.setText(project.getLabel());
        dialog.advanced();
      }
    }
  }
);
  advanced.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      dialog.advanced();
    }
  }
);
}