Program: 121644
Project: 121644
Buggy source:
private void createTosRepositoryArea(Composite parent){
  repositoryComposite=toolkit.createComposite(parent);
  GridData gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.heightHint=30;
  repositoryComposite.setLayoutData(gd);
  repositoryComposite.setLayout(new FormLayout());
  repositoryComposite.setBackgroundMode(SWT.INHERIT_DEFAULT);
  repositoryComposite.setBackground(parent.getBackground());
  String productName=brandingService.getFullProductName();
  Label welcomeLabel=toolkit.createLabel(repositoryComposite,Messages.getString("String_Node_Str",productName));
  welcomeLabel.setBackground(repositoryComposite.getBackground());
  GC gc=new GC(welcomeLabel);
  Point labelSize=gc.stringExtent(Messages.getString("String_Node_Str",productName));
  gc.dispose();
  FormData welcomeLabelFormData=new FormData();
  welcomeLabelFormData.top=new FormAttachment(0,7);
  welcomeLabelFormData.left=new FormAttachment(0,HORIZONTAL_TWO_SPACE);
  welcomeLabelFormData.right=new FormAttachment(0,HORIZONTAL_TWO_SPACE + labelSize.x);
  welcomeLabelFormData.bottom=new FormAttachment(0,7 + labelSize.y);
  welcomeLabel.setLayoutData(welcomeLabelFormData);
  passwordText=toolkit.createText(repositoryComposite,null,SWT.PASSWORD | SWT.BORDER);
  passwordText.setVisible(false);
  Label repositoryLabel=toolkit.createLabel(repositoryComposite,Messages.getString("String_Node_Str"));
  repositoryLabel.setBackground(repositoryComposite.getBackground());
  FormData formData2=new FormData();
  formData2.top=new FormAttachment(0,17);
  formData2.left=new FormAttachment(0,HORIZONTAL_TWO_SPACE);
  formData2.right=new FormAttachment(0,LEFTSPACE);
  formData2.bottom=new FormAttachment(100,-HORIZONTAL_SPACE);
  repositoryLabel.setLayoutData(formData2);
  repositoryLabel.setVisible(false);
  connectionsViewer=new ComboViewer(repositoryComposite,SWT.BORDER | SWT.READ_ONLY);
  connectionsViewer.setContentProvider(new ArrayContentProvider());
  connectionsViewer.setLabelProvider(new ConnectionLabelProvider());
  formData2=new FormData();
  formData2.top=new FormAttachment(0,HORIZONTAL_THREE_SPACE);
  formData2.left=new FormAttachment(repositoryLabel,HORIZONTAL_SPACE);
  formData2.right=new FormAttachment(50,0);
  connectionsViewer.getControl().setLayoutData(formData2);
  connectionsViewer.getCombo().setVisible(false);
  repositoryHyperlink=toolkit.createHyperlink(repositoryComposite,Messages.getString("String_Node_Str"),SWT.NONE);
  repositoryHyperlink.setBackground(repositoryComposite.getBackground());
  formData2=new FormData();
  formData2.top=new FormAttachment(0,HORIZONTAL_THREE_SPACE);
  formData2.left=new FormAttachment(connectionsViewer.getControl(),HORIZONTAL_FOUR_SPACE);
  formData2.right=new FormAttachment(100,-HORIZONTAL_TWO_SPACE);
  repositoryHyperlink.setLayoutData(formData2);
  repositoryHyperlink.addHyperlinkListener(new HyperlinkAdapter(){
    @Override public void linkActivated(    HyperlinkEvent e){
      String url="String_Node_Str";
      TalendBrowserLaunchHelper.openURL(url);
    }
  }
);
  repositoryHyperlink.setVisible(false);
  userEmailComposite=toolkit.createComposite(parent);
  userEmailComposite.setBackgroundMode(SWT.INHERIT_DEFAULT);
  userEmailComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  userEmailComposite.setLayout(new FormLayout());
  Label detailLabel=toolkit.createLabel(userEmailComposite,Messages.getString("String_Node_Str",productName));
  detailLabel.setBackground(userEmailComposite.getBackground());
  FormData detailLabelFormData=new FormData();
  detailLabelFormData.top=new FormAttachment(0,0);
  detailLabelFormData.left=new FormAttachment(0,HORIZONTAL_TWO_SPACE);
  if (Platform.getOS().equals(Platform.OS_WIN32)) {
    detailLabelFormData.right=new FormAttachment(0,440);
  }
 else   if (Platform.getOS().equals(Platform.OS_LINUX)) {
    detailLabelFormData.right=new FormAttachment(0,500);
  }
 else {
    detailLabelFormData.right=new FormAttachment(0,500);
  }
  detailLabelFormData.bottom=new FormAttachment(100,0);
  detailLabel.setLayoutData(detailLabelFormData);
  Label userLabel=toolkit.createLabel(userEmailComposite,Messages.getString("String_Node_Str"));
  userLabel.setBackground(userEmailComposite.getBackground());
  FormData formData=new FormData();
  formData.top=new FormAttachment(0,HORIZONTAL_TWO_SPACE);
  formData.left=new FormAttachment(0,HORIZONTAL_TWO_SPACE);
  formData.right=new FormAttachment(0,LEFTSPACE);
  formData.bottom=new FormAttachment(100,-HORIZONTAL_TWO_SPACE);
  userLabel.setLayoutData(formData);
  userLabel.setVisible(false);
  user=toolkit.createText(userEmailComposite,"String_Node_Str",SWT.BORDER);
  user.setEditable(false);
  user.setEnabled(false);
  formData=new FormData();
  formData.top=new FormAttachment(0,HORIZONTAL_TWO_SPACE);
  formData.left=new FormAttachment(userLabel,HORIZONTAL_SPACE);
  formData.right=new FormAttachment(90,-HORIZONTAL_TWO_SPACE);
  user.setLayoutData(formData);
  user.setVisible(false);
  manageConnectionsButton=toolkit.createButton(userEmailComposite,null,SWT.PUSH);
  manageConnectionsButton.setBackground(userEmailComposite.getBackground());
  manageConnectionsButton.setToolTipText(Messages.getString("String_Node_Str"));
  manageConnectionsButton.setImage(ImageProvider.getImage(EImage.THREE_DOTS_ICON));
  formData=new FormData();
  formData.top=new FormAttachment(0,7);
  formData.left=new FormAttachment(user,HORIZONTAL_SPACE);
  formData.right=new FormAttachment(100,-HORIZONTAL_TWO_SPACE);
  manageConnectionsButton.setLayoutData(formData);
  manageConnectionsButton.setVisible(false);
}

