Program: 148763
Project: 148763
Buggy source:
protected void createCharacteristicsContent(FormToolkit toolkit,Composite charComposite){
  try {
    WSStoredProcedure wsStoredProcedure=(WSStoredProcedure)(getXObject().getWsObject());
    Label descriptionLabel=toolkit.createLabel(charComposite,"String_Node_Str",SWT.NULL);
    descriptionLabel.setLayoutData(new GridData(SWT.BEGINNING,SWT.CENTER,false,false,1,1));
    descriptionText=toolkit.createText(charComposite,"String_Node_Str",SWT.BORDER | SWT.MULTI);
    descriptionText.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
    descriptionText.setText(wsStoredProcedure.getDescription() == null ? "String_Node_Str" : wsStoredProcedure.getDescription());
    descriptionText.addModifyListener(this);
    Group storedProcedureGroup=new Group(charComposite,SWT.SHADOW_NONE);
    storedProcedureGroup.setText("String_Node_Str");
    storedProcedureGroup.setLayout(new GridLayout(1,true));
    storedProcedureGroup.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,2,1));
    ((GridData)storedProcedureGroup.getLayoutData()).minimumHeight=100;
    procedureViewer=new SourceViewer(storedProcedureGroup,new VerticalRuler(10),SWT.V_SCROLL);
    procedureViewer.getControl().setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
    procedureViewer.addTextListener(this);
    WidgetUtils.initRedoUndo(procedureViewer);
    Composite resultsGroup=this.getNewSectionComposite("String_Node_Str");
    resultsGroup.setLayout(new GridLayout(4,false));
    Hyperlink dataClusterLink=toolkit.createHyperlink(resultsGroup,"String_Node_Str",SWT.NULL);
    dataClusterLink.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,true,1,1));
    dataClusterLink.addHyperlinkListener(new IHyperlinkListener(){
      public void linkEntered(      org.eclipse.ui.forms.events.HyperlinkEvent e){
      }
      public void linkExited(      org.eclipse.ui.forms.events.HyperlinkEvent e){
      }
      public void linkActivated(      org.eclipse.ui.forms.events.HyperlinkEvent e){
        TreeParent serverRoot=StoredProcedureMainPage.this.getXObject().getServerRoot();
        TreeObject iaObject=new TreeObject(StoredProcedureMainPage.this.dataClusterCombo.getText(),serverRoot,TreeObject.DATA_CLUSTER,new WSDataClusterPK(StoredProcedureMainPage.this.dataClusterCombo.getText()),null);
        (new EditXObjectAction(iaObject,StoredProcedureMainPage.this.getSite().getPage())).run();
      }
    }
);
    dataClusterCombo=new Combo(resultsGroup,SWT.READ_ONLY | SWT.DROP_DOWN | SWT.SINGLE);
    dataClusterCombo.setLayoutData(new GridData(SWT.BEGINNING,SWT.NONE,false,false,1,1));
    Button executeButton=new Button(resultsGroup,SWT.PUSH);
    executeButton.setText("String_Node_Str");
    executeButton.addMouseListener(new MouseListener(){
      public void mouseUp(      MouseEvent e){
        executeProcedure();
      }
      public void mouseDoubleClick(      MouseEvent e){
      }
      public void mouseDown(      MouseEvent e){
      }
    }
);
    resultsLabel=toolkit.createLabel(resultsGroup,"String_Node_Str",SWT.NULL);
    resultsLabel.setLayoutData(new GridData(SWT.BEGINNING,SWT.CENTER,true,false,1,1));
    resultsViewer=new TableViewer(resultsGroup);
    resultsViewer.getControl().setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,4,1));
    ((GridData)resultsViewer.getControl().getLayoutData()).heightHint=300;
    resultsViewer.setContentProvider(new ArrayContentProvider());
    resultsViewer.setLabelProvider(new XMLTableLabelProvider());
    resultsViewer.addDoubleClickListener(new IDoubleClickListener(){
      public void doubleClick(      DoubleClickEvent event){
        resultsViewer.setSelection(event.getSelection());
        new ResultsViewAction(StoredProcedureMainPage.this.getSite().getShell(),resultsViewer).run();
      }
    }
);
    hookContextMenu();
    refreshData();
    dataClusterCombo.select(0);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
