Program: 146162
Project: 146162
Buggy source:
protected Control createDialogArea(Composite parent){
  parent.getShell().setText(this.title);
  Composite composite=(Composite)super.createDialogArea(parent);
  GridLayout layout=(GridLayout)composite.getLayout();
  layout.makeColumnsEqualWidth=false;
  layout.numColumns=2;
  Label datamoelsLabel=new Label(composite,SWT.NONE);
  GridData dg=new GridData(SWT.FILL,SWT.FILL,false,true,1,1);
  datamoelsLabel.setLayoutData(dg);
  datamoelsLabel.setText("String_Node_Str");
  dg=new GridData(SWT.FILL,SWT.FILL,true,true,2,1);
  dg.widthHint=400;
  dataModelCombo=new Combo(composite,SWT.READ_ONLY | SWT.DROP_DOWN | SWT.SINGLE);
  dataModelCombo.setLayoutData(dg);
  TreeParent grantTreeParent=this.parent.getParent();
  TreeParent tree=grantTreeParent.findServerFolder(TreeObject.DATA_MODEL);
  TreeObject[] trees=tree.getChildren();
  TreeObject treeobject;
  for (int i=0; i < trees.length; i++) {
    treeobject=trees[i];
    String treeName=treeobject.getDisplayName();
    dataModelCombo.add(treeName);
  }
  final TreeParent pObject=tree;
  dataModelCombo.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    org.eclipse.swt.events.SelectionEvent e){
    }
    public void widgetSelected(    org.eclipse.swt.events.SelectionEvent e){
      String modelDisplay=dataModelCombo.getText();
      XpathSelectDialog.this.selectedDataModelName=modelDisplay;
      xobject=pObject.findObject(TreeObject.DATA_MODEL,modelDisplay);
      XtentisPort port=null;
      try {
        port=Util.getPort(new URL(xobject.getEndpointAddress()),xobject.getUniverse(),xobject.getUsername(),xobject.getPassword());
      }
 catch (      MalformedURLException e3) {
        e3.printStackTrace();
      }
catch (      XtentisException e3) {
        e3.printStackTrace();
      }
      WSDataModel wsDataModel=null;
      try {
        wsDataModel=port.getDataModel(new WSGetDataModel((WSDataModelPK)xobject.getWsKey()));
      }
 catch (      RemoteException e2) {
        e2.printStackTrace();
      }
      try {
        XSDSchema xsdSchema=getXSDSchema(wsDataModel.getXsdSchema());
        provideViwerContent(xsdSchema);
      }
 catch (      Exception e1) {
        e1.printStackTrace();
      }
    }
  }
);
  schemaLabel=new Label(composite,SWT.NONE);
  schemaLabel.setText("String_Node_Str");
  schemaLabel.setLayoutData(new GridData(SWT.FILL,SWT.FILL,false,true,1,1));
  ((GridData)schemaLabel.getLayoutData()).widthHint=10;
  xpathText=new Text(composite,SWT.BORDER);
  xpathText.setEditable(false);
  xpathText.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
  if (isMulti) {
    domViewer=new TreeViewer(composite,SWT.H_SCROLL | SWT.MULTI | SWT.V_SCROLL| SWT.BORDER);
  }
 else {
    domViewer=new TreeViewer(composite,SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
  }
  domViewer.getControl().setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,2,1));
  ((GridData)domViewer.getControl().getLayoutData()).heightHint=300;
  ((GridData)domViewer.getControl().getLayoutData()).widthHint=200;
  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.makeColumnsEqualWidth=false;
  layout.numColumns=2;
  Label datamoelsLabel=new Label(composite,SWT.NONE);
  GridData dg=new GridData(SWT.FILL,SWT.FILL,false,true,1,1);
  datamoelsLabel.setLayoutData(dg);
  datamoelsLabel.setText("String_Node_Str");
  dg=new GridData(SWT.FILL,SWT.FILL,true,true,2,1);
  dg.widthHint=400;
  dataModelCombo=new Combo(composite,SWT.READ_ONLY | SWT.DROP_DOWN | SWT.SINGLE);
  dataModelCombo.setLayoutData(dg);
  TreeParent grantTreeParent=this.parent.getParent();
  TreeParent tree=grantTreeParent.findServerFolder(TreeObject.DATA_MODEL);
  TreeObject[] trees=tree.getChildren();
  TreeObject treeobject;
  for (int i=0; i < trees.length; i++) {
    treeobject=trees[i];
    String treeName=treeobject.getDisplayName();
    dataModelCombo.add(treeName);
  }
  final TreeParent pObject=tree;
  dataModelCombo.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    org.eclipse.swt.events.SelectionEvent e){
    }
    public void widgetSelected(    org.eclipse.swt.events.SelectionEvent e){
      String modelDisplay=dataModelCombo.getText();
      XpathSelectDialog.this.selectedDataModelName=modelDisplay;
      xobject=pObject.findObject(TreeObject.DATA_MODEL,modelDisplay);
      XtentisPort port=null;
      try {
        port=Util.getPort(new URL(xobject.getEndpointAddress()),xobject.getUniverse(),xobject.getUsername(),xobject.getPassword());
      }
 catch (      MalformedURLException e3) {
        e3.printStackTrace();
      }
catch (      XtentisException e3) {
        e3.printStackTrace();
      }
      WSDataModel wsDataModel=null;
      try {
        wsDataModel=port.getDataModel(new WSGetDataModel((WSDataModelPK)xobject.getWsKey()));
      }
 catch (      RemoteException e2) {
        e2.printStackTrace();
      }
      try {
        XSDSchema xsdSchema=getXSDSchema(wsDataModel.getXsdSchema());
        provideViwerContent(xsdSchema);
      }
 catch (      Exception e1) {
        e1.printStackTrace();
      }
    }
  }
);
  schemaLabel=new Label(composite,SWT.NONE);
  schemaLabel.setText("String_Node_Str");
  schemaLabel.setLayoutData(new GridData(SWT.FILL,SWT.FILL,false,true,1,1));
  ((GridData)schemaLabel.getLayoutData()).widthHint=10;
  xpathText=new Text(composite,SWT.BORDER);
  xpathText.setEditable(false);
  xpathText.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
  if (isMulti) {
    domViewer=new TreeViewer(composite,SWT.H_SCROLL | SWT.MULTI | SWT.V_SCROLL| SWT.BORDER);
  }
 else {
    domViewer=new TreeViewer(composite,SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
  }
  domViewer.getControl().setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,2,1));
  ((GridData)domViewer.getControl().getLayoutData()).heightHint=400;
  ((GridData)domViewer.getControl().getLayoutData()).widthHint=200;
  return composite;
}