Fixed version (ground truth):
private void createTosRepositoryArea(Composite parent){
  repositoryComposite=toolkit.createComposite(parent);
  GridData gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.heightHint=30;
  repositoryComposite.setLayoutData(gd);
  repositoryComposite.setLayout(new FormLayout());
  repositoryComposite.setBackgroundMode(SWT.INHERIT_DEFAULT);
  repositoryComposite.setBackground(parent.getBackground());
  String productName=brandingService.getFullProductName();
  Label welcomeLabel=toolkit.createLabel(repositoryComposite,Messages.getString("String_Node_Str",productName));
  welcomeLabel.setBackground(repositoryComposite.getBackground());
  GC gc=new GC(welcomeLabel);
  Point labelSize=gc.stringExtent(Messages.getString("String_Node_Str",productName));
  gc.dispose();
  FormData welcomeLabelFormData=new FormData();
  welcomeLabelFormData.top=new FormAttachment(0,7);
  welcomeLabelFormData.left=new FormAttachment(0,HORIZONTAL_TWO_SPACE);
  welcomeLabelFormData.right=new FormAttachment(0,HORIZONTAL_TWO_SPACE + labelSize.x);
  welcomeLabelFormData.bottom=new FormAttachment(0,7 + labelSize.y);
  welcomeLabel.setLayoutData(welcomeLabelFormData);
  passwordText=toolkit.createText(repositoryComposite,null,SWT.PASSWORD | SWT.BORDER);
  passwordText.setVisible(false);
  Label repositoryLabel=toolkit.createLabel(repositoryComposite,Messages.getString("String_Node_Str"));
  repositoryLabel.setBackground(repositoryComposite.getBackground());
  FormData formData2=new FormData();
  formData2.top=new FormAttachment(0,17);
  formData2.left=new FormAttachment(0,HORIZONTAL_TWO_SPACE);
  formData2.right=new FormAttachment(0,LEFTSPACE);
  formData2.bottom=new FormAttachment(100,-HORIZONTAL_SPACE);
  repositoryLabel.setLayoutData(formData2);
  repositoryLabel.setVisible(false);
  connectionsViewer=new ComboViewer(repositoryComposite,SWT.BORDER | SWT.READ_ONLY);
  connectionsViewer.setContentProvider(new ArrayContentProvider());
  connectionsViewer.setLabelProvider(new ConnectionLabelProvider());
  formData2=new FormData();
  formData2.top=new FormAttachment(0,HORIZONTAL_THREE_SPACE);
  formData2.left=new FormAttachment(repositoryLabel,HORIZONTAL_SPACE);
  formData2.right=new FormAttachment(50,0);
  connectionsViewer.getControl().setLayoutData(formData2);
  connectionsViewer.getCombo().setVisible(false);
  repositoryHyperlink=toolkit.createHyperlink(repositoryComposite,Messages.getString("String_Node_Str"),SWT.NONE);
  repositoryHyperlink.setBackground(repositoryComposite.getBackground());
  formData2=new FormData();
  formData2.top=new FormAttachment(0,HORIZONTAL_THREE_SPACE);
  formData2.left=new FormAttachment(connectionsViewer.getControl(),HORIZONTAL_FOUR_SPACE);
  formData2.right=new FormAttachment(100,-HORIZONTAL_TWO_SPACE);
  repositoryHyperlink.setLayoutData(formData2);
  repositoryHyperlink.addHyperlinkListener(new HyperlinkAdapter(){
    @Override public void linkActivated(    HyperlinkEvent e){
      String url="String_Node_Str";
      TalendBrowserLaunchHelper.openURL(url);
    }
  }
);
  repositoryHyperlink.setVisible(false);
  userEmailComposite=toolkit.createComposite(parent);
  userEmailComposite.setBackgroundMode(SWT.INHERIT_DEFAULT);
  userEmailComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  userEmailComposite.setLayout(new FormLayout());
  Label detailLabel=toolkit.createLabel(userEmailComposite,Messages.getString("String_Node_Str",productName),SWT.WRAP);
  detailLabel.setBackground(userEmailComposite.getBackground());
  FormData detailLabelFormData=new FormData();
  detailLabelFormData.top=new FormAttachment(0,0);
  detailLabelFormData.left=new FormAttachment(0,HORIZONTAL_TWO_SPACE);
  if (Platform.getOS().equals(Platform.OS_WIN32)) {
    detailLabelFormData.right=new FormAttachment(0,440);
  }
 else   if (Platform.getOS().equals(Platform.OS_LINUX)) {
    detailLabelFormData.right=new FormAttachment(0,500);
  }
 else {
    detailLabelFormData.right=new FormAttachment(0,500);
  }
  detailLabelFormData.bottom=new FormAttachment(100,0);
  detailLabel.setLayoutData(detailLabelFormData);
  Label userLabel=toolkit.createLabel(userEmailComposite,Messages.getString("String_Node_Str"));
  userLabel.setBackground(userEmailComposite.getBackground());
  FormData formData=new FormData();
  formData.top=new FormAttachment(0,HORIZONTAL_TWO_SPACE);
  formData.left=new FormAttachment(0,HORIZONTAL_TWO_SPACE);
  formData.right=new FormAttachment(0,LEFTSPACE);
  formData.bottom=new FormAttachment(100,-HORIZONTAL_TWO_SPACE);
  userLabel.setLayoutData(formData);
  userLabel.setVisible(false);
  user=toolkit.createText(userEmailComposite,"String_Node_Str",SWT.BORDER);
  user.setEditable(false);
  user.setEnabled(false);
  formData=new FormData();
  formData.top=new FormAttachment(0,HORIZONTAL_TWO_SPACE);
  formData.left=new FormAttachment(userLabel,HORIZONTAL_SPACE);
  formData.right=new FormAttachment(90,-HORIZONTAL_TWO_SPACE);
  user.setLayoutData(formData);
  user.setVisible(false);
  manageConnectionsButton=toolkit.createButton(userEmailComposite,null,SWT.PUSH);
  manageConnectionsButton.setBackground(userEmailComposite.getBackground());
  manageConnectionsButton.setToolTipText(Messages.getString("String_Node_Str"));
  manageConnectionsButton.setImage(ImageProvider.getImage(EImage.THREE_DOTS_ICON));
  formData=new FormData();
  formData.top=new FormAttachment(0,7);
  formData.left=new FormAttachment(user,HORIZONTAL_SPACE);
  formData.right=new FormAttachment(100,-HORIZONTAL_TWO_SPACE);
  manageConnectionsButton.setLayoutData(formData);
  manageConnectionsButton.setVisible(false);
}