Program: 148506
Project: 148506
Buggy source:
protected Control createDialogArea(Composite parent){
  parent.getShell().setText(this.title);
  Composite composite=(Composite)super.createDialogArea(parent);
  GridLayout layout=(GridLayout)composite.getLayout();
  layout.numColumns=2;
  Label nameLabel=new Label(composite,SWT.NONE);
  nameLabel.setLayoutData(new GridData(SWT.FILL,SWT.FILL,false,true,1,1));
  nameLabel.setText("String_Node_Str");
  elementNameText=new Text(composite,SWT.BORDER);
  elementNameText.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
  elementNameText.setText(getElementName() == null ? "String_Node_Str" : getElementName());
  ((GridData)elementNameText.getLayoutData()).widthHint=200;
  Label refLabel=new Label(composite,SWT.NONE);
  refLabel.setLayoutData(new GridData(SWT.FILL,SWT.FILL,false,true,1,1));
  refLabel.setText("String_Node_Str");
  refCombo=new Combo(composite,SWT.DROP_DOWN | SWT.SIMPLE | SWT.READ_ONLY);
  refCombo.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
  refCombo.setItems(elementDeclarations.toArray(new String[elementDeclarations.size()]));
  refCombo.setText(getRefName() == null ? "String_Node_Str" : getRefName());
  ((GridData)refCombo.getLayoutData()).widthHint=200;
  if (refCombo.getText() != "String_Node_Str" && refCombo.getText() != null) {
    elementNameText.setText("String_Node_Str");
    elementNameText.setEditable(false);
  }
 else {
    elementNameText.setEditable(true);
  }
  refCombo.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    SelectionEvent e){
    }
    public void widgetSelected(    SelectionEvent e){
      if (refCombo.getText() != "String_Node_Str" && refCombo.getText() != null) {
        elementNameText.setText("String_Node_Str");
        elementNameText.setEditable(false);
      }
 else {
        elementNameText.setEditable(true);
      }
    }
  }
);
  Label minLabel=new Label(composite,SWT.NONE);
  minLabel.setLayoutData(new GridData(SWT.FILL,SWT.FILL,false,true,1,1));
  minLabel.setText("String_Node_Str");
  minOccursText=new Text(composite,SWT.NONE);
  minOccursText.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
  minOccursText.setDoubleClickEnabled(false);
  minOccursText.setText("String_Node_Str" + getMinOccurs());
  Label maxLabel=new Label(composite,SWT.NONE);
  maxLabel.setLayoutData(new GridData(SWT.FILL,SWT.FILL,false,true,1,1));
  maxLabel.setText("String_Node_Str");
  maxOccursText=new Text(composite,SWT.NONE);
  maxOccursText.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
  maxOccursText.setText(getMaxOccurs() == -1 ? "String_Node_Str" : "String_Node_Str" + getMaxOccurs());
  if (isNew && Util.IsEnterPrise()) {
    checkBox=new Button(composite,SWT.CHECK);
    checkBox.setLayoutData(new GridData(SWT.LEFT,SWT.FILL,false,true,2,1));
    checkBox.addSelectionListener(new SelectionListener(){
      public void widgetDefaultSelected(      org.eclipse.swt.events.SelectionEvent e){
      }
      public void widgetSelected(      org.eclipse.swt.events.SelectionEvent e){
        inherit=checkBox.getSelection();
      }
    }
);
    checkBox.setSelection(inherit);
    checkBox.setText("String_Node_Str");
  }
  return composite;
}

Fixed version (ground truth):
protected Control createDialogArea(Composite parent){
  parent.getShell().setText(this.title);
  Composite composite=(Composite)super.createDialogArea(parent);
  GridLayout layout=(GridLayout)composite.getLayout();
  layout.numColumns=2;
  Label nameLabel=new Label(composite,SWT.NONE);
  nameLabel.setLayoutData(new GridData(SWT.FILL,SWT.FILL,false,true,1,1));
  nameLabel.setText("String_Node_Str");
  elementNameText=new Text(composite,SWT.BORDER);
  elementNameText.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
  elementNameText.setText(getElementName() == null ? "String_Node_Str" : getElementName());
  ((GridData)elementNameText.getLayoutData()).widthHint=200;
  Label refLabel=new Label(composite,SWT.NONE);
  refLabel.setLayoutData(new GridData(SWT.FILL,SWT.FILL,false,true,1,1));
  refLabel.setText("String_Node_Str");
  refCombo=new Combo(composite,SWT.DROP_DOWN | SWT.SIMPLE | SWT.READ_ONLY);
  refCombo.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
  refCombo.setItems(elementDeclarations.toArray(new String[elementDeclarations.size()]));
  refCombo.setText(getRefName() == null ? "String_Node_Str" : getRefName());
  ((GridData)refCombo.getLayoutData()).widthHint=200;
  if (refCombo.getText().length() > 0) {
    elementNameText.setText("String_Node_Str");
    elementNameText.setEditable(false);
  }
 else {
    elementNameText.setEditable(true);
    elementNameText.setText(getElementName() == null ? "String_Node_Str" : getElementName());
  }
  refCombo.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    SelectionEvent e){
    }
    public void widgetSelected(    SelectionEvent e){
      if (refCombo.getText().length() > 0) {
        elementNameText.setText("String_Node_Str");
        elementNameText.setEditable(false);
      }
 else {
        elementNameText.setEditable(true);
        elementNameText.setText(getElementName() == null ? "String_Node_Str" : getElementName());
      }
    }
  }
);
  Label minLabel=new Label(composite,SWT.NONE);
  minLabel.setLayoutData(new GridData(SWT.FILL,SWT.FILL,false,true,1,1));
  minLabel.setText("String_Node_Str");
  minOccursText=new Text(composite,SWT.NONE);
  minOccursText.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
  minOccursText.setDoubleClickEnabled(false);
  minOccursText.setText("String_Node_Str" + getMinOccurs());
  Label maxLabel=new Label(composite,SWT.NONE);
  maxLabel.setLayoutData(new GridData(SWT.FILL,SWT.FILL,false,true,1,1));
  maxLabel.setText("String_Node_Str");
  maxOccursText=new Text(composite,SWT.NONE);
  maxOccursText.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
  maxOccursText.setText(getMaxOccurs() == -1 ? "String_Node_Str" : "String_Node_Str" + getMaxOccurs());
  if (isNew && Util.IsEnterPrise()) {
    checkBox=new Button(composite,SWT.CHECK);
    checkBox.setLayoutData(new GridData(SWT.LEFT,SWT.FILL,false,true,2,1));
    checkBox.addSelectionListener(new SelectionListener(){
      public void widgetDefaultSelected(      org.eclipse.swt.events.SelectionEvent e){
      }
      public void widgetSelected(      org.eclipse.swt.events.SelectionEvent e){
        inherit=checkBox.getSelection();
      }
    }
);
    checkBox.setSelection(inherit);
    checkBox.setText("String_Node_Str");
  }
  return composite;
}