protected void createCharacteristicsContent(FormToolkit toolkit,Composite charComposite){
  try {
    WSStoredProcedure wsStoredProcedure=(WSStoredProcedure)(getXObject().getWsObject());
    Label descriptionLabel=toolkit.createLabel(charComposite,"String_Node_Str",SWT.NULL);
    descriptionLabel.setLayoutData(new GridData(SWT.BEGINNING,SWT.CENTER,false,false,1,1));
    descriptionText=toolkit.createText(charComposite,"String_Node_Str",SWT.BORDER | SWT.MULTI);
    descriptionText.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
    descriptionText.setText(wsStoredProcedure.getDescription() == null ? "String_Node_Str" : wsStoredProcedure.getDescription());
    descriptionText.addModifyListener(this);
    Group storedProcedureGroup=new Group(charComposite,SWT.SHADOW_NONE);
    storedProcedureGroup.setText("String_Node_Str");
    storedProcedureGroup.setLayout(new GridLayout(1,true));
    storedProcedureGroup.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,2,1));
    ((GridData)storedProcedureGroup.getLayoutData()).minimumHeight=100;
    procedureViewer=new SourceViewer(storedProcedureGroup,new VerticalRuler(10),SWT.V_SCROLL);
    procedureViewer.getControl().setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
    procedureViewer.addTextListener(this);
    WidgetUtils.initRedoUndo(procedureViewer);
    createCompDropTarget();
    Composite resultsGroup=this.getNewSectionComposite("String_Node_Str");
    resultsGroup.setLayout(new GridLayout(4,false));
    Hyperlink dataClusterLink=toolkit.createHyperlink(resultsGroup,"String_Node_Str",SWT.NULL);
    dataClusterLink.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,true,1,1));
    dataClusterLink.addHyperlinkListener(new IHyperlinkListener(){
      public void linkEntered(      org.eclipse.ui.forms.events.HyperlinkEvent e){
      }
      public void linkExited(      org.eclipse.ui.forms.events.HyperlinkEvent e){
      }
      public void linkActivated(      org.eclipse.ui.forms.events.HyperlinkEvent e){
        TreeParent serverRoot=StoredProcedureMainPage.this.getXObject().getServerRoot();
        TreeObject iaObject=new TreeObject(StoredProcedureMainPage.this.dataClusterCombo.getText(),serverRoot,TreeObject.DATA_CLUSTER,new WSDataClusterPK(StoredProcedureMainPage.this.dataClusterCombo.getText()),null);
        (new EditXObjectAction(iaObject,StoredProcedureMainPage.this.getSite().getPage())).run();
      }
    }
);
    dataClusterCombo=new Combo(resultsGroup,SWT.READ_ONLY | SWT.DROP_DOWN | SWT.SINGLE);
    dataClusterCombo.setLayoutData(new GridData(SWT.BEGINNING,SWT.NONE,false,false,1,1));
    Button executeButton=new Button(resultsGroup,SWT.PUSH);
    executeButton.setText("String_Node_Str");
    executeButton.addMouseListener(new MouseListener(){
      public void mouseUp(      MouseEvent e){
        executeProcedure();
      }
      public void mouseDoubleClick(      MouseEvent e){
      }
      public void mouseDown(      MouseEvent e){
      }
    }
);
    resultsLabel=toolkit.createLabel(resultsGroup,"String_Node_Str",SWT.NULL);
    resultsLabel.setLayoutData(new GridData(SWT.BEGINNING,SWT.CENTER,true,false,1,1));
    resultsViewer=new TableViewer(resultsGroup);
    resultsViewer.getControl().setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,4,1));
    ((GridData)resultsViewer.getControl().getLayoutData()).heightHint=300;
    resultsViewer.setContentProvider(new ArrayContentProvider());
    resultsViewer.setLabelProvider(new XMLTableLabelProvider());
    resultsViewer.addDoubleClickListener(new IDoubleClickListener(){
      public void doubleClick(      DoubleClickEvent event){
        resultsViewer.setSelection(event.getSelection());
        new ResultsViewAction(StoredProcedureMainPage.this.getSite().getShell(),resultsViewer).run();
      }
    }
);
    hookContextMenu();
    refreshData();
    dataClusterCombo.select(0);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}