Program: 147810
Project: 147810
Buggy source:
/** 
 * Create contents of the dialog.
 * @param parent
 */
@Override protected Control createDialogArea(Composite parent){
  if (isUpdateServerDef) {
    setTitle(Messages.ServerDefDialog_UpdateServer);
  }
 else {
    setTitle(Messages.ServerDefDialog_AddServer);
    this.serverDef=MdmmetadataFactory.eINSTANCE.createMDMServerDef();
  }
  Composite area=(Composite)super.createDialogArea(parent);
  Composite container=new Composite(area,SWT.NONE);
  container.setLayout(new GridLayout(2,false));
  container.setLayoutData(new GridData(GridData.FILL_BOTH));
  new Label(container,SWT.NONE).setText(Messages.ServerDefDialog_Name);
  nameText=new Text(container,SWT.BORDER);
  nameText.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,true,false,1,1));
  nameText.setFocus();
  new Label(container,SWT.NONE).setText(Messages.ServerDefDialog_Server);
  urlText=new Text(container,SWT.BORDER);
  urlText.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,true,false,1,1));
  Group grpAuthentication=new Group(container,SWT.NONE);
  grpAuthentication.setText(Messages.ServerDefDialog_Authentication);
  grpAuthentication.setLayout(new GridLayout(2,false));
  GridData gd_grpAuthentication=new GridData(SWT.FILL,SWT.CENTER,true,false,2,1);
  gd_grpAuthentication.widthHint=439;
  grpAuthentication.setLayoutData(gd_grpAuthentication);
  new Label(grpAuthentication,SWT.NONE).setText(Messages.ServerDefDialog_UserName);
  userNameText=new Text(grpAuthentication,SWT.BORDER);
  userNameText.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,true,false,1,1));
  new Label(grpAuthentication,SWT.NONE).setText(Messages.ServerDefDialog_Password);
  passwordText=new Text(grpAuthentication,SWT.BORDER | SWT.PASSWORD);
  passwordText.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,true,false,1,1));
  sharePwdBtn=new Button(grpAuthentication,SWT.CHECK);
  sharePwdBtn.setText(Messages.SharePassword);
  sharePwdBtn.setToolTipText(Messages.OnlyApplicableShared);
  sharePwdBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      passwordText.setText("String_Node_Str");
    }
  }
);
  if (isLocalMode()) {
    sharePwdBtn.setEnabled(false);
    sharePwdBtn.setText(Messages.SharePassword);
    sharePwdBtn.setToolTipText(Messages.OnlyApplicableShared);
  }
  if (isEnterprise) {
    new Label(container,SWT.NONE).setText(Messages.ServerDefDialog_Version);
    universeCombo=new Combo(container,SWT.NONE);
    universeCombo.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,true,false,1,1));
  }
  initValue();
  initListener();
  return area;
}

Fixed version (ground truth):
/** 
 * Create contents of the dialog.
 * @param parent
 */
@Override protected Control createDialogArea(Composite parent){
  if (isUpdateServerDef) {
    setTitle(Messages.ServerDefDialog_UpdateServer);
  }
 else {
    setTitle(Messages.ServerDefDialog_AddServer);
    this.serverDef=MdmmetadataFactory.eINSTANCE.createMDMServerDef();
  }
  Composite area=(Composite)super.createDialogArea(parent);
  Composite container=new Composite(area,SWT.NONE);
  container.setLayout(new GridLayout(2,false));
  container.setLayoutData(new GridData(GridData.FILL_BOTH));
  new Label(container,SWT.NONE).setText(Messages.ServerDefDialog_Name);
  nameText=new Text(container,SWT.BORDER);
  nameText.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,true,false,1,1));
  nameText.setFocus();
  new Label(container,SWT.NONE).setText(Messages.ServerDefDialog_Server);
  urlText=new Text(container,SWT.BORDER);
  urlText.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,true,false,1,1));
  Group grpAuthentication=new Group(container,SWT.NONE);
  grpAuthentication.setText(Messages.ServerDefDialog_Authentication);
  grpAuthentication.setLayout(new GridLayout(2,false));
  GridData gd_grpAuthentication=new GridData(SWT.FILL,SWT.CENTER,true,false,2,1);
  gd_grpAuthentication.widthHint=439;
  grpAuthentication.setLayoutData(gd_grpAuthentication);
  new Label(grpAuthentication,SWT.NONE).setText(Messages.ServerDefDialog_UserName);
  userNameText=new Text(grpAuthentication,SWT.BORDER);
  userNameText.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,true,false,1,1));
  new Label(grpAuthentication,SWT.NONE).setText(Messages.ServerDefDialog_Password);
  passwordText=new Text(grpAuthentication,SWT.BORDER | SWT.PASSWORD);
  passwordText.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,true,false,1,1));
  sharePwdBtn=new Button(grpAuthentication,SWT.CHECK);
  sharePwdBtn.setText(Messages.SharePassword);
  sharePwdBtn.setToolTipText(Messages.OnlyApplicableShared);
  sharePwdBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
    }
  }
);
  if (isLocalMode()) {
    sharePwdBtn.setEnabled(false);
    sharePwdBtn.setText(Messages.SharePassword);
    sharePwdBtn.setToolTipText(Messages.OnlyApplicableShared);
  }
  if (isEnterprise) {
    new Label(container,SWT.NONE).setText(Messages.ServerDefDialog_Version);
    universeCombo=new Combo(container,SWT.NONE);
    universeCombo.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,true,false,1,1));
  }
  initValue();
  initListener();
  return area;
}