Program: 149142
Project: 149142
Buggy source:
@Override protected void createFormContent(IManagedForm managedForm){
  try {
    managedForm.getForm().setText(this.getTitle());
    FormToolkit toolkit=managedForm.getToolkit();
    Composite composite=managedForm.getForm().getBody();
    composite.setLayout(new GridLayout(9,false));
    Label descriptionLabel=toolkit.createLabel(composite,"String_Node_Str",SWT.NULL);
    descriptionLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    searchText=toolkit.createText(composite,"String_Node_Str",SWT.BORDER | SWT.MULTI);
    searchText.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,false,2,1));
    searchText.addKeyListener(new KeyListener(){
      public void keyPressed(      KeyEvent e){
      }
      public void keyReleased(      KeyEvent e){
        if ((e.stateMask == 0) && (e.character == SWT.CR)) {
          ItemsTrashBrowserMainPage.this.resultsViewer.setInput(getResults(true));
        }
      }
    }
);
    Button bSearch=toolkit.createButton(composite,"String_Node_Str",SWT.CENTER);
    bSearch.setImage(ImageCache.getCreatedImage(EImage.SEARCH.getPath()));
    bSearch.setToolTipText("String_Node_Str");
    bSearch.setLayoutData(new GridData(SWT.NONE,SWT.CENTER,false,false,1,1));
    bSearch.addListener(SWT.Selection,new Listener(){
      public void handleEvent(      Event event){
        ItemsTrashBrowserMainPage.this.resultsViewer.setInput(getResults(true));
      }
    }
);
    final Table table=createTable(composite);
    resultsViewer=new TableViewer(table);
    resultsViewer.getControl().setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,9,1));
    ((GridData)resultsViewer.getControl().getLayoutData()).heightHint=500;
    resultsViewer.setContentProvider(new ArrayContentProvider());
    resultsViewer.setLabelProvider(new ClusterTableLabelProvider());
    resultsViewer.addDoubleClickListener(new IDoubleClickListener(){
      public void doubleClick(      DoubleClickEvent event){
        resultsViewer.setSelection(event.getSelection());
        try {
          new DisplayDroppedItemAction(ItemsTrashBrowserMainPage.this.getSite().getShell(),resultsViewer).run();
        }
 catch (        Exception e) {
          MessageDialog.openError(ItemsTrashBrowserMainPage.this.getSite().getShell(),"String_Node_Str","String_Node_Str" + e.getClass().getName() + "String_Node_Str"+ e.getLocalizedMessage());
        }
      }
    }
);
    hookKeyboard();
    hookContextMenu();
    managedForm.reflow(true);
    searchText.setFocus();
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
@Override protected void createFormContent(IManagedForm managedForm){
  try {
    managedForm.getForm().setText(this.getTitle());
    FormToolkit toolkit=managedForm.getToolkit();
    Composite composite=managedForm.getForm().getBody();
    composite.setLayout(new GridLayout(9,false));
    Label descriptionLabel=toolkit.createLabel(composite,"String_Node_Str",SWT.NULL);
    descriptionLabel.setLayoutData(new GridData(SWT.FILL,SWT.CENTER,false,false,1,1));
    searchText=toolkit.createText(composite,"String_Node_Str",SWT.BORDER | SWT.MULTI);
    searchText.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,false,2,1));
    searchText.addKeyListener(new KeyListener(){
      public void keyPressed(      KeyEvent e){
      }
      public void keyReleased(      KeyEvent e){
        if ((e.stateMask == 0) && (e.character == SWT.CR)) {
          ItemsTrashBrowserMainPage.this.resultsViewer.setInput(getResults(true));
        }
      }
    }
);
    Button bSearch=toolkit.createButton(composite,"String_Node_Str",SWT.CENTER);
    bSearch.setImage(ImageCache.getCreatedImage(EImage.SEARCH.getPath()));
    bSearch.setToolTipText("String_Node_Str");
    bSearch.setLayoutData(new GridData(SWT.NONE,SWT.CENTER,false,false,1,1));
    bSearch.addListener(SWT.Selection,new Listener(){
      public void handleEvent(      Event event){
        ItemsTrashBrowserMainPage.this.resultsViewer.setInput(getResults(true));
      }
    }
);
    final Table table=createTable(composite);
    resultsViewer=new TableViewer(table);
    resultsViewer.getControl().setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,9,1));
    ((GridData)resultsViewer.getControl().getLayoutData()).heightHint=500;
    resultsViewer.setContentProvider(new ArrayContentProvider());
    resultsViewer.setLabelProvider(new ClusterTableLabelProvider());
    resultsViewer.addDoubleClickListener(new IDoubleClickListener(){
      public void doubleClick(      DoubleClickEvent event){
        resultsViewer.setSelection(event.getSelection());
        try {
          new DisplayDroppedItemAction(ItemsTrashBrowserMainPage.this.getSite().getShell(),resultsViewer).run();
        }
 catch (        Exception e) {
          MessageDialog.openError(ItemsTrashBrowserMainPage.this.getSite().getShell(),"String_Node_Str","String_Node_Str" + e.getClass().getName() + "String_Node_Str"+ e.getLocalizedMessage());
        }
      }
    }
);
    hookKeyboard();
    hookContextMenu();
    managedForm.reflow(true);
    searchText.setFocus();
    WidgetFactory factory=new WidgetFactory();
    factory.adapt(managedForm.getForm().getBody());
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}